<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" 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/"><channel><title>ASP.NET</title><link>http://waltritscher.com/blog/ramblings/category/15.aspx</link><description>ASP.NET</description><managingEditor>Walt Ritscher</managingEditor><dc:language>en-US</dc:language><generator>.Text Version 0.95.2004.102</generator><item><dc:creator>Walt Ritscher</dc:creator><title>Visual Studio 2005 SP1 is Released</title><link>http://waltritscher.com/blog/ramblings/archive/2006/12/15/1287.aspx</link><pubDate>Fri, 15 Dec 2006 08:51:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/12/15/1287.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/1287.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/12/15/1287.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/1287.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/1287.aspx</trackback:ping><description>&lt;P&gt;Hooray! Microsoft &lt;A href="http://msdn.microsoft.com/vstudio/support/vs2005sp1/"&gt;released the service packs&lt;/A&gt; for Visual Studio today.&amp;nbsp; These are a MUST INSTALL for anyone using VS.&amp;nbsp; There are plenty of bug fixes.&amp;nbsp; The two that I'm most excited about are the Visual Basic background compiler fix and the performance fix for compiling large projects.&amp;nbsp; Both of these issues have slowed my daily development consistently during the last year.&lt;/P&gt;
&lt;P&gt;If you are an ASP.NET developer you'll be happy that the Web Deployment and Web Application projects are now included.&lt;/P&gt;
&lt;P&gt;Microsoft has added some interesting new features in the SP too.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Multicore support for profiling&lt;/LI&gt;
&lt;LI&gt;Multicore support for code gen&lt;/LI&gt;
&lt;LI&gt;Team Server&amp;nbsp;performance improvements&lt;/LI&gt;
&lt;LI&gt;See the Microsoft website &lt;A href="http://msdn.microsoft.com/vstudio/support/vs2005sp1/"&gt;for more details&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;There are several version of the SP. Pick the one that matches your version of Visual Studio.&lt;/P&gt;
&lt;UL type=disc&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: black; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;A title=http://www.microsoft.com/downloads/details.aspx?FamilyId=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC href="http://www.microsoft.com/downloads/details.aspx?FamilyId=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC"&gt;Visual Studio 2005 Team Suite SP1&lt;/A&gt; (includes SP1 updates for Standard, Professional, and Team Editions of Visual Studio 2005)&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: black; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;A title=http://www.microsoft.com/downloads/details.aspx?FamilyId=A9AB638C-04D2-4AEE-8AE8-9F00DD454AB8 href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A9AB638C-04D2-4AEE-8AE8-9F00DD454AB8"&gt;Visual Studio 2005 Team Foundation Server SP1&lt;/A&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: black; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;A title=http://www.microsoft.com/downloads/details.aspx?FamilyId=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E href="http://www.microsoft.com/downloads/details.aspx?FamilyId=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E"&gt;Visual Studio 2005 Express Editions SP1&lt;/A&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: black; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;A title=http://www.microsoft.com/downloads/details.aspx?FamilyId=FB6BB56A-10B7-4C05-B81C-5863284503CF href="http://www.microsoft.com/downloads/details.aspx?FamilyId=FB6BB56A-10B7-4C05-B81C-5863284503CF"&gt;Visual Studio 2005 SP1 Update for Windows Vista Beta&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: black; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;Seriously, if you are using Visual Studio 2005 you should install this SP as soon as possible.&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: black; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/1287.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>ASP.NET 2.0 "Generation of designer file failed: ConnectionString error fixed</title><link>http://waltritscher.com/blog/ramblings/archive/2006/11/01/1085.aspx</link><pubDate>Wed, 01 Nov 2006 23:59:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/11/01/1085.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/1085.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/11/01/1085.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/1085.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/1085.aspx</trackback:ping><description>&lt;P&gt;Tonight I was converting an ASP.NET 2.0 Website to a &lt;STRONG&gt;Web Application Project&lt;/STRONG&gt;.&amp;nbsp; There is a nice &lt;A href="http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx"&gt;step-by-step guide&lt;/A&gt; that&amp;nbsp;I was using to walk me through the process.&amp;nbsp; &amp;nbsp;I ran into troubles as soon as I ran the &amp;#8220;Convert to Web Application&amp;#8221; menu.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I tracked&amp;nbsp; the trouble down to four files in the project.&amp;nbsp; All of them were failing with this message.&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P&gt;&lt;EM&gt;Generation of designer file failed:&amp;nbsp; The expression prefix &amp;#8220;ConnectionStrings&amp;#8221; was not recognized.&amp;nbsp; Please correct the prefix&amp;nbsp;or register the prefix in the &amp;lt;expressionBuilders&amp;gt; section of configuration.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The first place I looked was&amp;nbsp;a dead end.&amp;nbsp; I looked in the web.config, thinking that was the configuration file in the error message.&amp;nbsp; Wrong!&lt;/P&gt;
&lt;P&gt;Next I looked at the html on one of the problem pages.&lt;/P&gt;
&lt;STYLE&gt;
.code {
word-wrap:break-word;
margin:10px;
padding:10px;
border:2px ridge white;
background-color:#eeeeee;
font-family:Courier New;
font-size:10pt;
}
&lt;/STYLE&gt;

