<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'VS2008'</title><link>http://blogs.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=VS2008&amp;orTags=0</link><description>Search results matching tag 'VS2008'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Tip#97: Did you know… How to Display Hidden Information in Design View</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/09/30/tip-97-did-you-know-how-to-display-hidden-information-in-design-view.aspx</link><pubDate>Thu, 01 Oct 2009 00:20:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3434440</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;The design view in Visual Studio can display glyphs and borders for the hidden non - graphic elements (such as div, span, form, and script elements). This feature helps you to see where the elements are and avoid inadvertently deleting the non-graphic elements from your page while editing.&lt;/p&gt; &lt;p&gt;To enable it in designer click on View -&amp;gt; Formatting Marks -&amp;gt; Show&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip97DidyouknowHowtoDisplayHiddenInforma_F3A3/image_2.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip97DidyouknowHowtoDisplayHiddenInforma_F3A3/image_thumb.png" width="518" height="370"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Now you will start seeing the hidden elements on the designer surface.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip97DidyouknowHowtoDisplayHiddenInforma_F3A3/image_6.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip97DidyouknowHowtoDisplayHiddenInforma_F3A3/image_thumb_2.png" width="518" height="306"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Hope this helps,  &lt;p&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9901593" width="1" height="1"&gt;</description></item><item><title>Tip #92: Did you know … How to select a master page using 'Select a Master Page' dialog?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/08/21/tip-92-did-you-know-how-to-select-a-master-page-using-select-a-master-page-dialog.aspx</link><pubDate>Fri, 21 Aug 2009 20:02:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3362050</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt; &lt;p&gt;Master page for a Web form can always be set manually in the source code, but here is an option to select the master page while create the webform using the 'Select a Master Page' dialog. &lt;/p&gt; &lt;p&gt;The path to select a Master page using the 'Select a master page' dialog is different for a Web application project than for a Web site.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;br&gt;&lt;strong&gt;For a Web Application project:&lt;/strong&gt;&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Right click &lt;/strong&gt;solution explore. Select &lt;strong&gt;Add &lt;/strong&gt;and then select &lt;strong&gt;New Item&lt;br&gt;&lt;br&gt;&lt;/strong&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_2.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb.png" width="363" height="484"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;From the Add new Item dialog select &lt;strong&gt;Web content form &lt;/strong&gt;and click on &lt;strong&gt;Add button.&lt;br&gt;&lt;br&gt;&lt;/strong&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_4.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb_1.png" width="512" height="311"&gt;&lt;/a&gt; &lt;br&gt; &lt;li&gt;Select a Master Page dialog would appear. Navigate thru the project folders to select the Master page &amp;amp; click on &lt;strong&gt;OK &lt;/strong&gt;button. The aspx added would now be using the selected master page.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_6.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb_2.png" width="512" height="315"&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&amp;nbsp;&lt;br&gt;&lt;strong&gt;For a Web site project:&lt;/strong&gt;&lt;/p&gt; &lt;ol&gt; &lt;li&gt;While adding a Webform, &lt;strong&gt;check &lt;/strong&gt;the select master page checkbox and click on the &lt;strong&gt;Add &lt;/strong&gt;button.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_8.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb_3.png" width="512" height="340"&gt;&lt;/a&gt; &lt;br&gt; &lt;li&gt;Select a Master Page dialog would appear. Navigate thru the project folders to select the Master page &amp;amp; click on &lt;strong&gt;OK &lt;/strong&gt;button. The aspx added would now be using the selected master page.&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_10.png"&gt;&lt;br&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb_4.png" width="512" height="316"&gt;&lt;/a&gt; &lt;br&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Hope this helps,  &lt;p&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9879207" width="1" height="1"&gt;</description></item><item><title>Tip #82: Did you know... How to migrate Visual Studio 2005 Web Application Project to Visual Studio 2008</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/06/18/tip-82-did-you-know-how-to-migrate-visual-studio-2005-web-application-project-to-visual-studio-2008.aspx</link><pubDate>Thu, 18 Jun 2009 23:32:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3244335</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;Following steps highlight how a Visual Studio 2005 Web application project can be migrated to Visual Studio 2008.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Take &lt;strong&gt;backup &lt;/strong&gt;of the original project&lt;br&gt; &lt;li&gt;&lt;strong&gt;Open &lt;/strong&gt;Visual Studio 2008&lt;br&gt; &lt;li&gt;Click File -&amp;gt; &lt;strong&gt;Open Project &lt;/strong&gt;and browse to the folder to open the project&lt;br&gt; &lt;li&gt;You will receive the following conversion wizard to help you convert the solution or project to the current version. &lt;strong&gt;Click Next.&lt;br&gt;&lt;/strong&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_12.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_5.png" width="511" height="403"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;Select &lt;strong&gt;Yes &lt;/strong&gt;on this screen if you want the wizard to help you to take the &lt;strong&gt;backup, &lt;/strong&gt;otherwise select &lt;strong&gt;No &lt;/strong&gt;and Click &lt;strong&gt;Next.&lt;br&gt;&lt;/strong&gt;&lt;br&gt;&amp;nbsp;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_4.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_1.png" width="512" height="403"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;Be sure to &lt;strong&gt;read the summary &lt;/strong&gt;on this screen &amp;amp; click &lt;strong&gt;finish&lt;br&gt;&lt;/strong&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_6.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_2.png" width="511" height="401"&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;&lt;br&gt; &lt;li&gt;As soon as you click finish, you will see an &lt;strong&gt;upgrade prompt&lt;/strong&gt;. Click &lt;strong&gt;yes&lt;/strong&gt; if you want to upgrade to the latest framework otherwise Click &lt;strong&gt;No. &lt;/strong&gt;If you select yes to upgrade, the project file as well as web.config file is updated for the latest framework. It's recommended to select the checkbox to do the same for all webs in this solution.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_8.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_3.png" width="511" height="243"&gt;&lt;/a&gt; &lt;br&gt; &lt;li&gt;The conversion wizard would show you the status, select Show the log to see the log and click close.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_10.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/MigratingVS2005WebApplicationProjecttoVS_E8A4/image_thumb_4.png" width="511" height="401"&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;For projects using Ajax you might need to install ASP.NET Ajax Extensions 1.0 in VS 2008 if you said no to upgrade. Please see &lt;a href="http://blogs.msdn.com/webdevelopertips/archive/2009/05/16/tip-62-did-you-know-how-to-add-ajax-control-toolkit-to-the-toolbox.aspx" target="_blank"&gt;Tip #62&lt;/a&gt; to learn how to install it. &lt;/p&gt; &lt;p&gt;Hope this helps,&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9777921" width="1" height="1"&gt;</description></item><item><title>Tip #69: Did you know…The keyboard shortcut for View in Browser?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/05/31/tip-69-did-you-know-the-keyboard-shortcut-for-view-in-browser.aspx</link><pubDate>Sun, 31 May 2009 21:27:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3206190</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="4"&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;Ctrl +Shift+W&lt;/strong&gt; &lt;font color="#000000" size="2"&gt;does the trick for you.&lt;/font&gt; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;This short cut is mentioned under &lt;strong&gt;File Menu -&amp;gt; View in Browser&lt;/strong&gt;. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;So if you are still using Select File -&amp;gt; Right click for context menu and then selecting View in Browser as shown below, you may want to start using Ctrl+Shift+W.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip63DidyouknowThekeyboardshortcutforVie_DC6B/View%20in%20Browser_2.jpg"&gt;&lt;img title="View in Browser" height="190" alt="View in Browser" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip63DidyouknowThekeyboardshortcutforVie_DC6B/View%20in%20Browser_thumb.jpg" width="215" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Reshmi Mangalore&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;SDET, Visual Web Developer&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9671313" width="1" height="1"&gt;</description></item><item><title>Tip #68 Did you know… How simple it is to attach an existing style sheet to your web page?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/05/31/tip-68-did-you-know-how-simple-it-is-to-attach-an-existing-style-sheet-to-your-web-page.aspx</link><pubDate>Sun, 31 May 2009 21:19:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3206191</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Open an existing web site in VWD. Open the page by double clicking on it in solution explorer to which you want to attach the existing style sheet in your web site.&lt;/p&gt;  &lt;p&gt;Now, switch to Design View of the page and bring up Select Style Sheet dialog by clicking on menu: &lt;strong&gt;Format –&amp;gt; Attach Style Sheet&lt;/strong&gt;&amp;#160; as shown below.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip24DidyouknowHowtoattachastylesheettoy_B64B/Attach%20StyleSheet_4.jpg"&gt;&lt;img title="Attach StyleSheet" height="343" alt="Attach StyleSheet" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip24DidyouknowHowtoattachastylesheettoy_B64B/Attach%20StyleSheet_thumb_1.jpg" width="543" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Click the OK button and this will add a link to the Style sheet that you selected in the Select Style Sheet dialog. Now you can make use of all the styles described in this style sheet.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;pre&gt;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000"&gt;head&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #ff00ff"&gt;runat&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;server&amp;quot;&amp;gt;
&lt;/span&gt;&lt;span style="color: #0000ff"&gt;    &lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000"&gt;title&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;Untitled Page&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #000000"&gt;title&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
&lt;/span&gt;&lt;span style="color: #0000ff"&gt;    &lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000"&gt;link&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #ff00ff"&gt;href&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;StyleSheet.css&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #ff00ff"&gt;rel&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;stylesheet&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #ff00ff"&gt;type&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;text/css&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #0000ff"&gt;/&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #000000"&gt;head&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&amp;lt;/PRE&amp;lt; P&amp;gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
Alternatively, you can just switch the page to which you want to add the link and &lt;strong&gt;Drag Drop&lt;/strong&gt; the &lt;strong&gt;style sheet from solution explorer&lt;/strong&gt; to the page in which you want to make use of the styles. The drag drop action adds the above piece of code to source view. 

