﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / InstantForum.NET 4.x / Modifications / Community Support  / VS2005 and Masterpages / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 21 Nov 2008 21:03:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>Hello James,&lt;br&gt;&lt;br&gt;I'm just trying to get a VS2005 master page working. Following your instruction:&lt;br&gt;&lt;br&gt;[quote]3) In the InstantForum.UI project, copy the Masterpages/MasterTemplate.vb file, change the inheritance for this class to&lt;br&gt;&lt;br&gt;'InstantASP.Common.UI.Base.MasterPage' (this class in turn inherits from the MS Masterpage Class.), and rename the class appropriately to suit you.[/quote]&lt;br&gt;&lt;br&gt;The InstantASP.Common.UI.Base.MasterPage does not exist. Am I missing something or do I need to create this class, too?</description><pubDate>Mon, 08 Oct 2007 06:56:59 GMT</pubDate><dc:creator>flow700</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>Hey Guys, hope you're all well, here are the steps (and required code) to get a quick masterpage implementation working on IF 4.1.4 SP1, I've tested the steps thoroughly using a fresh 4.1.4 SP1 Install, and they should work perfectly for you. This is only a basic implementation, those of you more developmentally inclined, should once you have this working be able to customise to your hearts content.&lt;BR&gt;&lt;P&gt;So here are the steps...&lt;/P&gt;&lt;P&gt;1) Create a new MasterPage.Master in the desired skin folder, delete it's codebehind file (Created by default by VS 2005).&lt;/P&gt;&lt;P&gt;2) Use the Markup from Skins/&amp;lt;SkinName&amp;gt;/MasterTemplate/MasterTemplate.ascx, you will need to replace the &amp;lt;InstantForum:Content id="PageContent" runat="server"&amp;gt;&amp;lt;/InstantForum:Content&amp;gt; marker with an &amp;lt;ASP:ContentPlaceHolder/&amp;gt; tag of course. When doing this ensure to leave out the @Control definition tag at the top, as an @ Master tag should already be in the masterpage, the two @ Register tags will still be required.&lt;BR&gt;&lt;BR&gt;3) In the InstantForum.UI project, copy the Masterpages/MasterTemplate.vb file, change the inheritance for this class to &lt;/P&gt;&lt;P&gt;'InstantASP.Common.UI.Base.MasterPage' (this class in turn inherits from the MS Masterpage Class.), and rename the class appropriately to suit you.&lt;/P&gt;&lt;P&gt;4) Ensure your .Master file has no "Codefile" attribute, and no code behind file.&lt;/P&gt;&lt;P&gt;5) Set the 'Inherits' attribute of the Masterpage.Master to point to the new class you created above using the full name space address.&lt;/P&gt;&lt;P&gt;6) Create a new MustInherit 'Page' class in the InstantASP.InstantForum.UI project, this class should inherit from InstantASP.Common.UI.Base.Page the &lt;/P&gt;&lt;P&gt;following code should be the basis of this class:&lt;BR&gt;&lt;BR&gt;[code]Option Strict On&lt;BR&gt;Option Explicit On&lt;BR&gt;Namespace InstantASP.InstantForum.UI.Base&lt;BR&gt;    Public MustInherit Class Page&lt;BR&gt;        Inherits InstantASP.Common.UI.Base.Page&lt;BR&gt; Private m_CurrentContext As InstantASP.InstantForum.HttpContext.ForumContext = Nothing&lt;BR&gt; Public ReadOnly Property CurrentContext() As InstantASP.InstantForum.HttpContext.ForumContext&lt;BR&gt;            Get&lt;BR&gt;                If m_CurrentContext Is Nothing Then&lt;BR&gt;                    m_CurrentContext = InstantASP.InstantForum.HttpContext.ForumContext.Current&lt;BR&gt;                End If&lt;BR&gt;                Return m_CurrentContext&lt;BR&gt;            End Get&lt;BR&gt;        End Property&lt;BR&gt; Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit&lt;BR&gt;            Me.MasterPageFile = "&amp;lt;your masterpage name&amp;gt;"&lt;BR&gt;            Dim strSkinDirectory As String = "~/" + InstantASP.Common.Configuration.AppSettings.VirtualPath + CurrentContext.CurrentSkin&lt;BR&gt;            Me.MasterPageFile = strSkinDirectory + Me.MasterPageFile&lt;BR&gt;        End Sub&lt;BR&gt;    End Class&lt;BR&gt;End Namespace[/code]&lt;/P&gt;&lt;P&gt;&lt;BR&gt;7) Change the &amp;lt;your masterpage name&amp;gt; to the name of the masterpage file you created in Step (1)&lt;/P&gt;&lt;P&gt;8) In each page you wish to use this masterpage file, you need to change the Inherits attribute in the page file to point to your new Page Class, which &lt;/P&gt;&lt;P&gt;(if unchanged from the code provided) will be "InstantASP.InstantForum.UI.Base.Page"&lt;/P&gt;&lt;P&gt;9) In each page you wish to use your masterpage for you need to replace the &amp;lt;InstantForum:MasterPage runat="server"&amp;gt; tags with the standard &lt;/P&gt;&lt;P&gt;&amp;lt;ASP:ContentArea&amp;gt; tags as with any 2.0 Masterpage implementation.&lt;/P&gt;&lt;P&gt;I reccomend that you only use "Default.aspx" initially and use some test text just inside the body of the Masterpage (before your content place holder), this way you can tell whether the Masterpage works simply by viewing your forum root, or hitting the debug button in VS 2005. Incidentally a cleaned up and tightened version of this masterpage implementation will be in the 4.2 version of the forums, which will also be the first version natively in .Net 2.0</description><pubDate>Wed, 04 Jul 2007 09:09:35 GMT</pubDate><dc:creator>James Trott</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>[quote][b]Rivelyn (6/30/2007)[/b][hr]I have just starting working on integrating IF 4.1.4 today with an existing site and so far I have been able to get IF up and running from within a link on the MasterPage through VS 2005. &lt;P&gt;However I am at the same point, I am not really following the instructions on how to use the IF MasterPage file, it to me is a little cryptic.&lt;/P&gt;&lt;P&gt;I have a current MasterPage and CSS applied to the site to give a nice overal layout and site wide navigation and would like to display the IF pages within the ContentPlaceHolder of the MasterPage, then of course I figure the actual CSS would have to be applied directly and properly to the IF application.&lt;/P&gt;&lt;P&gt;Do we have a solution yet to display the IF pages within a ContentPlaceHolder of a MasterPage? [/quote] &lt;P&gt;Hi Rivelyn, &lt;P&gt;Hope your very well. Sorry for any delay. I just wanted to confirm we are working on a sample to demonstrate what you require. We'll be posting this very soon. &lt;P&gt;With the next update due shortly after InstantKB.NET v2.0 we've moved to ASP.NET v2.0 to take advantage of masterpages and the new ajax extensions. &lt;P&gt;We'll keep this posted updated,</description><pubDate>Tue, 03 Jul 2007 03:44:31 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>I have just starting working on integrating IF 4.1.4 today with an existing site and so far I have been able to get IF up and running from within a link on the MasterPage through VS 2005.&lt;/P&gt;&lt;P&gt;However I am at the same point, I am not really following the instructions on how to use the IF MasterPage file, it to me is a little cryptic.&lt;/P&gt;&lt;P&gt;I have a current MasterPage and CSS applied to the site to give a nice overal layout and site wide navigation and would like to display the IF pages within the ContentPlaceHolder of the MasterPage, then of course I figure the actual CSS would have to be applied directly and properly to the IF application.&lt;/P&gt;&lt;P&gt;Do we have a solution yet to display the IF pages within a ContentPlaceHolder of a MasterPage? </description><pubDate>Sat, 30 Jun 2007 11:25:59 GMT</pubDate><dc:creator>Rivelyn</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>Hey Ryan:&lt;P&gt;I'm ready for that demo whenever you are!   Thanks...</description><pubDate>Tue, 10 Apr 2007 09:27:16 GMT</pubDate><dc:creator>mattb</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>Hi Matt,&lt;/P&gt;&lt;P&gt;Hope your very well. &lt;/P&gt;&lt;P&gt;Sorry for our delay. I just wanted to confirm we've done this with InstantKB.NET v2.0 and the process was actually quite simple. We#ve moved away from our MasterTemplate.ascx file to a standard .NET v2.0 .master file. &lt;/P&gt;&lt;P&gt;Our current MasterTemplate\MasMasterTemplate.ascx file within each skin directory works very similar to a ,NET v2.0 .master file however we will be moving to standard master pages with the next update. I expect this update shortly after InstantKB.NET v2.0 as there is work we need todo in v4.1.5 to ensure both products can talk to one another correctly.&lt;/P&gt;&lt;P&gt;In the meantime i'll look at preparing a sample to demo state how to achieve this within v4.1.4 and post any further information here. You'll hear from me very soon.</description><pubDate>Tue, 27 Mar 2007 12:11:10 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>It's been awhile since I've been here.  Are there any instructions on how to wrap the forums with MasterPages in ASP.NET 2.0?  (4.1.4)&lt;/P&gt;&lt;P&gt;Thanks...</description><pubDate>Thu, 22 Mar 2007 12:01:16 GMT</pubDate><dc:creator>mattb</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>Did you have any luck with the masterpage integration? If I can't get it to work, I'm going to have to dump IF and go with something else as it is an absolute requirement for us.&lt;br&gt;&lt;br&gt;&lt;br&gt;amanda</description><pubDate>Mon, 22 May 2006 13:58:22 GMT</pubDate><dc:creator>akabak</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>MartialWeb:&lt;P&gt;Please let us know if you are successful with your 2.0 MasterPage implementation.  I rebuilt my website from the ground up with 2.0 and converting IF to 2.0 with MasterPages is on my to-do list.</description><pubDate>Wed, 07 Dec 2005 10:01:55 GMT</pubDate><dc:creator>mattb</dc:creator></item><item><title>RE: VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>Based on a little time with the new masterpages I dont think it would be an issue so long as you put the reference in the top of the page to the masterpage... the content is wrapped with the master page container and the IF is 4.1.3</description><pubDate>Wed, 07 Dec 2005 06:38:06 GMT</pubDate><dc:creator>Mark Christianson</dc:creator></item><item><title>VS2005 and Masterpages</title><link>http://community.instantasp.co.uk/Topic9299-58-1.aspx</link><description>Hey folks, I'm developing a site in VS2005 and using its new Masterpages feature.  Can I use it to wrap IF? If so, how?  I was just experimenting with it and could not make it work.  Seems like I have to use IF's own masterpages.</description><pubDate>Wed, 07 Dec 2005 01:59:26 GMT</pubDate><dc:creator>MartialWeb</dc:creator></item></channel></rss>