&lt;DIV class=code&gt;&amp;nbsp;&lt;FONT color=blue&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=maroon&gt;asp:SqlDataSource&lt;/FONT&gt;&lt;FONT color=red&gt;&amp;nbsp;ID&lt;/FONT&gt;&lt;FONT color=blue&gt;="dsUsers"&lt;/FONT&gt;&lt;FONT color=red&gt;&amp;nbsp;runat&lt;/FONT&gt;&lt;FONT color=blue&gt;="server"&lt;/FONT&gt;&lt;FONT color=red&gt;&amp;nbsp;ConnectionString&lt;/FONT&gt;&lt;FONT color=blue&gt;="&amp;lt;%$&amp;nbsp;ConnectionStrings:aspnetdbConnectionString&amp;nbsp;%&amp;gt;"&lt;/FONT&gt; &lt;/DIV&gt;
&lt;P&gt;There was the ConnectionStrings text!&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Fix&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Cut everything between the quotes for value of the ConnectionString attribute.&lt;/LI&gt;
&lt;LI&gt;Do the same for any other ConnectionString attributes on the same page.&lt;/LI&gt;
&lt;LI&gt;Run the&amp;nbsp; &amp;#8220;Convert to Web Application&amp;#8221; for the current page.&lt;/LI&gt;
&lt;LI&gt;Restore the ConnectionString value and save the file.&lt;/LI&gt;&lt;/OL&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/1085.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>Seattle Code Camp 2006 (October 28,29)</title><link>http://waltritscher.com/blog/ramblings/archive/2006/10/10/1018.aspx</link><pubDate>Tue, 10 Oct 2006 11:35:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/10/10/1018.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/1018.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/10/10/1018.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/1018.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/1018.aspx</trackback:ping><description>&lt;P&gt;It's only three weeks away and coming to Seattle.&amp;nbsp; That's right, the Seattle Code camp is looking for camp counselors (speakers).&amp;nbsp;&amp;nbsp; If you want to talk tech to a room full of eager participants this is the event you've been waiting for.&lt;/P&gt;
&lt;P&gt;Last year we had over 50 presenters and 250+ attendees.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Sign up to speak or attend &lt;/P&gt;
&lt;P&gt;&lt;A href="http://seattle.techevents.info/codecamp/2/default.aspx"&gt;http://seattle.techevents.info/codecamp/2/default.aspx&lt;/A&gt;&lt;/P&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/1018.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>Bug Fix: Disappearing Intellisense in ASP.NET web.config</title><link>http://waltritscher.com/blog/ramblings/archive/2006/08/26/983.aspx</link><pubDate>Sat, 26 Aug 2006 10:53:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/08/26/983.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/983.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/08/26/983.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/983.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/983.aspx</trackback:ping><description>&lt;P&gt;I really like the Visual Studio 2005 intellisense (See &lt;A href="http://waltritscher.com/blog/ramblings/archive/2006/08/26/982.aspx"&gt;here&lt;/A&gt;)&amp;nbsp;. There is a bug in the VS however that can stop it from working.&amp;nbsp; I believe it will be fixed in the VS 2005 service pack coming in December but in the meantime here are some things to help fix the problem.&amp;nbsp; Thanks to &lt;A href="http://weblogs.asp.net/scottgu/"&gt;ScottGu&lt;/A&gt; and others for the ideas.&amp;nbsp; I'm posting here so I don't forget.&lt;/P&gt;
&lt;H3&gt;Configuration Element troubles&lt;/H3&gt;
&lt;P&gt;The main thing that causes the intellisense to stop working is adding a xmlsn attribute to the root &amp;lt;config&amp;gt; element.&lt;/P&gt;
&lt;P&gt;From Scott&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;FONT size=2&gt;There is one gotcha to be aware of, though, that can sometimes cause intellisense for the web.config file to stop working in the IDE.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;This happens when a default namespace is added to the root &amp;lt;configuration&amp;gt; element.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;For example, like so:&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;configuration&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;xmlns&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;"&lt;SPAN style="COLOR: blue"&gt;http://schemas.microsoft.com/.NetConfiguration/v2.0&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&lt;FONT size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;FONT size=2&gt;This doesn&amp;#8217;t cause any runtime problems &amp;#8211; but it does stop intellisense completion happening for the built-in .NET XML elements in the web.config file.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;FONT size=2&gt;The bad news is that the built-in web admin tool (launched via the WebSite-&amp;gt;ASP.NET Configuration menu item in VS 2005 and Visual Web Developer) always adds this xmlns namespace when it launches &amp;#8211; so if you use this tool to manage users/roles you&amp;#8217;ll end up having it added to your web.config file for you.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;FONT size=2&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;FONT size=2&gt;To get intellisense back when you are editing the web.config file in the IDE, just delete the xmlns reference and have the root configuration element look like so:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;configuration&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;FONT size=2&gt;Everything will then work fine again.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;Changing WebAdmin&amp;nbsp; Tool&lt;/H3&gt;
&lt;P&gt;A quick fix to the WebAdmin tool will prevent your config file from getting hammered.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to&amp;nbsp;&amp;nbsp;%windir%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\App_Code&lt;/LI&gt;
&lt;LI&gt;Open the WebAdminPage.cs file&lt;/LI&gt;
&lt;LI&gt;Edit the config.NamespaceDeclared line.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG src="/blog/images/webadminfix1.png"&gt; &lt;/P&gt;
&lt;P&gt;Thanks to &lt;A href="http://blogs.ugidotnet.org/mprota/"&gt;Massimo Prota&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/983.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>Intellisense in ASP.NET web.confg</title><link>http://waltritscher.com/blog/ramblings/archive/2006/08/26/982.aspx</link><pubDate>Sat, 26 Aug 2006 10:29:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/08/26/982.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/982.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/08/26/982.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/982.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/982.aspx</trackback:ping><description>&lt;P&gt;Visual Studio 2005 improves on the intellisense in many file-types.&amp;nbsp;&amp;nbsp; One of my favorites is the support for intellisense in XML and .config files.&amp;nbsp; You get a listing of what elements and attributes are available for the current config section.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="/blog/images/intelli1.png"&gt;&lt;/P&gt;
&lt;P&gt;It's also smart enough to know when you've used a element and not show it in&amp;nbsp;the list (if it is restricted to one instance in the schema).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;First Time&lt;/STRONG&gt;&lt;/P&gt;&amp;gt;&lt;IMG src="/blog/images/intelli2.png"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Second Time&lt;/STRONG&gt;&lt;/P&gt;&amp;gt;&lt;IMG src="/blog/images/intelli3.png"&gt;
&lt;P&gt;&lt;/P&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/982.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>Ruby in Steel - Writing Ruby code in Visual Studio 2005</title><link>http://waltritscher.com/blog/ramblings/archive/2006/08/02/973.aspx</link><pubDate>Wed, 02 Aug 2006 11:00:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/08/02/973.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/973.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/08/02/973.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/973.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/973.aspx</trackback:ping><description>&lt;P&gt;It seems that a lot of my colleagues are intrigued with Ruby and it's web cousin Ruby on Rails.&amp;nbsp; I have to admit I'm intrigued with the language, I just haven't had the time to look into the benefits of Ruby first hand.&lt;/P&gt;
&lt;P&gt;A couple of people/companies are working on .NET implementations for Ruby.&amp;nbsp; Last week at the Portland Code Camp I sat in on &lt;A href="http://pdx.techevents.info/codecamp/2/SessionInfo.aspx?ID=2b2cf0c4-48eb-43cb-8fa1-a463ef9e999d"&gt;IronRuby &lt;/A&gt;session.&amp;nbsp; A very interesting look at how &lt;A href="http://www.wilcob.com/wilco/Default.aspx"&gt;Wilco Bauwer&lt;/A&gt; is building a version of Ruby that runs on the .NET CLR.&amp;nbsp;&amp;nbsp; Wilco is an intern on the ASP.NET team and still finds spare time to work on the Iron Ruby project.&lt;/P&gt;
&lt;P&gt;Another interesting find is Ruby in Steel.&amp;nbsp; This is a &lt;A href="http://www.sapphiresteel.com/"&gt;Visual Studio implementation&lt;/A&gt; of Ruby on Rails from a company name SapphireSteel.&amp;nbsp; You can use all the tools you know and love from Visual Studio to build, modify and test Ruby on Rails&amp;nbsp;code.&amp;nbsp; They're still in early beta releases but it looks very interesting to me.&amp;nbsp; According to their web site&amp;nbsp;SapphireSteel&amp;nbsp;will release a commercial version and a free standard edition.&lt;/P&gt;
&lt;P&gt;I might be learning Ruby on Rails sooner than I thought.&lt;/P&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/973.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>Updated Portland Code Camp 2006 code</title><link>http://waltritscher.com/blog/ramblings/archive/2006/08/02/972.aspx</link><pubDate>Wed, 02 Aug 2006 10:00:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/08/02/972.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/972.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/08/02/972.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/972.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/972.aspx</trackback:ping><description>&lt;P&gt;For anyone at the Portland Oregon Code Camp&lt;/P&gt;
&lt;P&gt;I updated my ASP.NET tips code this week and uploaded to my website. Thanks for coming to my talk.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.waltritscher.com/Default.aspx?tabid=57 "&gt;Get the&amp;nbsp;code&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/972.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>Tip: ASP.NET 2.0 Treeview  - Expanding Nodes when Bound to SiteMap</title><link>http://waltritscher.com/blog/ramblings/archive/2006/05/18/843.aspx</link><pubDate>Thu, 18 May 2006 22:32:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/05/18/843.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/843.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/05/18/843.aspx#Feedback</comments><slash:comments>11</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/843.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/843.aspx</trackback:ping><description>&lt;P&gt;The&amp;nbsp;new ASP.NET 2.0 TreeView control&amp;nbsp;is pretty handy.&amp;nbsp; It can function as a normal treeview - where you can add/remove treenodes&amp;nbsp;to the nodes collection.&amp;nbsp;It can also serve as a site navigation tree.&amp;nbsp; In this mode each node on the tree becomes a hyperlink to another webpage.&amp;nbsp; The hyperlink gets its Href from the&amp;nbsp;treenodes NavigationUrl property which in turn gets its Url from the web.sitemap file.&lt;/P&gt;
&lt;P&gt;Today I finally solved one of the annoying dilemmas that crops up when using the Treeview.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;A treenode can be selected or expanded.&amp;nbsp; &lt;STRONG&gt;Selecting&lt;/STRONG&gt; the node causes the SelectedNodeChange event to fire if the Treeview is configured correctly.&amp;nbsp; Clicking the + icon on a node causes the TreeNodeExpanded event to fire.&amp;nbsp; The selected event will not fire if the node is in Navigation mode.&amp;nbsp;&amp;nbsp;&amp;nbsp; This behavior makes sense most of the time.&amp;nbsp; The node is acting &amp;nbsp;as a navigation link&amp;nbsp; -&amp;nbsp;it causes the browser to take you to a new page which means there is no postback.&amp;nbsp; Your are going to a new page, without returning to the server first.&lt;/P&gt;
&lt;P&gt;If the node has its NavigationUrl property set to an empty string, the node is in &lt;STRONG&gt;Selection&lt;/STRONG&gt; mode.&amp;nbsp; If the NavigationUrl is a non-zero length string ,the node is in &lt;STRONG&gt;Navigation&lt;/STRONG&gt; mode.&lt;/P&gt;
&lt;P&gt;For our project I wanted the children nodes to expand whenever the user selects a parent node.&amp;nbsp; Yes, the user can click the + symbol to expand it, &amp;nbsp;but our testing showed that many users expect the node to expand by clicking the node text instead. Since the nodes are in Navigation mode I couldn't&amp;nbsp; put the code in the SelectedNodeChanged event.&lt;/P&gt;
&lt;P&gt;My solution?&amp;nbsp; Use the TreeNodeDatabound event to examine each node as it is being bound to the tree.&amp;nbsp; If the current page URL matches the treenode NavigationUrl I expand all the of the current nodes children.&amp;nbsp; It solves my problem.&amp;nbsp; It still doesn't cause the SelectedNodeChanged to fire so it may not solve all your troubles. At least it's a start.&lt;/P&gt;
&lt;STYLE&gt;
.code {
word-wrap:break-word;
margin:10px;
padding:10px;
border:2px ridge white;
background-color:#eeeeee;
font-family:Courier New;
font-size:10pt;
}
&lt;/STYLE&gt;

