<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Where did the time go? - ASP.NET</title>
    <link>http://blog.j-maxx.net/</link>
    <description>Brain Powered</description>
    <language>en-us</language>
    <copyright>Jeff Klawiter</copyright>
    <lastBuildDate>Fri, 06 Nov 2009 03:05:51 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.1.8102.813</generator>
    <managingEditor>Jeff.Klawiter@sierra-bravo.com</managingEditor>
    <webMaster>Jeff.Klawiter@sierra-bravo.com</webMaster>
    <item>
      <trackback:ping>http://blog.j-maxx.net/Trackback.aspx?guid=271a5c52-c34c-40e4-a3e4-b05ab8d7669e</trackback:ping>
      <pingback:server>http://blog.j-maxx.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.j-maxx.net/PermaLink,guid,271a5c52-c34c-40e4-a3e4-b05ab8d7669e.aspx</pingback:target>
      <dc:creator>Jeff Klawiter</dc:creator>
      <wfw:comment>http://blog.j-maxx.net/CommentView,guid,271a5c52-c34c-40e4-a3e4-b05ab8d7669e.aspx</wfw:comment>
      <wfw:commentRss>http://blog.j-maxx.net/SyndicationService.asmx/GetEntryCommentsRss?guid=271a5c52-c34c-40e4-a3e4-b05ab8d7669e</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I went to create my first new website with Visual Studio 2010 the other day and was
quite surprised with what I found. 
</p>
        <p>
          <a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_6.png" width="943" height="586" />
          </a>
        </p>
        <p>
In all versions prior to 2010 a new website would just get you a Default.aspx and
the corresponding language codebehind file. This changes quite a bit with 2010. You
actually will now be presented with a full website ready to go. Complete with a Master
page, account login and more.
</p>
        <p>
          <a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb.png" width="307" height="589" />
          </a>
        </p>
        <p>
Digging in Further yields some nice little nuggets. First off the Site.Master isn’t
just a blank master page with a ContentPlaceHolder. It actually contains a relatively
decent CSS layout with LoginView and Menu controls.
</p>
        <p>
          <a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_4.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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_1.png" width="956" height="765" />
          </a>
        </p>
        <p>
Along with the Site.Master the site comes with Default.aspx, About.aspx and an entire
directory dedicated to authentication. The Account directory is set up to handle all
the most common authentication scenarios: Login, Register and Password Recovery. Furthermore
these pages include actual code in the codebehind.
</p>
        <p>
One thing however that it is missing is the database to authenticate with. If you
are planning to use your own membership provider or an external database you just
need to set it up in the web.config. If you’d like to just use an sqlexpress database
you can use the ASP.NET Website Administration Tool to do this for you. This tool
was added in .NET 2.0 and the current version doesn’t seem to have changed much. To
generate the ASPNETDB.MDF SQLExpress database. Just click on the Tool and World icon
in the Solution Explorer.
</p>
        <p>
          <a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_2.png" width="250" height="121" />
          </a>
          <br />
Another way to access this tool is via the ASP.NET Configuration command under the
Website menu.
</p>
        <p>
          <a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_4.png" width="892" height="730" />
          </a>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
The best way to have it set up the database is to click on the “Use the security Setup
Wizard..” link. This will take you through setting up the database, roles, users and
locked down directories.
</p>
        <p>
Beyond the account code the site comes with jQuery 1.3.2, it’s minified version and
the Visual Studio Intellisense file. Unfortunately the jQuery files are not referenced
by default in the master page or any of the other pages. I would have loved to have
either an example usage or at least a reference to the file. To add jQuery it’s just
a simple addition to the master file. After that just force VS to update its javascript
intellisense using Ctrl+Shift+j
</p>
        <p>
          <a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_12.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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_5.png" width="1157" height="348" />
          </a>
        </p>
        <p>
