<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Tips &amp; Tricks for ASP.NET, IIS, and Visual Web Developer</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/webdevelopertips/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/feed.xml</link>
    <description />
    <lastBuildDate>Sat, 04 Apr 2015 11:48:00 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Tip #110 Did you know … How to referencing root project’s master page’s properties from sub project’s content page?</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-110-did-you-know-how-to-referencing-root-projects-master-pages-properties-from-sub-projects-content-page</link>
      <pubDate>Mon, 19 Sep 2011 15:58:00 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2011/09/19/tip-110-did-you-know-how-to-referencing-root-projects-master-pages-properties-from-sub-projects-content-page/</guid>
      <description><![CDATA[Recently, I received a question referring to our blog Part 2 of 3: Creating shared user controls and...]]></description>
      <content:encoded><![CDATA[<p>Recently, I received a question referring to our blog <a href="https://blogs.msdn.com/b/webdevtools/archive/2006/08/15/701642.aspx">Part 2 of 3: Creating shared user controls and <em>master</em> pages with sub-projects</a> , asking how to reference master page&rsquo;s properties from a sub project.</p>
<p>&nbsp;</p>
<p>I searched the answer and find the following MSDN link very helpful: <a href="https://msdn.microsoft.com/en-us/library/c8y19k6h.aspx">https://msdn.microsoft.com/en-us/library/c8y19k6h.aspx</a> .&nbsp; We need to add the following line in a content page in order to access master page&rsquo;s property from the content page:</p>
<pre class="code"><span style="background: yellow;">&lt;%</span><span style="color: blue;">@ </span><span style="color: maroon;">MasterType </span><span style="color: red;">virtualPath</span><span style="color: blue;">="~/Site1.master"</span><span style="background: yellow;">%&gt;</span> </pre>
<p>Then in the same project&rsquo;s content page&rsquo;s code behind, we can use &ldquo;this.Master&rdquo;&nbsp; which is typed correctly to Site1 class (Site1.master&rsquo; class).</p>
<p>&nbsp;</p>
<p>Then for any sub projects, all we need to do is to add project reference to the root project, add the MasterType line in the content page, and referring to the root project&rsquo;s site1.master page as:&nbsp;</p>
<pre class="code">Master <span style="color: blue;">as </span>RootProject.<span style="color: #2b91af;">Site1 </span></pre>
<p>&nbsp;</p>
<p>Hope this helps any one who have the similar questions.</p>
<p>&nbsp;</p>
<p>Thanks</p>
<p>Xinyang Qiu</p>
<p>Web Platform and Tools Team</p>]]></content:encoded>
    </item>
    <item>
      <title>Tip #109 Did you know … How to speed up build time by *only* building the currently selected project in a multi-project solution?</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-109-did-you-know-how-to-speed-up-build-time-by-only-building-the-currently-selected-project-in-a-multi-project-solution</link>
      <pubDate>Mon, 15 Aug 2011 16:42:27 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2011/08/15/tip-109-did-you-know-how-to-speed-up-build-time-by-only-building-the-currently-selected-project-in-a-multi-project-solution/</guid>
      <description><![CDATA[When working with a solution that contains numerous projects, I find myself often wanting to only...]]></description>
      <content:encoded><![CDATA[<p>When working with a solution that contains numerous projects, I find myself often wanting to only build and run the currently selected project. Other projects in the solution might have build errors that I don’t want to resolve at the current time. By default though, trying to do a CTRL+F5 on the currently selected project will cause Visual Studio (VS) to build <u>all</u> of the projects in a solution.</p>  <p>Let’s walk through how to tweak this behavior.</p>  <p>We’ll start with a solution that has two projects – WebApplication_1 and WebApplication_2.</p>  <p>First, we’ll configure VS to set the “Startup Project” as the “Current selection” in the “Solution Explorer” window. You can configure this via the Properties settings of a solution file (right click on it) and then setting the “Startup Project” to “Current selection”. Now, the project highlighted in the “Solution Explorer” is the one that’s run by default. </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/0842.CurrentSelection_19AC090F.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/0842.CurrentSelection_5F00_19AC090F.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="CurrentSelection" border="0" alt="CurrentSelection" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/7360.CurrentSelection_thumb_004405D5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/7360.CurrentSelection_5F00_thumb_5F00_004405D5.png" width="788" height="496" /></a></p>  <p>   <br />Let’s run WebApplication_1 by selecting it in Solution Explorer.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/1106.TwoProjectsInSolution_5909BC9F.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/1106.TwoProjectsInSolution_5F00_5909BC9F.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="TwoProjectsInSolution" border="0" alt="TwoProjectsInSolution" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/0028.TwoProjectsInSolution_thumb_14C95553.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/0028.TwoProjectsInSolution_5F00_thumb_5F00_14C95553.png" width="405" height="129" /></a></p>  <p>   <br />Next, we’ll do a CTRL+F5. The VS output window shows:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/3755.Build_0DAA18DB.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/3755.Build_5F00_0DAA18DB.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Build" border="0" alt="Build" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/4336.Build_thumb_068ADC63.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/4336.Build_5F00_thumb_5F00_068ADC63.png" width="679" height="140" /></a></p>  <p>   <br />Notice that we’ve built <u>two</u> projects yet I only wanted to run one of them and there’s no dependency configured between the two. Visual Studio by default builds all of the projects in a solution. You can imagine the delay you might incur if you had a solution with numerous projects and if some of these included pre- or post-build tasks.</p>  <p>Thankfully, there’s a way to change this.</p>  <p>Under “Tools –&gt; Options”, “Projects and Solutions” (might need to check “Show all settings”), there’s a setting called “Only build startup projects and dependencies on Run”. Check that box.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/2021.OnlyBuild_7F6B9FEA.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/2021.OnlyBuild_5F00_7F6B9FEA.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="OnlyBuild" border="0" alt="OnlyBuild" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/0447.OnlyBuild_thumb_542708E3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/0447.OnlyBuild_5F00_thumb_5F00_542708E3.png" width="760" height="445" /></a></p>  <p>   <br />Now, if we return to our solution and repeat trying to run just WebApplication_1, we see that VS only builds that project and not the other one as well.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/5633.BuildJustOne_7EFF6CF5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/5633.BuildJustOne_5F00_7EFF6CF5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="BuildJustOne" border="0" alt="BuildJustOne" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/1031.BuildJustOne_thumb_77E0307D.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-08-46-metablogapi/1031.BuildJustOne_5F00_thumb_5F00_77E0307D.png" width="677" height="108" /></a></p>  <p>   <br />Hope this helps.</p>  <p><a href="https://www.testingtoasters.com/">Mark Berryman</a> – ASP.NET Team</p>]]></content:encoded>
    </item>
    <item>
      <title>Tip #108 Did you know … How to improve reference efficiency in JavaScript files inside a web project?</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-108-did-you-know-how-to-improve-reference-efficiency-in-javascript-files-inside-a-web-project</link>
      <pubDate>Thu, 31 Mar 2011 10:06:26 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2011/03/31/tip-108-did-you-know-how-to-improve-reference-efficiency-in-javascript-files-inside-a-web-project/</guid>
      <description><![CDATA[In Visual Studio 2010, we can reference other JavaScript files inside current JavaScript file like...]]></description>
      <content:encoded><![CDATA[<p>In Visual Studio 2010, we can reference other JavaScript files inside current JavaScript file like the following, to get the IntelliSense.</p>  <pre class="code"><span style="color: #006400">/// &lt;reference path=&quot;JScript2.js&quot; /&gt;

</span></pre>
<a href="https://11011.net/software/vspaste"></a>

<p>What if you have many JavaScript files and you’ve to reference many project wide JavaScript files inside each file?&#160; You can put the following block in each of the JavaScript files that need the reference like following:</p>

<pre class="code"><span style="color: #006400">/// &lt;reference path=&quot;JScript1.js&quot; /&gt;
/// &lt;reference path=&quot;JScript2.js&quot; /&gt;
/// &lt;reference path=&quot;JScript3.js&quot; /&gt;
/// &lt;reference path=&quot;JScript4.js&quot; /&gt;</span></pre>
<a href="https://11011.net/software/vspaste"></a>

<p>But this won’t be efficient especially some referencing file name is going to change, such as when JQuery library version changes.&#160; The trick is to create a project wide reference JavaScript file, and explicitly reference this file from other JavaScript files.&#160; For example, we can create a file called reference.js which contains the above code.&#160; Then for other JavaScript files, we can reference it by dragging and drop the reference.js file into the JavaScript editor, which will generate the following:</p>

<pre class="code"><span style="color: #006400">/// &lt;reference path=&quot;Scripts/reference.js&quot; /&gt;

</span></pre>

<p>Basically, Visual Studio 2010 recursively check the references included in the referenced JavaScript files to find the current JavaScript file’s references.&#160; I hope this can ease some pain in the development.</p>

<p>&#160;</p>

<p>Best Regards</p>

<p>Xinyang Qiu</p>

<p>Web Platform And Tools</p>]]></content:encoded>
    </item>
    <item>
      <title>Tip #107 Did you know … How to improve debugging performance for MVC2 application in Visual Studio 2010 Ultimate?</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-107-did-you-know-how-to-improve-debugging-performance-for-mvc2-application-in-visual-studio-2010-ultimate</link>
      <pubDate>Thu, 19 Aug 2010 11:40:58 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2010/08/19/tip-107-did-you-know-how-to-improve-debugging-performance-for-mvc2-application-in-visual-studio-2010-ultimate/</guid>
      <description><![CDATA[VS2010 Ultimate included IntelliTrace functionality by default.&#160; IntelliTrace captures events...]]></description>
      <content:encoded><![CDATA[<p>VS2010 Ultimate included IntelliTrace functionality by default.&#160; IntelliTrace captures events (e.g. exceptions), and can affect performance of debugging. The typical performance hit is about 5% in the default mode (collection can be increased to collect method calls and parameters which can have up to a 15x hit). However this is completely dependent on what events and how many are occurring. </p>  <p>MVC 2.0 development is such an example. Because System.Web.dll v2.0 (the core component of ASP.NET up to .NET 3.5) has some inefficient APIs for instantiating objects from virtual paths, MVC 2.0 mitigates this problem by having a cache of view lookups. By default this cache is disabled during development so that the changes you make are immediately visible, which is why it throws many exceptions during debug time. On a real production server these exceptions would not occur after the lookups are cached.&#160; Thus launching an MVC 2.0 app with IntelliTrace enabled runs significantly slower because a call stack is captured for every exception.&#160; As a side note, MVC 3 will be using new APIs added in .NET 4 so this should not be a problem anymore.</p>  <p>IntellliTrace is however not the debugger, and can be turned off (Tools -&gt; Options -&gt; Intellitrace) if this is causing too much of a problem.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/1057.image_2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-08-46-metablogapi/1057.image_5F00_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/08/46/metablogapi/7750.image_thumb.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-08-46-metablogapi/7750.image_5F00_thumb.png" width="574" height="336" /></a> </p>  <p>From my own machine, I downloaded MVC 2 application Orchard source 0.5.144.zip from <a title="https://orchard.codeplex.com/" href="https://orchard.codeplex.com/">https://orchard.codeplex.com/</a>, and setup it using the compact database after running it.&#160; When I do F5 with IntelliTrace on by default, the start up process took about 14 seconds.&#160; When I do F5 with IntelliTrace disabled, the start up process took about 9 to 10 seconds.</p>  <p>Hope this helps you to debug faster if you don’t need IntelliTrace when debugging your MVC2 application.</p>  <p>- Xinyang Qiu | Web Platform and Tools Team</p>  <p>(Note, I’ve added the underlining reason of MVC 2.0 debugging behavior of throwing exceptions on 9/10/2010, with help from colleague Marcin Dobosz )</p>]]></content:encoded>
    </item>
    <item>
      <title>Tip #106 Did you know … How to solve the errors when aspnetdb.mdf is created dynamically with IIS?</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-106-did-you-know-how-to-solve-the-errors-when-aspnetdb-mdf-is-created-dynamically-with-iis</link>
      <pubDate>Thu, 06 May 2010 19:14:09 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2010/05/06/tip-106-did-you-know-how-to-solve-the-errors-when-aspnetdb-mdf-is-created-dynamically-with-iis/</guid>
      <description><![CDATA[In VS2010 all editions, the default .NET Framework 4.0 ASP.NET Web Site and Web Application template...]]></description>
      <content:encoded><![CDATA[<p>In VS2010 all editions, the default .NET Framework 4.0 ASP.NET Web Site and Web Application template create default website with following connection string in the web.config:</p>  <pre class="code">  <span style="color: blue">&lt;</span><span style="color: #a31515">connectionStrings</span><span style="color: blue">&gt;
    &lt;</span><span style="color: #a31515">add </span><span style="color: red">name</span><span style="color: blue">=</span>&quot;<span style="color: blue">ApplicationServices</span>&quot;
         <span style="color: red">connectionString</span><span style="color: blue">=</span>&quot;<span style="color: blue">data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true</span>&quot;
         <span style="color: red">providerName</span><span style="color: blue">=</span>&quot;<span style="color: blue">System.Data.SqlClient</span>&quot; <span style="color: blue">/&gt;
  &lt;/</span><span style="color: #a31515">connectionStrings</span><span style="color: blue">&gt;
</span></pre>

<p>To get the aspnetdb.mdf created on the fly, one can simply Ctrl-F5 to run the web site or web application.&#160; Enter a username and password and click “Log In” button to let the ASP.NET Development Server or IIS server process create the aspnetdb.mdf file for you.&#160; </p>

<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip106DidyouknowHowtocreatetheas.mdffile_10E7B/image_2.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip106DidyouknowHowtocreatetheas.mdffile_10E7B/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip106DidyouknowHowtocreatetheas.mdffile_10E7B/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip106DidyouknowHowtocreatetheas.mdffile_10E7B/image_thumb.png" width="648" height="313" /></a> </p>

<p><strong>Problem #1</strong></p>

<p>If you created the website as a http web, such as <a href="https://localhost/test1/">https://localhost/test1/</a> , or you created the web application and&#160; make it use local IIS web server, you may encounter the following error message on win7 and win2008 R2 when trying to let IIS server process create the aspnetdb.mdf file dynamically:</p>

<blockquote>
  <h3>Server Error in '/test1' Application. 
    <hr size="1" width="100%" /></h3>

  <h4><i>Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.</i></h4>
  <b>Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

  <br /><b>SQLExpress database file auto-creation error: </b>

  <p>The connection string specifies a local Sql Server Express instance using a database location within the application's App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:</p>

  <ol>
    <li>If the application is running on either Windows 7 or Windows Server 2008R2, special configuration steps are necessary to enable automatic creation of the provider database. Additional information is available at: <a href="https://go.microsoft.com/fwlink/?LinkId=160102">https://go.microsoft.com/fwlink/?LinkId=160102</a> . If the application's App_Data directory does not already exist, the web server account must have read and write access to the application's directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist. </li>

    <li>If the application's App_Data directory already exists, the web server account only requires read and write access to the application's App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the application's App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server account's credentials are used when creating the new database. </li>

    <li>Sql Server Express must be installed on the machine. </li>

    <li>The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts. </li>
  </ol>
</blockquote>

<p>The above error is most likely due to IIS7 ASP.NET v4.0 application pool is running under ApplicationPoolIdentity.&#160; Change it to NetworkService will solve the issue.&#160; Details is in <a href="https://go.microsoft.com/fwlink/?LinkId=160102">https://go.microsoft.com/fwlink/?LinkId=160102</a> .&#160; The following picture shows how to do it in IIS Manager:</p>

<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip106DidyouknowHowtocreatetheas.mdffile_10E7B/image_4.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip106DidyouknowHowtocreatetheas.mdffile_10E7B/image_4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip106DidyouknowHowtocreatetheas.mdffile_10E7B/image_thumb_1.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip106DidyouknowHowtocreatetheas.mdffile_10E7B/image_thumb_1.png" width="626" height="346" /></a> </p>

<p><strong>Problem #2</strong></p>

<p>If created web application is in default user project directory, you may also get the following error message: (Note, aspnetdb.mdf is created under app_data folder successfully, but just cannot get access to it)</p>

<blockquote>
  <h3>Server Error in '/WebApplication1' Application. </h3>

  <h3>
    <hr size="1" width="100%" /></h3>

  <h4><i>An attempt to attach an auto-named database for file D:\Users\FWTLABA\Documents\Visual Studio 2010\Projects\test1\WebApplication1\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.</i></h4>
  <b>Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

  <br /><b>Exception Details: </b>System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file D:\Users\FWTLABA\Documents\Visual Studio 2010\Projects\test1\WebApplication1\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.</blockquote>

<p>This problem and workaround is explained in detail in <a title="https://support.microsoft.com/?kbid=2002980" href="https://support.microsoft.com/?kbid=2002980">https://support.microsoft.com/?kbid=2002980</a> . It’s a SQL express limitation if the project is under the default project location, such as c:\users\[ACCOUNTNAME]\Documents\Visual Studio 20XX .&#160; If this is a personal computer, it might be a better idea to create the web application project in a non-default folder to avoid the workaround steps.</p>

<p>&#160;</p>

<p>Also, VS2005, VS2008, VS2010 all supports the following ways to create aspnetdb database:</p>

<p>1. After create Visual Studio website or web application, Click “ASP.NET Configuration” menu item inside Website menu (for website project) or Project menu (for web project).</p>

<p>2. Commandline aspnet_regsql method to create the aspnetdb schema and basic data in any SQL database</p>

<p>&#160;</p>

<p>- Xinyang Qiu |<a href="https://blogs.msdn.com/webdevtools/">Visual Web Developer</a> Team</p>]]></content:encoded>
    </item>
    <item>
      <title>Tip #105: Did you know … How to include empty directory when package a web application?</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-105-did-you-know-how-to-include-empty-directory-when-package-a-web-application</link>
      <pubDate>Thu, 29 Apr 2010 15:06:45 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2010/04/29/tip-105-did-you-know-how-to-include-empty-directory-when-package-a-web-application/</guid>
      <description><![CDATA[By design, Visual Studio 2010 will skip the empty directory when packaging web application project...]]></description>
      <content:encoded><![CDATA[<p>By design, Visual Studio 2010 will skip the empty directory when packaging web application project using web deploy.&#160; To get empty directory packaged and deployed, we can work around this by adding an empty stub file inside the directory to make it non-empty. Then web deploy will package and deploy the directory with the stub file.</p>  <p>- Xinyang Qiu |<a href="https://blogs.msdn.com/webdevtools/">Visual Web Developer</a> Team</p>]]></content:encoded>
    </item>
    <item>
      <title>Tip #104:  Did you know … How to view text for the ‘hint’ buttons on the Publish Web Dialog?</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-104-did-you-know-how-to-view-text-for-the-hint-buttons-on-the-publish-web-dialog</link>
      <pubDate>Mon, 26 Apr 2010 13:00:00 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2010/04/26/tip-104-did-you-know-how-to-view-text-for-the-hint-buttons-on-the-publish-web-dialog/</guid>
      <description><![CDATA[After the Beta 2 release of Visual Studio 2010, the Publish Web Dialog was modified to include two...]]></description>
      <content:encoded><![CDATA[<P>After the Beta 2 release of Visual Studio 2010, the Publish Web Dialog was modified to include two information buttons associated with the Service URL and Site/application text boxes.&nbsp; (See Figure 1)</P>
<P><U>Figure 1 – New information (‘hint’) buttons</U> (see circled question marks) <BR><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishProfileDialog_2.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishProfileDialog_2.jpg" mce_href="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishProfileDialog_2.jpg"><IMG title=PublishProfileDialog style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=470 alt=PublishProfileDialog src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishProfileDialog_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishProfileDialog_thumb.jpg" width=342 border=0 mce_src="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishProfileDialog_thumb.jpg"></A> </P>
<P>There are two keys to remember when trying to view the ‘help’ text associated with these buttons:</P>
<UL>
<LI>Patience</LI>
<LI>Hover – don’t click</LI></UL>
<P>In order to reveal the valuable information that these help icons can unlock, simply move your mouse to hover over them and then be patient for a second (i.e. quite moving your mouse around and don’t click them).&nbsp; Presto, the help text will then appear.&nbsp; (See Figure 2 and Figure 3)</P>
<P><U>Figure 2 – Information text associated with Service URL</U> <BR><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg2_2.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg2_2.jpg" mce_href="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg2_2.jpg"><IMG title=PublishWebDlg2 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=100 alt=PublishWebDlg2 src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg2_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg2_thumb.jpg" width=529 border=0 mce_src="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg2_thumb.jpg"></A> </P>
<P mce_keep="true">&nbsp;</P>
<P><U>Figure 3 – Information text associated with Site/application</U> <BR><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg3_2.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg3_2.jpg" mce_href="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg3_2.jpg"><IMG title=PublishWebDlg3 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=73 alt=PublishWebDlg3 src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg3_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg3_thumb.jpg" width=538 border=0 mce_src="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip104DidyouknowHowtoviewtextassociatedw_A189/PublishWebDlg3_thumb.jpg"></A> </P>
<P>Hope this helps in your publishing endeavors.</P>
<P>- Nichole Baker |<A href="https://blogs.msdn.com/webdevtools/" target=_blank mce_href="https://blogs.msdn.com/webdevtools/">Visual Web Developer</A> Team</P>]]></content:encoded>
    </item>
    <item>
      <title>Tip #103 revisited</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-103-revisited</link>
      <pubDate>Fri, 23 Apr 2010 10:08:52 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2010/04/23/tip-103-revisited/</guid>
      <description><![CDATA[In Tip #103 I showed a way of customizing the start page in order to add the New Website and Open...]]></description>
      <content:encoded><![CDATA[<p>In <a href="https://blogs.msdn.com/webdevelopertips/archive/2010/04/14/tip-103-adding-the-new-website-and-open-website-buttons-to-the-vs2010-start-page.aspx">Tip #103</a> I showed a way of customizing the start page in order to add the New Website and Open Website controls.&#160; It turns out that using a loose XAML file as I did in that post is not the recommended practice; in fact, it’s recommended that you don’t do it that way.</p>  <p>The recommended practice is to create a Visual Studio extension, using the <a href="https://visualstudiogallery.msdn.microsoft.com/en-us/f655a5dc-1a2d-4eca-b774-76c352c03b87">Custom Start Page template</a> available from the Visual Studio gallery.</p>  <p>Using the new template, I have reproduced the start page with a VSIX package.&#160; This will install on Visual Studio 2010 (Pro, Premium, Ultimate) and on Visual Web Developer 2010 Express.&#160; To give it a go, try the new package <a href="https://jimmyscorner.com/blog/wp-content/uploads/2010/04/WebStartPage.vsix">here</a>, with sources <a href="https://jimmyscorner.com/blog/wp-content/uploads/2010/04/WebStartPage.zip">here</a></p>  <p>Thanks,</p>  <p>- Jimmy Lewis    <br />SDET | <a href="https://blogs.msdn.com/webdevtools">Visual Web Developer</a> team</p>]]></content:encoded>
    </item>
    <item>
      <title>Tip #103: Adding the New Website and Open Website buttons to the VS2010 Start Page</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip-103-adding-the-new-website-and-open-website-buttons-to-the-vs2010-start-page</link>
      <pubDate>Wed, 14 Apr 2010 09:45:12 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2010/04/14/tip-103-adding-the-new-website-and-open-website-buttons-to-the-vs2010-start-page/</guid>
      <description><![CDATA[In the new VS2010 UI, the start page has been completely re-written.&#160; Part of the changes made...]]></description>
      <content:encoded><![CDATA[<p>In the new VS2010 UI, the start page has been completely re-written.&#160; Part of the changes made were to hide the New Website and Open Website buttons.&#160; Basically it went from the old look in VS2008: </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2008_startPage_2.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2008_startPage_2.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="vs2008_startPage" border="0" alt="vs2008_startPage" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2008_startPage_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2008_startPage_thumb.jpg" width="543" height="383" /></a> </p>  <p>To the new look in VS2010:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2010_noWebControls_2.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2010_noWebControls_2.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="vs2010_noWebControls" border="0" alt="vs2010_noWebControls" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2010_noWebControls_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2010_noWebControls_thumb.jpg" width="427" height="302" /></a> </p>  <p>Of course, ASP.NET website projects are still around and not going away soon.&#160; Here’s a very quick way to make them show up on the Start Page again.</p>  <ol>   <li>Download the StartPageWeb.zip file linked <a href="https://jimmyscorner.com/blog/wp-content/uploads/2010/04/StartPageWeb.zip">here</a> </li>    <li>Extract StartPageWeb.xaml and copy it into your <font color="#008000">Documents\Visual Studio 10.0\StartPages</font> folder </li>    <li>Open Visual Studio 2010 and open Tools –&gt; Options.&#160; Find the option under Environment –&gt; Startup, and set the Customize Start Page dropdown to point at the new XAML file. </li> </ol>  <p>That’s it!&#160; Now your start page will look like this:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2010_webControls_2.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2010_webControls_2.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="vs2010_webControls" border="0" alt="vs2010_webControls" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2010_webControls_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/vs2010_webControls_thumb.jpg" width="387" height="312" /></a></p>  <p>Note: you may get a security warning that the file is not trusted.&#160; This is due to downloading it from the scary Internet.&#160; From Windows Explorer, you can right-click the file, select Properties, and then select the Unblock button by the bottom:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/unblock_file_2.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/unblock_file_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="unblock_file" border="0" alt="unblock_file" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/unblock_file_thumb.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/AddingtheNewWebsiteandOpenWebsitebuttons_DA4F/unblock_file_thumb.png" width="381" height="519" /></a> </p>  <p>Hope you find this helpful!</p>  <p>- Jimmy Lewis    <br />SDET | <a href="https://blogs.msdn.com/webdevtools">Visual Web Developer</a> team</p>]]></content:encoded>
    </item>
    <item>
      <title>Tip#102: Did you know… How to specify tag specific formatting</title>
      <link>https://docs.microsoft.com/archive/blogs/webdevelopertips/tip102-did-you-know-how-to-specify-tag-specific-formatting</link>
      <pubDate>Thu, 25 Mar 2010 11:22:22 GMT</pubDate>
      <dc:creator><![CDATA[Web Development Tools Microsoft]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/webdevelopertips/2010/03/25/tip102-did-you-know-how-to-specify-tag-specific-formatting/</guid>
      <description><![CDATA[Let’s see this with an example.&#160; I have the following html code on my page.          Now if I...]]></description>
      <content:encoded><![CDATA[<p>Let’s see this with an example.&#160; I have the following html code on my page.    <br />    <br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_2.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb.png" width="171" height="89" /></a></p>  <p>Now if I format the document by selecting Edit –&gt; Format document (or Ctrl K, Ctrl D)</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_6.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_6.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_2.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_2.png" width="216" height="341" /></a>     <br />    <br />The document becomes     <br />    <br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_8.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_8.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_3.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_3.png" width="143" height="114" /></a>     <br /></p>  <p>I want the content inside td should remain on the same line after formatting the document.    <br />    <br />Following steps would show how you can specify tag specific formatting for the Visual Studio editor</p>  <ol>   <li>Right click on the editor in an aspx file and select Formatting and Validation... (or alternatively you can go from Menu Tools-&gt; Options -&gt; Text Editor -&gt; HTML -&gt; Formatting)      <br />      <br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_10.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_10.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_4.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_4.png" width="277" height="279" /></a>&#160; <br />      <br /></li>    <li>From the options dialog select 'Tag specific options'      <br />      <br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_14.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_14.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_6.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_6.png" width="488" height="285" /></a>&#160; <br /></li>    <li>On the tag specific dialog you can select a tag or create new one and select various formatting options. For this example, I selected Client HTML Tags –&gt; td and then set Line breaks as none and click Ok.      <br />      <br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_16.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_16.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_7.png" original-url="https://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip102DidyouknowHowtospecifytagspecificf_9FEB/image_thumb_7.png" width="494" height="440" /></a>&#160; <br /></li>    <li>Now if I format the document, there are no line breaks added to the content of the td. </li> </ol>  <p>Hope this helps, </p>  <p><strong>Deepak Verma </strong>    <br />SDET | <a href="https://blogs.msdn.com/webdevtools/">Visual Web Developer</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>