&lt;DIV class=code&gt;&amp;nbsp;&lt;FONT color=blue&gt;Protected&amp;nbsp;Sub&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=black&gt;treeMainMenu_TreeNodeDataBound&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;(&lt;/FONT&gt;&lt;FONT color=blue&gt;ByVal&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=black&gt;sender&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=blue&gt;As&amp;nbsp;Object&lt;/FONT&gt;&lt;FONT color=black&gt;,&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;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=blue&gt;ByVal&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=black&gt;e&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=blue&gt;As&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=black&gt;System.Web.UI.WebControls.TreeNodeEventArgs)&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;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=blue&gt;Handles&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=black&gt;treeMainMenu.TreeNodeDataBound&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=darkgreen&gt;'&amp;nbsp;other&amp;nbsp;binding&amp;nbsp;code&amp;nbsp;here...&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=blue&gt;If&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=black&gt;Request.Url.PathAndQuery&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=blue&gt;=&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=black&gt;e.Node.NavigateUrl&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=blue&gt;Then&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;&lt;/FONT&gt;&lt;FONT color=black&gt;e.Node.ExpandAll()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=blue&gt;End&amp;nbsp;If&lt;BR&gt;&amp;nbsp;End&amp;nbsp;Sub&lt;/FONT&gt; &lt;/DIV&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/843.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>Tip: ASP.NET 2.0 Login Control Not Redirecting</title><link>http://waltritscher.com/blog/ramblings/archive/2006/05/18/842.aspx</link><pubDate>Thu, 18 May 2006 13:56:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/05/18/842.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/842.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/05/18/842.aspx#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/842.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/842.aspx</trackback:ping><description>&lt;P&gt;I fixed a bug this morning on our clients ASP.NET 2.0 website.   The site uses the ASP.NET 2.0 Login control.  If the user logged in with one account, logged out and attempted to login again they were not redirected to the destination page.&lt;/P&gt;
&lt;P&gt;I coded the following in the Login control Authenticate event and it appears to solve the problem.&lt;/P&gt;
&lt;STYLE&gt;
.code {
word-wrap:break-word;
margin:10px;
padding:10px;
border:2px ridge white;
background-color:#eeeeee;
font-family:Courier New;
font-size:10pt;
}
&lt;/STYLE&gt;