Rarely do I start out a website this way these days, most my sites I start are powered
by one CMS or another. Besides those times I’ve been trying to use ASP.NET MVC more
these days. I still use the default webforms site when I need to get something up
and running quick with some basic data controls. I recently did a website for planning
a family reunion. I could have saved myself a half an hour or so getting just the
base of the site set up. 
</p>
        <img width="0" height="0" src="http://blog.j-maxx.net/aggbug.ashx?id=271a5c52-c34c-40e4-a3e4-b05ab8d7669e" />
      </body>
      <title>VS2010 New Website Template Updates</title>
      <guid isPermaLink="false">http://blog.j-maxx.net/PermaLink,guid,271a5c52-c34c-40e4-a3e4-b05ab8d7669e.aspx</guid>
      <link>http://blog.j-maxx.net/2009/11/06/VS2010NewWebsiteTemplateUpdates.aspx</link>
      <pubDate>Fri, 06 Nov 2009 03:05:51 GMT</pubDate>
      <description>&lt;p&gt;
I went to create my first new website with Visual Studio 2010 the other day and was
quite surprised with what I found. 
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_14.png"&gt;&lt;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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_6.png" width="943" height="586" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
In all versions prior to 2010 a new website would just get you a Default.aspx and
the corresponding language codebehind file. This changes quite a bit with 2010. You
actually will now be presented with a full website ready to go. Complete with a Master
page, account login and more.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_2.png"&gt;&lt;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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb.png" width="307" height="589" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Digging in Further yields some nice little nuggets. First off the Site.Master isn’t
just a blank master page with a ContentPlaceHolder. It actually contains a relatively
decent CSS layout with LoginView and Menu controls.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_4.png"&gt;&lt;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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_1.png" width="956" height="765" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Along with the Site.Master the site comes with Default.aspx, About.aspx and an entire
directory dedicated to authentication. The Account directory is set up to handle all
the most common authentication scenarios: Login, Register and Password Recovery. Furthermore
these pages include actual code in the codebehind.
&lt;/p&gt;
&lt;p&gt;
One thing however that it is missing is the database to authenticate with. If you
are planning to use your own membership provider or an external database you just
need to set it up in the web.config. If you’d like to just use an sqlexpress database
you can use the ASP.NET Website Administration Tool to do this for you. This tool
was added in .NET 2.0 and the current version doesn’t seem to have changed much. To
generate the ASPNETDB.MDF SQLExpress database. Just click on the Tool and World icon
in the Solution Explorer.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_6.png"&gt;&lt;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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_2.png" width="250" height="121" /&gt;&lt;/a&gt; 
&lt;br /&gt;
Another way to access this tool is via the ASP.NET Configuration command under the
Website menu.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_10.png"&gt;&lt;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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_4.png" width="892" height="730" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
The best way to have it set up the database is to click on the “Use the security Setup
Wizard..” link. This will take you through setting up the database, roles, users and
locked down directories.
&lt;/p&gt;
&lt;p&gt;
Beyond the account code the site comes with jQuery 1.3.2, it’s minified version and
the Visual Studio Intellisense file. Unfortunately the jQuery files are not referenced
by default in the master page or any of the other pages. I would have loved to have
either an example usage or at least a reference to the file. To add jQuery it’s just
a simple addition to the master file. After that just force VS to update its javascript
intellisense using Ctrl+Shift+j
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_12.png"&gt;&lt;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="http://blog.j-maxx.net/content/binary/WindowsLiveWriter/VS2010NewWebsiteTemplateUpdates_12877/image_thumb_5.png" width="1157" height="348" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Rarely do I start out a website this way these days, most my sites I start are powered
by one CMS or another. Besides those times I’ve been trying to use ASP.NET MVC more
these days. I still use the default webforms site when I need to get something up
and running quick with some basic data controls. I recently did a website for planning
a family reunion. I could have saved myself a half an hour or so getting just the
base of the site set up. 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.j-maxx.net/aggbug.ashx?id=271a5c52-c34c-40e4-a3e4-b05ab8d7669e" /&gt;</description>
      <comments>http://blog.j-maxx.net/CommentView,guid,271a5c52-c34c-40e4-a3e4-b05ab8d7669e.aspx</comments>
      <category>ASP.NET</category>
      <category>Visual Studio 2010</category>
    </item>
  </channel>
</rss>