&lt;p&gt;&lt;strong&gt;Reshmi Mangalore&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SDET, Visual Web Developer&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9671299" width="1" height="1"&gt;</description></item><item><title>Tip #61: Did you know… How to create an ASP.Net Dynamic Data Web Site?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/05/14/tip-61-did-you-know-how-to-create-an-asp-net-dynamic-data-web-site.aspx</link><pubDate>Thu, 14 May 2009 18:54:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3163763</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;If your web site is heavily data driven then here is a quick and easy way for you to create one without writing much code. All you need is &lt;strong&gt;Visual Studio 2008 SP1 or Visual Web Developer 2008 Express SP1&lt;/strong&gt; installed on your box. &lt;/p&gt;  &lt;p&gt;Dynamic Data Web Sites makes use of a mechanism called Scaffolding. When &lt;strong&gt;Scaffolding&lt;/strong&gt; is enabled it lets ASP.Net go through your data model and generate web pages for your tables. These generated pages have Insert, Delete and Update capabilities for each table.&lt;/p&gt;  &lt;p&gt;Here are the steps:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; &lt;strong&gt;Create a Dynamic Data Web Site.&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Go to &lt;strong&gt;File -&amp;gt;New Web Site&lt;/strong&gt;&amp;#160; and select &lt;strong&gt;Dynamic Data Web Site template&lt;/strong&gt;. Give it a name and select the location and language to be used. Click Ok button.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/New%20Web%20Site_2.jpg"&gt;&lt;img title="New Web Site" height="412" alt="New Web Site" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/New%20Web%20Site_thumb.jpg" width="527" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; &lt;strong&gt;Add data to your Web Site.&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Copy paste &lt;strong&gt;pubs.mdf&lt;/strong&gt; file that you want to use in your &lt;strong&gt;App_Data&lt;/strong&gt; folder.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; &lt;strong&gt;Create a Data model using LINQ to SQL.&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Right click on App_code and Add New &lt;strong&gt;LINQ to SQL Classes.&lt;/strong&gt; On selecting the LINQ to SQL Classes the DataClasses.dbml opens up in your O/R Designer.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/LINQ%20to%20SQL%20CLasses_2.jpg"&gt;&lt;img title="LINQ to SQL CLasses" height="420" alt="LINQ to SQL CLasses" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/LINQ%20to%20SQL%20CLasses_thumb.jpg" width="530" /&gt;&lt;/a&gt; &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; &lt;strong&gt;Drag drop tables to Object Relational Designer.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Now &lt;strong&gt;drag drop &lt;/strong&gt;Authors table on to the O/R Designer from server explorer and save DataClassses.dbml.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/DataClasses.dbml_2.jpg"&gt;&lt;img title="DataClasses.dbml" height="425" alt="DataClasses.dbml" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/DataClasses.dbml_thumb.jpg" width="523" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;strong&gt;Step 5: Look what VS has created for you.&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Note that there are two files &lt;strong&gt;DataClasses.dbml.layout&lt;/strong&gt; and &lt;strong&gt;DataCalsses.designer.vb&lt;/strong&gt; present under the .dbml file node. &lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;Open DataCalsses.designer.vb, and you can see that there is a Partial Public Class &lt;strong&gt;DataClassesDataContext. &lt;/strong&gt;This file also contains an entity class for Author table (Partial Public Class author).&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;Step 6&lt;/strong&gt;: &lt;strong&gt;Register the data context in Global.asax file.&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Open global.asax page and add the following lines of code in &lt;strong&gt;RegisterRoutes&lt;/strong&gt; method.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;VB code:&lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#0000ff"&gt;model.RegisterContext(GetType(AdventureWorksDataContext), _ New ContextConfiguration() With {.ScaffoldAllTables = True})&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;C# code: &lt;/font&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#0000ff"&gt;model.RegisterContext(typeof(AdventureWorksDataContext), new ContextConfiguration() { ScaffoldAllTables = true });&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Save the file.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 7: &lt;strong&gt;View the page in Browser&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Now you can view default.aspx page using &lt;strong&gt;View in Browser&lt;/strong&gt;. This will show you a link for Authors table. &lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;Click on the table name and you will see a page with data from Authors Table. There is also readymade option for you to Edit, Delete and Insert new data.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/AuthorTable_4.jpg"&gt;&lt;img title="AuthorTable" height="480" alt="AuthorTable" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip61DidyouknowHow.NetDynamicDataWebSite_BD09/AuthorTable_thumb_1.jpg" width="347" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Try this today and have fun! &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Reshmi Mangalore&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;SDET, Web Development Tools&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9616842" width="1" height="1"&gt;</description></item><item><title>Tip#57: Did you know… How to manage web site configuration through a web interface</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/04/28/tip-57-did-you-know-how-to-manage-web-site-configuration-through-a-web-interface.aspx</link><pubDate>Tue, 28 Apr 2009 07:37:10 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3124294</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;The Web Site Administration Tool provides a web interface for you to manage different web site configuration settings. To launch the tool, for Web Application Project click Project-&amp;gt; ASP.Net Configuration &amp;amp; for Websites, click Website-&amp;gt; ASP.Net Configuration&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;table border="0" cellspacing="0" cellpadding="2" width="400"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign="top" width="200"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_2.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_thumb.png" width="206" height="279"&gt;&lt;/a&gt;&lt;/td&gt; &lt;td valign="top" width="200"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_4.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_thumb_1.png" width="191" height="279"&gt;&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Visual Studio launches the tool in a browser window. You can use the tabs on the top to navigate &amp;amp; change various settings.&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_6.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip56DidyouknowHowtomanagewebsiteconfigu_896/image_thumb_2.png" width="644" height="284"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;You can read more in detail for the various settings that can be managed using the tool &lt;a href="http://msdn.microsoft.com/en-us/library/yy40ytx0.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9573170" width="1" height="1"&gt;</description></item><item><title>Tip # 53: Did you know... How to edit the templates for gridview in VS designer?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/04/22/tip-53-did-you-know-how-to-edit-the-templates-for-gridview-in-vs-designer.aspx</link><pubDate>Wed, 22 Apr 2009 21:44:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3111725</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;Gridview control has the flexibility to be configured how it's rendered using templates. Following steps show how the control's edit template can be changed in the Visual Studio Designer. &lt;/p&gt; &lt;ul&gt; &lt;li&gt;I have a GridView hooked up to Sqldatasource using Northwind.products. I have selected Generate Insert, update and delete statements while configuring the sql data source (by clicking the Advanced button)&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_2.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb.png" width="456" height="335"&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_4.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_1.png" width="385" height="247"&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;&lt;br&gt; &lt;li&gt;Click on smart task for grid view &amp;amp; select Enable Editing check box for the grid view &lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_8.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_3.png" width="319" height="274"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;Now to convert a column to use Template field. Select Edit columns from the Grid view Smarttask.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_20.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_9.png" width="218" height="272"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;Select the column name in the selected fields list and click on Convert this field into TemplateField &amp;amp; click OK&lt;br&gt;&lt;br&gt;&amp;nbsp;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_26.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_12.png" width="418" height="323"&gt;&lt;/a&gt; &lt;br&gt; &lt;li&gt;Select Edit Templates from the gridview smarttask&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_10.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_4.png" width="251" height="306"&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;&lt;br&gt; &lt;li&gt;From the Display drop down select EditItemTemplate&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_12.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_5.png" width="210" height="202"&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;&lt;br&gt; &lt;li&gt;You will see the following&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_16.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_7.png" width="233" height="132"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;You can update the template now. For example, I have dragged dropped requireFiledValidator into it&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_18.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_8.png" width="244" height="123"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;If there are multiple columns converted to templates, you will see something like this &amp;amp; can select a particular column template to be edited.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_24.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_11.png" width="194" height="244"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;Switching to the source view, you will find that VS has generated the source code for the template changes done.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_28.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_13.png" width="518" height="236"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;Click on 'End template editing' from the smart task to exit editing the template &lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_30.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoeditthetemplatesforgridviewinVS_CE7B/image_thumb_14.png" width="244" height="109"&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9563275" width="1" height="1"&gt;</description></item><item><title>Tip #40: Did you know…How to scope master pages?</title><link>http://blogs.iis.net/webdevelopertips/archive/2008/12/31/tip-40-did-you-know-how-to-scope-master-pages.aspx</link><pubDate>Wed, 31 Dec 2008 22:50:08 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2840731</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;Master page is a&amp;nbsp; template page that can be used to create a consistent layout for your application. First you create a master page to define the look &amp;amp; feel of the application and then you create the content pages that contains the content.&lt;/p&gt; &lt;p&gt;You can attach these content pages to the master page at the following three levels:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Page Level&lt;/strong&gt;: You can use the page directive on each of the content pages&lt;br&gt;&lt;br&gt;&amp;lt;@Page Language="VB" MasterPageFile="~/Main.master"%&amp;gt;&lt;br&gt;&lt;br&gt;Or programmatically set it in the content page Page_PreInit Event&lt;br&gt;&lt;br&gt;&lt;em&gt;for VB&lt;br&gt;&lt;/em&gt;Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.MasterPageFile = "~/Main.master"&lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;&lt;em&gt;for C#&lt;/em&gt;&lt;br&gt;protected void Page_PreInit(Object sender, EventArgs e)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.MasterPageFile = "~/Main.Master";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;br&gt; &lt;li&gt;&lt;strong&gt;Application Level &lt;/strong&gt;: By specifying the following in web.config file, all the aspx files will use the master page as Main.master (If&amp;nbsp; aspx file does not contain a Content control, the master page won't be applied to it )&lt;br&gt;&lt;br&gt;&amp;lt;configuration&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pages masterPageFile="~/Main.master" /&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;br&gt;&amp;lt;/configuration&amp;gt;&lt;br&gt;&lt;br&gt;[You will notice that the pages node already exists in web.config, add the masterPageFile attribute to this node]&lt;br&gt;&lt;br&gt; &lt;li&gt;&lt;strong&gt;Folder Level: &lt;/strong&gt;By specifying the following in web.config all the aspx files in a specified folder (admin) will use the master page as Admin.master (If&amp;nbsp; aspx file does not contain a Content control, the master page won't be applied to it )&lt;br&gt;&lt;br&gt;&amp;lt;configuration&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;location path="admin"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pages masterPageFile="~/Admin.master" /&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/location&amp;gt;&lt;br&gt;&amp;lt;/configuration&amp;gt; &lt;br&gt;&lt;br&gt;[you will notice system.web already exists, leave it as it is &amp;amp; add a new node 'location' with the above content under 'configuration']&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;By setting master page programmatically or thru web.config you may not get the Visual Studio master page design time features. &lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9259021" width="1" height="1"&gt;</description></item><item><title>Tip #37: Did you know…How to organize usings?</title><link>http://blogs.iis.net/webdevelopertips/archive/2008/12/28/tip-37-did-you-know-how-to-organize-usings.aspx</link><pubDate>Sun, 28 Dec 2008 07:28:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2834107</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;Overtime C# source code files may have unnecessary &amp;amp; unorganized using directives. Visual Studio IDE organize using options can help you to unclutter the source code.&lt;/p&gt; &lt;p&gt;To organize the C# code right click anywhere inside the code editor, select Organize usings.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Select Remove Unused Usings to remove any using directives that are not used in the source code (this may remove some required using directives if the source code doesn't build)  &lt;li&gt;Select Sort Usings to organize alphabetically the using directives (by default directives that begin with System comes before other using directives)  &lt;li&gt;Select remove and Sort to perform both of the above operations &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip37DidyouknowHowtoorganizeusings_14657/image_4.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="388" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip37DidyouknowHowtoorganizeusings_14657/image_thumb_1.png" width="512" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Thanks,&lt;br&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9254766" width="1" height="1"&gt;</description></item></channel></rss>