&lt;DIV class=code&gt; &lt;FONT color=blue&gt;Protected Sub &lt;/FONT&gt;&lt;FONT color=black&gt;Login1_Authenticate _&lt;BR&gt;     (&lt;/FONT&gt;&lt;FONT color=blue&gt;ByVal &lt;/FONT&gt;&lt;FONT color=black&gt;sender &lt;/FONT&gt;&lt;FONT color=blue&gt;As Object&lt;/FONT&gt;&lt;FONT color=black&gt;, _&lt;BR&gt;      &lt;/FONT&gt;&lt;FONT color=blue&gt;ByVal &lt;/FONT&gt;&lt;FONT color=black&gt;e &lt;/FONT&gt;&lt;FONT color=blue&gt;As &lt;/FONT&gt;&lt;FONT color=black&gt;System.Web.UI.WebControls.AuthenticateEventArgs) _&lt;BR&gt;     &lt;/FONT&gt;&lt;FONT color=blue&gt;Handles &lt;/FONT&gt;&lt;FONT color=black&gt;Login1.Authenticate&lt;BR&gt;&lt;BR&gt;   &lt;/FONT&gt;&lt;FONT color=darkgreen&gt;' validation code here...&lt;BR&gt;&lt;BR&gt;    &lt;/FONT&gt;&lt;FONT color=blue&gt;If &lt;/FONT&gt;&lt;FONT color=black&gt;e.Authenticated &lt;/FONT&gt;&lt;FONT color=blue&gt;Then&lt;BR&gt;        If &lt;/FONT&gt;&lt;FONT color=black&gt;Request.QueryString(&lt;/FONT&gt;&lt;FONT color=#808080&gt;"ReturnUrl"&lt;/FONT&gt;&lt;FONT color=black&gt;) IsNot Nothing &lt;/FONT&gt;&lt;FONT color=blue&gt;Then&lt;BR&gt;&lt;BR&gt;            &lt;/FONT&gt;&lt;FONT color=black&gt;FormsAuthentication.RedirectFromLoginPage(Login1.UserName, &lt;/FONT&gt;&lt;FONT color=blue&gt;False&lt;/FONT&gt;&lt;FONT color=black&gt;)&lt;BR&gt;        &lt;/FONT&gt;&lt;FONT color=blue&gt;Else&lt;BR&gt;            &lt;/FONT&gt;&lt;FONT color=black&gt;FormsAuthentication.SetAuthCookie(Login1.UserName, &lt;/FONT&gt;&lt;FONT color=blue&gt;False&lt;/FONT&gt;&lt;FONT color=black&gt;)&lt;BR&gt;&lt;BR&gt;            &lt;/FONT&gt;&lt;FONT color=darkgreen&gt;' we shouldn't have to do this&lt;BR&gt;            ' but I'm  finding that the page doesn't always redirect&lt;BR&gt;            &lt;/FONT&gt;&lt;FONT color=black&gt;Response.Redirect(Login1.DestinationPageUrl)&lt;BR&gt;        &lt;/FONT&gt;&lt;FONT color=blue&gt;End If&lt;BR&gt;    End If&lt;BR&gt;      &lt;BR&gt;End Sub&lt;/FONT&gt; &lt;/DIV&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/842.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Walt Ritscher</dc:creator><title>VSLive 2006 Toronto Code is online</title><link>http://waltritscher.com/blog/ramblings/archive/2006/05/02/838.aspx</link><pubDate>Tue, 02 May 2006 01:15:00 GMT</pubDate><guid>http://waltritscher.com/blog/ramblings/archive/2006/05/02/838.aspx</guid><wfw:comment>http://waltritscher.com/blog/ramblings/comments/838.aspx</wfw:comment><comments>http://waltritscher.com/blog/ramblings/archive/2006/05/02/838.aspx#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://waltritscher.com/blog/ramblings/comments/commentRss/838.aspx</wfw:commentRss><trackback:ping>http://waltritscher.com/blog/ramblings/services/trackbacks/838.aspx</trackback:ping><description>&lt;P&gt;I finally finished the zips of my talks from VSLive Toronto.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.waltritscher.com/Default.aspx?tabid=55"&gt;http://www.waltritscher.com/Default.aspx?tabid=55&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Enjoy&lt;/P&gt;&lt;img src ="http://waltritscher.com/blog/ramblings/aggbug/838.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>