<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Rahul Soni's blog - Moved to www.dotnetscraps.com</title><link>http://blogs.msdn.com/rahulso/default.aspx</link><description>Never assume the obvious is true!</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>My last post (as an IIS/ASP.NET guy…)</title><link>http://blogs.msdn.com/rahulso/archive/2008/09/01/my-last-post-as-an-iis-asp-net-guy.aspx</link><pubDate>Mon, 01 Sep 2008 16:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8903125</guid><dc:creator>rahulso</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8903125.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8903125</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8903125</wfw:comment><description>I still remember the day when I joined Microsoft in Oct 2004. I was excited to be in my dream company, and at the same time, quite tense that I would now be required to support ASP.NET. I was a pure WinForm guy then and since I came from a very small company, “I am a pretty good programmer” thought was getting etched somewhere deep in my mind. Boy, what a big frog I was in a really shallow well! I still thank God for getting me here and showing me the mirror. Not that I’ve become a genius of any sorts, but now I probably understand a little bit more about the term “Smart Programmer” and why you shouldn’t be calling GC.Collect too many times, why knowing the architecture is as important as coding itself, why web garden in IIS is not supposed to fix all your performance issues, etc. etc. etc. &lt;img src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/wink_smile.gif" alt="Wink" mce_src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/wink_smile.gif"&gt;!!  &lt;p&gt;Over the last 4 years, I have learnt a lot of things and have worked with some pretty amazing folks. Folks who debug and fix all sort of issues with ASP.NET/IIS and still so humble about it. &lt;/p&gt;  &lt;p&gt;I loved my stint at DSI. I am feeling nostalgic and super-excited yet again, since on 8th of September, I would no longer be a part of IIS/ASP.NET team. I would be joining as a Product Field Engineer for Sharepoint. I hear that Sharepoint is rocking the world stage big-time, and it will be a pretty nice task that I will be doing. Reminds me of the fact that history repeats itself. From a Winform to IIS/ASP.NET and now over to Sharepoint. Let’s see what future has in store for me.&lt;/p&gt;  &lt;p&gt;For the few folks who read my blogs, expect a lot more stuff on Sharepoint. And by the way, it happens to be my last post here. Going forward I will be posting exclusively on &lt;a href="http://www.dotnetscraps.com/" title="http://www.dotnetscraps.com/" mce_href="http://www.dotnetscraps.com/"&gt;http://www.dotnetscraps.com/&lt;/a&gt;.&amp;nbsp; Will see you there...&lt;/p&gt;  &lt;p&gt;For my dear team members &amp;gt; If you are reading this, I am sure that I am NOT gonna miss you, since we’ll keep in touch always &lt;img src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif" alt="Smile" mce_src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif"&gt;!!&lt;/p&gt;  &lt;p&gt;-Rahul&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8903125" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Miscellany/default.aspx">Miscellany</category></item><item><title>ASP.NET:How to write error messages into a text file using a simple httpModule</title><link>http://blogs.msdn.com/rahulso/archive/2008/07/18/asp-net-how-to-write-error-messages-into-a-text-file-using-a-simple-httpmodule.aspx</link><pubDate>Fri, 18 Jul 2008 16:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8749269</guid><dc:creator>rahulso</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8749269.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8749269</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8749269</wfw:comment><description>&lt;P&gt;In one of my &lt;A href="http://blogs.msdn.com/rahulso/archive/2008/07/13/how-to-use-httpmodules-to-troubleshoot-your-asp-net-application.aspx" mce_href="http://blogs.msdn.com/rahulso/archive/2008/07/13/how-to-use-httpmodules-to-troubleshoot-your-asp-net-application.aspx"&gt;previous posts&lt;/A&gt;, I mentioned about how to troubleshoot some issues with the use of a module. In this post, I will show you how a similar module could be of use when you want to log all the errors in a text file for troubleshooting purposes. Please ensure that C:\Temp folder has Write access for the account that is running the IIS Worker Process. Here is the code for the module... &lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;using&lt;/SPAN&gt; System;
&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;using&lt;/SPAN&gt; System.Collections.Generic;
&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;using&lt;/SPAN&gt; System.Text;
&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;using&lt;/SPAN&gt; System.Web;
&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;using&lt;/SPAN&gt; System.IO;
&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;namespace&lt;/SPAN&gt; myModules
{
    &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;class&lt;/SPAN&gt; &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Trigger&lt;/SPAN&gt;:&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;IHttpModule
&lt;/SPAN&gt;    {
        &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;public&lt;/SPAN&gt; &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;void&lt;/SPAN&gt; Init(System.Web.&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;HttpApplication&lt;/SPAN&gt; context)
        {
            context.EndRequest += &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;new&lt;/SPAN&gt; &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;EventHandler&lt;/SPAN&gt;(&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;this&lt;/SPAN&gt;.EndRoutine);
        }
        &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;public&lt;/SPAN&gt; &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;void&lt;/SPAN&gt; EndRoutine(&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;object&lt;/SPAN&gt; o, &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;EventArgs&lt;/SPAN&gt; e)
        {
            &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;HttpApplication&lt;/SPAN&gt; myApp;
            myApp = (&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;HttpApplication&lt;/SPAN&gt;)o;
            &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;HttpContext&lt;/SPAN&gt; c = myApp.Context;
            &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;if&lt;/SPAN&gt; (myApp.Context.AllErrors != &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;null&lt;/SPAN&gt;)
            {
                &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;StreamWriter&lt;/SPAN&gt; sw = &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;new&lt;/SPAN&gt; &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;StreamWriter&lt;/SPAN&gt;(&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"C:\\Temp\\ErrorList.txt"&lt;/SPAN&gt;, &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;true&lt;/SPAN&gt;);
                &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;foreach&lt;/SPAN&gt; (&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Exception&lt;/SPAN&gt; ex &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;in&lt;/SPAN&gt; myApp.Context.AllErrors)
                {
                    sw.WriteLine(&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"Error occurred at #{0}"&lt;/SPAN&gt;, &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;DateTime&lt;/SPAN&gt;.Now.ToString());
                    sw.WriteLine(&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"Error occurred in page #{0}"&lt;/SPAN&gt;, c.Request.FilePath);
                    sw.WriteLine(ex.InnerException.Message);
                    sw.WriteLine(ex.InnerException.StackTrace);
                    sw.WriteLine();
                }
                sw.Dispose();
            }
        }
        &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;public&lt;/SPAN&gt; &lt;SPAN style="COLOR: rgb(0,0,255)"&gt;void&lt;/SPAN&gt; Dispose()
        {
            &lt;SPAN style="COLOR: rgb(0,128,0)"&gt;//Nothing to Dispose as of now
&lt;/SPAN&gt;        }
    }
}&lt;/PRE&gt;&lt;PRE class=code&gt;&lt;A href="http://blogs.msdn.com/rahulso/attachment/8749269.ashx" mce_href="http://blogs.msdn.com/rahulso/attachment/8749269.ashx"&gt;&lt;IMG title=Download alt=Download src="http://blogs.msdn.com/photos/rahulso/images/8762288/original.aspx" border=0 mce_src="http://blogs.msdn.com/photos/rahulso/images/8762288/original.aspx"&gt;&lt;/A&gt;&lt;/PRE&gt;
&lt;P&gt;You can save the downloaded file to the bin folder of your web application and add the following to the web.config...&lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;        &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;httpModules&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;&amp;gt;
            &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;add&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(0,0,255)"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(255,0,0)"&gt;name&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;Trigger&lt;/SPAN&gt;"&lt;SPAN style="COLOR: rgb(0,0,255)"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(255,0,0)"&gt;type&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;myModules.Trigger, myModules&lt;/SPAN&gt;"&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;/&amp;gt;
        &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;httpModules&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(0,0,255)"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;
&lt;P&gt;&lt;BR&gt;Here is the sample output (&lt;STRONG&gt;C:\Temp\ErrorList.txt&lt;/STRONG&gt;) for one of the applications where I have used the &lt;STRONG&gt;Throw New AppDomainUnloadedException &lt;/STRONG&gt;or similar lines to create the error...&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_2.png" mce_href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_2.png"&gt;&lt;IMG height=473 alt=image src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_thumb.png" width=871 border=0 mce_src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/ASP.NETHowtowriteerrormessagesintoatextf_9202/image_thumb.png"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;IMG alt=Happy src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif" mce_src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif"&gt; &lt;BR&gt;Rahul &lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;B&gt;&lt;I&gt;Quote of the day: &lt;/I&gt;&lt;/B&gt;&lt;BR&gt;The nice thing about standards is that there are so many of them to choose from. - Andrew S. Tanenbaum&lt;/P&gt;
&lt;P&gt;Posted at &amp;gt; 6:10 PM IST&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8749269" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/rahulso/attachment/8749269.ashx" length="2201" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/rahulso/archive/tags/ASP.NET+1.x/default.aspx">ASP.NET 1.x</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/ASP.NET+2.0/default.aspx">ASP.NET 2.0</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/httpModules/default.aspx">httpModules</category></item><item><title>Logparser Scenario 9:Find out what is the peak time for your IIS Server</title><link>http://blogs.msdn.com/rahulso/archive/2008/07/16/logparser-scenario-9-find-out-what-is-the-peak-time-for-your-iis-server.aspx</link><pubDate>Wed, 16 Jul 2008 07:38:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8736838</guid><dc:creator>rahulso</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8736838.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8736838</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8736838</wfw:comment><description>&lt;p&gt;This blog entry is a continuation of the KB Article &lt;a href="http://support.microsoft.com/?id=910447"&gt;http://support.microsoft.com/?id=910447&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Scenario 9:Find out what is the peak time for your IIS Server&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;How can you find out what is the peak time (peak hour) for your Website using Logparser?&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Logparser &amp;quot;SELECT quantize(time,60), count(*) as Frequency from ex080716.log GROUP BY quantize(time,60) order by quantize(time, 60)&amp;quot; -rtp:-1&lt;/p&gt;  &lt;p&gt;Here is a brief snapshot of my LogFile...&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_2.png"&gt;&lt;img height="340" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_thumb.png" width="498" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;And here is the output...&lt;/p&gt;  &lt;p&gt;QUANTIZE(time, 60) Frequency   &lt;br /&gt;------------------ ---------    &lt;br /&gt;02:37:00&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 4    &lt;br /&gt;02:38:00&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 3    &lt;br /&gt;02:39:00&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 8    &lt;br /&gt;02:40:00&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 55    &lt;br /&gt;02:41:00&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 215    &lt;br /&gt;02:45:00&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 40    &lt;br /&gt;02:46:00&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 36 &lt;/p&gt;  &lt;p&gt;Statistics:   &lt;br /&gt;-----------    &lt;br /&gt;Elements processed: 361    &lt;br /&gt;Elements output:&amp;#160;&amp;#160;&amp;#160; 7    &lt;br /&gt;Execution time:&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0.00 seconds&lt;/p&gt;  &lt;p&gt;You may also try... &lt;/p&gt;  &lt;p&gt;Logparser &amp;quot;SELECT quantize(time,60), count(*) as Frequency INTO Image.GIF from ex.log GROUP BY quantize(time,60) order by quantize(time, 60)&amp;quot;&lt;/p&gt;  &lt;p&gt;Here is the output...&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_4.png"&gt;&lt;img height="479" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario9Findoutwhatisthepeakti_8E94/image_thumb_1.png" width="641" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This tells me that 2:41 GMT is the Peak Minute for my web-site. If you want to get the details per hour... change the query to...&lt;/p&gt;  &lt;p&gt;Logparser &amp;quot;SELECT quantize(time,3600), count(*) as Frequency INTO Image.GIF from ex.log GROUP BY quantize(time,3600) order by quantize(time, 3600)&amp;quot; &lt;/p&gt;  &lt;p&gt;As you can easily figure out, my site doesn't have too many hits after all &lt;img alt="Winking" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/3.gif" /&gt;&lt;/p&gt;  &lt;p&gt;Hope this helps... &lt;img alt="Wave" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" /&gt;    &lt;br /&gt;Rahul&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/i&gt;&lt;/b&gt;    &lt;br /&gt;People who have no weaknesses are terrible; there is no way of taking advantage of them. - Anatole France&lt;/p&gt;  &lt;p&gt;Posted at &amp;gt; 10:07 AM IST&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8736838" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Log+Parser/default.aspx">Log Parser</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>Run a batch file as a specific User (or Administrator) from ASP.NET...</title><link>http://blogs.msdn.com/rahulso/archive/2008/07/13/run-a-batch-file-as-a-specific-user-or-administrator-from-asp-net.aspx</link><pubDate>Sun, 13 Jul 2008 13:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8727749</guid><dc:creator>rahulso</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8727749.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8727749</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8727749</wfw:comment><description>&lt;p&gt;...well first of all, I am NOT recommending it, but sometimes it could be necessary! Now, let's proceed to the code...&lt;/p&gt;  &lt;p&gt;1. Create a page called RunBatchFile.vb and paste the following...&lt;/p&gt; &lt;div class="boxedoutput"&gt; &lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;Imports&lt;/span&gt; System.Diagnostics
&lt;span style="color: rgb(0,0,255)"&gt;Imports&lt;/span&gt; System.IO
&lt;span style="color: rgb(0,0,255)"&gt;Partial&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Class&lt;/span&gt; RunBatchFile
    &lt;span style="color: rgb(0,0,255)"&gt;Inherits&lt;/span&gt; System.Web.UI.Page
    &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; _password &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;New&lt;/span&gt; System.Security.SecureString
    &lt;span style="color: rgb(0,0,255)"&gt;Protected&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Sub&lt;/span&gt; Page_Load(&lt;span style="color: rgb(0,0,255)"&gt;ByVal&lt;/span&gt; sender &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Object&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;ByVal&lt;/span&gt; e &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; System.EventArgs) &lt;span style="color: rgb(0,0,255)"&gt;Handles&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Me&lt;/span&gt;.Load
        &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; password &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;String&lt;br /&gt;        'Read from any Registry or Encrypted config file if you like for added security.
&lt;/span&gt;        password = &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;YOUR___PASSWORD&amp;quot;  
&lt;/span&gt;        &lt;span style="color: rgb(0,0,255)"&gt;For&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Each&lt;/span&gt; c &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Char&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;In&lt;/span&gt; password
            _password.AppendChar(c)
        &lt;span style="color: rgb(0,0,255)"&gt;Next
&lt;/span&gt;        &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; strFilePath &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;String&lt;/span&gt; = &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;c:\\temp\\test.bat&amp;quot;
&lt;/span&gt;        &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; psiMyProcess &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; ProcessStartInfo = &lt;span style="color: rgb(0,0,255)"&gt;New&lt;/span&gt; ProcessStartInfo(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;cmd.exe&amp;quot;&lt;/span&gt;)
        psiMyProcess.LoadUserProfile = &lt;span style="color: rgb(0,0,255)"&gt;True
&lt;/span&gt;        psiMyProcess.UserName = &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;Administrator&amp;quot;
&lt;/span&gt;        psiMyProcess.Password = _password
        psiMyProcess.UseShellExecute = &lt;span style="color: rgb(0,0,255)"&gt;False
&lt;/span&gt;        psiMyProcess.CreateNoWindow = &lt;span style="color: rgb(0,0,255)"&gt;True
&lt;/span&gt;        psiMyProcess.RedirectStandardOutput = &lt;span style="color: rgb(0,0,255)"&gt;True
&lt;/span&gt;        psiMyProcess.RedirectStandardInput = &lt;span style="color: rgb(0,0,255)"&gt;True
&lt;/span&gt;        psiMyProcess.RedirectStandardError = &lt;span style="color: rgb(0,0,255)"&gt;True
&lt;/span&gt;        psiMyProcess.WorkingDirectory = &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;c:\\temp\\&amp;quot;
&lt;/span&gt;        &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; prcProcess &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; Process = Process.Start(psiMyProcess)
        &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; strm &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; StreamReader = File.OpenText(strFilePath)
        &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; strOut &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; StreamReader = prcProcess.StandardOutput
        &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; strIn &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; StreamWriter = prcProcess.StandardInput
        &lt;span style="color: rgb(0,0,255)"&gt;Do&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;While&lt;/span&gt; strm.Peek() &amp;lt;&amp;gt; -1
            strIn.WriteLine(strm.ReadLine())
        &lt;span style="color: rgb(0,0,255)"&gt;Loop
&lt;/span&gt;        strm.Close()
        strIn.WriteLine(&lt;span style="color: rgb(0,0,255)"&gt;String&lt;/span&gt;.Format(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;# {0} ran successfully. Exiting now!&amp;quot;&lt;/span&gt;, strFilePath))
        strIn.WriteLine(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;Exit&amp;quot;&lt;/span&gt;)
        prcProcess.Close()
        &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; strOutput &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;String&lt;/span&gt; = strOut.ReadToEnd().Trim()
        strIn.Close()
        strOut.Close()
        Response.Write(&lt;span style="color: rgb(0,0,255)"&gt;String&lt;/span&gt;.Format(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;&amp;lt;font face=courier size=0&amp;gt;{0}&amp;lt;/font&amp;gt;&amp;quot;&lt;/span&gt;, _
                strOutput.Replace(System.Environment.NewLine, &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;&amp;lt;br&amp;gt;&amp;quot;&lt;/span&gt;)))
    &lt;span style="color: rgb(0,0,255)"&gt;End&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Sub
End&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Class
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;2. The batch file that I have is a one liner (and a no-brainer)... [Here, &lt;strong&gt;one&lt;/strong&gt; and &lt;strong&gt;two&lt;/strong&gt; are folders containing a few files]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;xcopy one\*.* two /y&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;3. If everything is in place, you should get something like this as output...&lt;/p&gt;

&lt;p&gt;&amp;#160;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/RunabatchfileasaspecificUserorAdministr_D80C/image_5.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="151" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/RunabatchfileasaspecificUserorAdministr_D80C/image_thumb_1.png" width="473" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Hope this helps, &lt;img alt="Smile" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif" /&gt; 

  &lt;br /&gt;Rahul&lt;/p&gt;

&lt;br /&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/i&gt;&lt;/b&gt;

&lt;br /&gt;The human race has one really effective weapon, and that is laughter. - Mark Twain&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8727749" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/ASP.NET+1.x/default.aspx">ASP.NET 1.x</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/ASP.NET+2.0/default.aspx">ASP.NET 2.0</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Samples/default.aspx">Samples</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>How to use httpModules to troubleshoot your ASP.NET application</title><link>http://blogs.msdn.com/rahulso/archive/2008/07/13/how-to-use-httpmodules-to-troubleshoot-your-asp-net-application.aspx</link><pubDate>Sun, 13 Jul 2008 11:37:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8727440</guid><dc:creator>rahulso</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8727440.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8727440</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8727440</wfw:comment><description>&lt;p&gt;No matter how many things you keep in mind before developing an application, when once they are put in production... quite often you will see something not behaving the way you expected. Many-a-times, the applications would throw an error which you can troubleshoot depending on the error message you found. In this post, my intention is not to cover those &amp;quot;error&amp;quot; scenarios. I intend to cover something which is more problematic to troubleshoot... like intermittent slowness in some pages, or some errors that are coming up and you are not able to locate what's wrong with &lt;strong&gt;those bad-pages&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;What would you do in those situations??&lt;/p&gt;  &lt;p&gt;I know there is not a single correct answer to this question and it is scenario specific. Let me show you one little trick which might help you while troubleshooting your web-applications. This application (module) is no-where near completion... it just shows you how you can &lt;strong&gt;use Modules to troubleshoot the issue&lt;/strong&gt;. You can tweak the code based on your scenario and work accordingly. I will share the plain httpmodule in this post. Once I am done with this module with lots of other automated configuration stuff (like capturing all viewstate, session information, etc), I will update my blog accordingly. &lt;/p&gt;  &lt;p&gt;Let's proceed by creating a class Library (I will call it &lt;strong&gt;myModules&lt;/strong&gt;)&lt;/p&gt;  &lt;p&gt;1. Add a reference to System.Web    &lt;br /&gt;2. Copy the following in a new class file called &lt;strong&gt;&lt;font color="#ff0000"&gt;Trigger.cs&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;div class="boxedoutput"&gt;   &lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;using&lt;/span&gt; System;
&lt;span style="color: rgb(0,0,255)"&gt;using&lt;/span&gt; System.Collections.Generic;
&lt;span style="color: rgb(0,0,255)"&gt;using&lt;/span&gt; System.Text;
&lt;span style="color: rgb(0,0,255)"&gt;using&lt;/span&gt; System.Web;
&lt;span style="color: rgb(0,0,255)"&gt;namespace&lt;/span&gt; myModules
{
    &lt;span style="color: rgb(0,0,255)"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;Trigger&lt;/span&gt;:&lt;span style="color: rgb(43,145,175)"&gt;IHttpModule
&lt;/span&gt;    {
        &lt;span style="color: rgb(43,145,175)"&gt;DateTime&lt;/span&gt; fTimerValue;
        &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; Init(System.Web.&lt;span style="color: rgb(43,145,175)"&gt;HttpApplication&lt;/span&gt; context)
        {
            context.BeginRequest += &lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;EventHandler&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;this&lt;/span&gt;.BeginRoutine);
            context.EndRequest += &lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;EventHandler&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;this&lt;/span&gt;.EndRoutine);
        }
        &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; BeginRoutine(&lt;span style="color: rgb(0,0,255)"&gt;object&lt;/span&gt; o, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)
        {
            fTimerValue = &lt;span style="color: rgb(43,145,175)"&gt;DateTime&lt;/span&gt;.Now;
        }
        &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; EndRoutine(&lt;span style="color: rgb(0,0,255)"&gt;object&lt;/span&gt; o, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)
        {
            &lt;span style="color: rgb(43,145,175)"&gt;HttpApplication&lt;/span&gt; myApp;
            &lt;span style="color: rgb(43,145,175)"&gt;TimeSpan&lt;/span&gt; t = &lt;span style="color: rgb(43,145,175)"&gt;TimeSpan&lt;/span&gt;.MinValue;
            myApp = (&lt;span style="color: rgb(43,145,175)"&gt;HttpApplication&lt;/span&gt;)o;
            &lt;span style="color: rgb(43,145,175)"&gt;HttpContext&lt;/span&gt; c = myApp.Context;
            &lt;span style="color: rgb(0,0,255)"&gt;if&lt;/span&gt;(c.Response.StatusCode == 200)
            {
                t = &lt;span style="color: rgb(43,145,175)"&gt;DateTime&lt;/span&gt;.Now - fTimerValue;
                &lt;span style="color: rgb(0,0,255)"&gt;if&lt;/span&gt; (t.TotalSeconds &amp;gt; 5)
                {
                    c.Response.Write(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;Tweak this page!! It took... &amp;quot;&lt;/span&gt; + t.TotalSeconds + &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot; seconds&amp;quot;&lt;/span&gt;);
                    c.Response.Write(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;&amp;lt;BR&amp;gt;&amp;quot;&lt;/span&gt;);
                    c.Response.Write(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;Name &amp;gt; &amp;quot;&lt;/span&gt; + c.Request.PhysicalPath);
                    &lt;span style="color: rgb(0,0,255)"&gt;return&lt;/span&gt;;
                }
            }
            myApp.Context.Response.Write(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;This response took &amp;quot;&lt;/span&gt; + t.ToString() + &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot; seconds&amp;quot;&lt;/span&gt;);
        }
        &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; Dispose()
        {
            &lt;span style="color: rgb(0,128,0)"&gt;//Nothing to Dispose as of now
&lt;/span&gt;        }
    }
}&lt;/pre&gt;
&lt;/div&gt;

&lt;br /&gt;3. In your WebApplication... drop the &lt;strong&gt;myModules.dll &lt;/strong&gt;from the class library that you just created. 

&lt;br /&gt;4. Last step... modify the web.config by adding... 
&lt;P/&gt;
&lt;div class="boxedoutput"&gt;
  &lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;        &amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;httpModules&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;add&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;name&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: rgb(0,0,255)"&gt;Trigger&lt;/span&gt;&amp;quot;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;type&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: rgb(0,0,255)"&gt;myModules.Trigger, myModules&lt;/span&gt;&amp;quot;&lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;
        &amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;httpModules&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;P/&gt;
5. I tried this with an Empty project. And introduced Sleep statement in the Page_Load... 
&lt;P/&gt;
&lt;div class="boxedoutput"&gt;
  &lt;pre class="code"&gt;    &lt;span style="color: rgb(0,0,255)"&gt;protected&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; Page_Load(&lt;span style="color: rgb(0,0,255)"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)
    {
        System.Threading.&lt;span style="color: rgb(43,145,175)"&gt;Thread&lt;/span&gt;.Sleep(26000);
    }&lt;/pre&gt;
&lt;/div&gt;
6. Notice that, I haven't recompiled my web-application. Only thing that is required is... copy the DLLs in the bin folder and add httpModules section in the web.config. 

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;The output is...&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/HowtohttpModulestotrouble.NETapplication_B5A0/image_2.png"&gt;&lt;img height="77" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/HowtohttpModulestotrouble.NETapplication_B5A0/image_thumb.png" width="553" border="0" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;As I said earlier... this is a very meager output, and not enough to fix the issue. But now that you know how to use Modules to troubleshoot your application, feel free to tweak around the code and fix the issue at hand.&lt;/p&gt;

&lt;p&gt;Happy troubleshooting! &lt;img alt="Smile" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif" /&gt; 

  &lt;br /&gt;Rahul&lt;/p&gt;

&lt;br /&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/i&gt;&lt;/b&gt;

&lt;br /&gt;An idealist is one who, on noticing that a rose smells better than a cabbage, concludes that it will also make better soup. - H. L. Mencken&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8727440" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/httpModules/default.aspx">httpModules</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/asp.net/default.aspx">asp.net</category></item><item><title>Visual Studio 2008 - More control over Recent Projects list in Start Page</title><link>http://blogs.msdn.com/rahulso/archive/2008/06/17/visual-studio-8-more-control-over-recent-projects-list-in-start-page.aspx</link><pubDate>Tue, 17 Jun 2008 12:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8610387</guid><dc:creator>rahulso</dc:creator><slash:comments>16</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8610387.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8610387</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8610387</wfw:comment><description>&lt;P&gt;If you work with a lot of samples, the chances are quite likely that you will end up in a rather dirty list of &lt;STRONG&gt;Recent Projects&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;List&lt;/STRONG&gt; in Visual Studio. I'm personally quite nit-picky and I really hate it when I find something like this...&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=257 alt=image src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_6.png" width=229 border=0 mce_src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_6.png"&gt; &lt;/P&gt;
&lt;P&gt;Now... I don't know which of these &lt;STRONG&gt;Samples&lt;/STRONG&gt; should I click on (since I have two in the list!). Anyway, there are multiple reasons why you would like to remove the junk entries from this list. One way is to open the Registry and navigate to &lt;STRONG&gt;HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ProjectMRUList. &lt;/STRONG&gt;This list contains all the values you are looking for. Delete the values which you don't like and restart Visual Studio.&lt;/P&gt;
&lt;P&gt;Another way, which I think is a smarter one is to &lt;A href="http://www.dotnetscraps.com/downloads/clearrecentitems.zip" mce_href="http://www.dotnetscraps.com/downloads/clearrecentitems.zip"&gt;download this ZIP&lt;/A&gt; and do the following...&lt;/P&gt;
&lt;P&gt;1. Extract it anywhere in your machine. &lt;BR&gt;2. Open Visual Studio, click on &lt;STRONG&gt;Tools -&amp;gt; External Tools... &lt;BR&gt;&lt;/STRONG&gt;3. Click on Add button and in the Title field, write "Clear Recently Used List" &lt;BR&gt;4. In the Command Line, browse to the &amp;lt;SAVED__PATH&amp;gt;\&lt;STRONG&gt;ClearRecentItems.exe&lt;/STRONG&gt; and click on OK. &lt;BR&gt;&lt;BR&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=395 alt=image src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_5.png" width=392 border=0 mce_src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_5.png"&gt; &lt;BR&gt;4. Now, you should have this tool listed on your Tools Menu in VS 2008.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_8.png" mce_href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_8.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=183 alt=image src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_thumb_2.png" width=271 border=0 mce_src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_thumb_2.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;5. Here is the sample output...&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=212 alt=image src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_11.png" width=640 border=0 mce_src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/VisualStudio8MorecontroloverRecentProjec_D740/image_11.png"&gt; &lt;/P&gt;
&lt;P&gt;Feel free to download the code for this small utility...&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.dotnetscraps.com/samples/clearrecentitems/clearrecentitems.zip" mce_href="http://www.dotnetscraps.com/samples/clearrecentitems/clearrecentitems.zip"&gt;&lt;IMG alt=Download src="http://blogs.msdn.com/photos/rahulso/images/2296470/original.aspx" border=0 mce_src="http://blogs.msdn.com/photos/rahulso/images/2296470/original.aspx"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;IMG alt=Wave src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" mce_src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif"&gt; &lt;BR&gt;Rahul&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8610387" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Visual+Studio.NET/default.aspx">Visual Studio.NET</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>Why do I like overflow:scroll so much?</title><link>http://blogs.msdn.com/rahulso/archive/2008/06/11/why-do-i-like-overflow-scroll-so-much.aspx</link><pubDate>Wed, 11 Jun 2008 17:31:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8591406</guid><dc:creator>rahulso</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8591406.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8591406</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8591406</wfw:comment><description>&lt;p&gt;There are times when you want to incorporate a picture, a large piece of code in a limited web space... ex. a blog post which has a lot of &amp;lt;DIV&amp;gt; tags. Now, to crop or resize the picture may not be the option always. I still see a lot posts where the images are either cropped or line breaks are introduced into the code.&lt;/p&gt;  &lt;p&gt;The problem with the line break is that it increases the overhead and time spent on the blogger's part in formatting the post. Apart from that, it also creates chances of typos which would make that code snippet not compile when an end user tries it.&lt;/p&gt;  &lt;p&gt;Let's say I have a piece of code which I want to blog about (in &lt;a href="http://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!174.entry"&gt;Windows Live Writer&lt;/a&gt;)...&lt;/p&gt;  &lt;p&gt;I use &lt;a href="http://gallery.live.com/liveItemDetail.aspx?li=d8835a5e-28da-4242-82eb-e1a006b083b9&amp;amp;bt=9&amp;amp;pl=8"&gt;Paste from Visual Studio&lt;/a&gt; plugin and really love it. When I paste my code from Visual Studio using the Plugin, here is what I get...&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="background: rgb(255,238,98)"&gt;&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Page&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Language&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;C#&amp;quot;&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Import&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Namespace&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;System.Reflection&amp;quot;&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Import&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Namespace&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;System.Drawing&amp;quot;&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;html&lt;/span&gt; 'I am making this line even longer' &lt;span style="color: rgb(255,0,0)"&gt;PUBLIC&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;&amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;&amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&lt;/span&gt;&lt;span style="background: rgb(255,238,98)"&gt;&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;OutputCache&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Duration&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;72000&amp;quot;&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;VaryByParam&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;none&amp;quot;&lt;/span&gt;  &lt;span style="color: rgb(255,0,0)"&gt;Location&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;Any&amp;quot;&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;See how the 4th line overflows! Not good, right? So, what next???&lt;/p&gt;

&lt;p&gt;Noooo... please don't split that line.....&lt;/p&gt;

&lt;p&gt;Select &lt;strong&gt;View -&amp;gt; HTML Code &lt;/strong&gt;and add the DIV tag as follows around the code. &lt;/p&gt;

&lt;p&gt;&amp;lt;div style=&amp;quot;overflow: scroll&amp;quot;&amp;gt; &lt;/p&gt;

&lt;pre class="code"&gt;Your Code Or Image.&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;

&lt;p&gt;Here is the output...&lt;/p&gt;

&lt;div style="overflow: scroll"&gt;
  &lt;pre class="code"&gt;&lt;span style="background: rgb(255,238,98)"&gt;&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Page&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Language&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;C#&amp;quot;&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Import&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Namespace&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;System.Reflection&amp;quot;&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Import&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Namespace&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;System.Drawing&amp;quot;&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;html&lt;/span&gt; 'I am making this line even longer' &lt;span style="color: rgb(255,0,0)"&gt;PUBLIC&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;&amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;&amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&lt;/span&gt;&lt;span style="background: rgb(255,238,98)"&gt;&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;OutputCache&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Duration&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;72000&amp;quot;&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;VaryByParam&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;none&amp;quot;&lt;/span&gt;  &lt;span style="color: rgb(255,0,0)"&gt;Location&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&amp;quot;Any&amp;quot;&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;Hope this helps, &lt;img alt="Wave" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" /&gt; 

  &lt;br /&gt;Rahul&lt;/p&gt;

&lt;p&gt;UPDATE&amp;gt; Going forward I will be posting on &lt;a href="http://www.dotnetscraps.com"&gt;www.dotnetscraps.com&lt;/a&gt;. It will give me much more flexibility in hosting the code and do some of the other things that I have in my mind for quite some time now.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8591406" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Miscellany/default.aspx">Miscellany</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Windows+Live+Writer/default.aspx">Windows Live Writer</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>AJAXControl Toolkit issue in VS 2008</title><link>http://blogs.msdn.com/rahulso/archive/2008/05/26/ajaxcontrol-toolkit-issue-in-vs-2008.aspx</link><pubDate>Mon, 26 May 2008 10:14:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8552020</guid><dc:creator>rahulso</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8552020.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8552020</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8552020</wfw:comment><description>&lt;p&gt;When I tried opening the &lt;a href="http://www.codeplex.com/AtlasControlToolkit"&gt;AjaxControlToolkit.sln&lt;/a&gt; by double clicking on it, it was throwing the following error at me...&lt;/p&gt;  &lt;p&gt;---------------------------   &lt;br /&gt;Microsoft Visual Studio    &lt;br /&gt;---------------------------    &lt;br /&gt;The application for project 'H:\Downloads\AjaxControlToolkit\SampleWebSite' is not installed. &lt;/p&gt;  &lt;p&gt;Make sure the application for the project type () is installed.   &lt;br /&gt;---------------------------    &lt;br /&gt;OK&amp;#160;&amp;#160; Help&amp;#160;&amp;#160; &lt;br /&gt;---------------------------&lt;/p&gt;  &lt;p&gt;To get rid of it, open the SLN file directly from File -&amp;gt; Open -&amp;gt; Project/Solution. Create a backup if you like (when prompted!).&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;You may also get the following error while trying to compile the Solution...&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.&lt;/p&gt;  &lt;p&gt;This is because, you probably didn't install the AJAXControl Toolkit. Get it from &lt;a href="http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=11121"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Another error that you could encounter is...&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;error : Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.   &lt;br /&gt;Done building project &amp;quot;TemplateVSI.csproj&amp;quot; -- FAILED.&lt;/p&gt;  &lt;p&gt;Install JS Redist from &lt;a href="http://msdn.microsoft.com/en-us/vjsharp/bb188598.aspx"&gt;here&lt;/a&gt; and you should be good.&lt;/p&gt;  &lt;p&gt;Cheers, &lt;img alt="Wave" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" /&gt;    &lt;br /&gt;Rahul&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8552020" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/ASP.NET+2.0/default.aspx">ASP.NET 2.0</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/AJAX/default.aspx">AJAX</category></item><item><title>UPDATE&gt; Windows Live Writer plug-ins</title><link>http://blogs.msdn.com/rahulso/archive/2008/05/12/update-windows-live-writer-plug-ins.aspx</link><pubDate>Tue, 13 May 2008 01:50:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8497403</guid><dc:creator>rahulso</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8497403.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8497403</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8497403</wfw:comment><description>&lt;p&gt;I have found that a couple of my plug-ins, namely &lt;a href="http://blogs.msdn.com/rahulso/pages/social-bookmarking-tool-download.aspx"&gt;Social Bookmarking&lt;/a&gt; and &lt;a href="http://blogs.msdn.com/rahulso/archive/2008/02/17/smiley-plugin-2-0-for-windows-live-writer-wlw.aspx"&gt;Smiley Plugin&lt;/a&gt;&amp;#160; don’t work as expected in Windows Live Writer’s latest version. If you are encountering any issues and running Vista machine, please try running WLW as an Administrator.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/UPDATEWindowsLiveWriterplugins_FAC5/image_4.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="527" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/UPDATEWindowsLiveWriterplugins_FAC5/image_thumb_1.png" width="370" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Apparently a few things changed with WLW and I am still investigating if there is a way to make this work in a Non-Admin mode. I will keep you posted if I discover the root cause.&lt;/p&gt;  &lt;p&gt;Thanks, &lt;img alt="Wave" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" /&gt;    &lt;br /&gt;Rahul&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8497403" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Blogging+Tools/default.aspx">Blogging Tools</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Windows+Live+Writer/default.aspx">Windows Live Writer</category></item><item><title>We now have a team blog...</title><link>http://blogs.msdn.com/rahulso/archive/2008/04/22/we-now-have-a-team-blog.aspx</link><pubDate>Tue, 22 Apr 2008 05:46:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8415887</guid><dc:creator>rahulso</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8415887.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8415887</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8415887</wfw:comment><description>&lt;p&gt;...and I am pretty excited about it! In our team, we deal with a lot of issues with IIS and ASP.NET and have a plenty of folks in our team who blog individually, and do it pretty well.&lt;/p&gt;  &lt;p&gt;We will continue to have our own blogs, but going forward you will see a lot of good information about troubleshooting IIS 7 and ASP.NET from a bunch of really talented folks. Feel free to subscribe to our &lt;a title="Webtopics" href="http://blogs.msdn.com/webtopics/rss.xml"&gt;new team blog&lt;/a&gt;&amp;#160; and let me know if you would like to see some more topics that you require help on. It could be anything from simple to complex, related to IIS 7 or ASP.NET. Our focus is not only knowledge sharing, but also sharing some of the troubleshooting skills that we acquire because of handling multiple complex issues as a part of our job.&lt;/p&gt;  &lt;p&gt;Definitely, I won't have all the answers, but I am priviledged to be working with quite a lot of smart folks who do &lt;img alt="Smile" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif" /&gt;!!&lt;/p&gt;  &lt;p&gt;As an insider let me tell you that we are coming up with a lot of posts which will help you create different modules with IIS 7. Give us a lot of hits on the new blog &amp;lt;/shameless promotion of our team ends!&amp;gt;) &lt;img alt="Wink" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/wink_smile.gif" /&gt;&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Rahul&lt;/p&gt;  &lt;br /&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/i&gt;&lt;/b&gt;  &lt;br /&gt;A person who trusts no one can't be trusted. - Jerome Blattner&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8415887" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Miscellany/default.aspx">Miscellany</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Webtopics/default.aspx">Webtopics</category></item><item><title>Logparser Scenario 8:Checking the traffic/requests between a specific client and server</title><link>http://blogs.msdn.com/rahulso/archive/2008/04/15/logparser-scenario-8-checking-the-traffic-requests-between-a-specific-client-and-server.aspx</link><pubDate>Wed, 16 Apr 2008 01:08:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8398285</guid><dc:creator>rahulso</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8398285.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8398285</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8398285</wfw:comment><description>&lt;p&gt;This blog entry is a continuation of the KB Article &lt;a href="http://support.microsoft.com/?id=910447."&gt;http://support.microsoft.com/?id=910447.&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Scenario 8: Checking the traffic/requests between a specific client and server&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Why would you do it in the first place?    &lt;br /&gt;You may want to troubleshoot an authenticate issue for that specific client for the error that s/he reported to you. May be that's why!&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Logparser &amp;quot;select date, time, c-ip, cs-username, s-sitename, s-computername, s-ip, s-port, cs-method, cs-uri-stem, cs-uri-query, sc-status, sc-substatus,sc-win32-status, sc-bytes, cs-bytes, time-taken,cs-version, cs-host, cs(User-Agent), cs(Cookie), cs(Referer), s-event, s-process-type, s-user-time, s-kernel-time, s-page-faults, s-total-procs, s-active-procs, s-stopped-procs from &lt;strong&gt;&lt;font color="#ff0000"&gt;&amp;lt;FILENAME&amp;gt;&lt;/font&gt;&lt;/strong&gt; where c-ip='&lt;strong&gt;&lt;font color="#ff0000"&gt;Client-IP&lt;/font&gt;&lt;/strong&gt;'&amp;quot; -i:IISW3C -rtp:-1&lt;/p&gt;  &lt;p&gt;And the output will be something like...&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario8Checkingthetrafficrequ_F106/image_4.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="74" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/LogparserScenario8Checkingthetrafficrequ_F106/image_thumb_1.png" width="640" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Hope that helps,    &lt;br /&gt;Rahul&lt;/p&gt;  &lt;br /&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/i&gt;&lt;/b&gt;  &lt;br /&gt;It may be true that the law cannot make a man love me, but it can stop him from lynching me, and I think that's pretty important. - Martin Luther King Jr.&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8398285" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Miscellany/default.aspx">Miscellany</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Log+Parser/default.aspx">Log Parser</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Case+Study/default.aspx">Case Study</category></item><item><title>The case of changing Time Zones in my Windows Mobile</title><link>http://blogs.msdn.com/rahulso/archive/2008/04/14/the-case-of-changing-time-zones-in-my-windows-mobile.aspx</link><pubDate>Mon, 14 Apr 2008 13:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8391673</guid><dc:creator>rahulso</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8391673.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8391673</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8391673</wfw:comment><description>&lt;p&gt;I joined the Windows Mobile bandwagon pretty late and still getting used to it. No doubt, it is awesome, but it does come with its own set of frills. I realized it when my time zone (Start-&amp;gt;Settings-&amp;gt;System, Clock &amp;amp; Alarms) always went back to GMT+1 Prague, Budapest. I used to change it often and reset my time, but pretty soon it started frustrating me and I was thinking to go back to the service center to get this fixed.&lt;/p&gt;  &lt;p&gt;Thankfully, the troubleshooter in me woke up &lt;img alt="Wink" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/wink_smile.gif" /&gt; and I decided to check if this is an issue just with my device or the OS. Pretty soon, I came to know from one of my colleagues, that not only he suffered from the same problem... he also found a fix for it.&lt;/p&gt;  &lt;p&gt;Start -&amp;gt; Settings -&amp;gt; Personal Tab&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Phone -&amp;gt; Time Zone -&amp;gt; Automatic Change time zone and clock.&lt;/strong&gt; Uncheck this checkbox and the problem should go away.&lt;/p&gt;  &lt;p&gt;Now, a bit of rant...&lt;/p&gt;  &lt;p&gt;Windows Mobile is great, but as a newbie, I just don't get this behavior. Why the heck would this be a feature (or is this a bug)?? Changing the time zone sounds fine if I am travelling, but how does it make sense if I am located at Bangalore, have already set my time zone, and next morning I appear in &lt;strong&gt;Prague, &lt;/strong&gt;without a ticket !!! Well, technology can sure take us places, I guess &lt;img alt="Smile" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/regular_smile.gif" /&gt;.&lt;/p&gt;  &lt;p&gt;&amp;lt;Rant ends!&amp;gt;&lt;/p&gt;  &lt;p&gt;Until next time &lt;img alt="Wave" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif" /&gt;    &lt;br /&gt;Rahul&lt;/p&gt;  &lt;br /&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/i&gt;&lt;/b&gt;  &lt;br /&gt;We learn something every day, and lots of times it's that what we learned the day before was wrong. - Bill Vaughan&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8391673" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Miscellany/default.aspx">Miscellany</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Personal/default.aspx">Personal</category></item><item><title>Why am I unable to search for the folder which I know is present (in Vista)?</title><link>http://blogs.msdn.com/rahulso/archive/2008/03/13/why-am-i-unable-to-search-for-the-folder-which-i-know-is-present-in-vista.aspx</link><pubDate>Thu, 13 Mar 2008 19:27:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8181705</guid><dc:creator>rahulso</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8181705.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8181705</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8181705</wfw:comment><description>&lt;p&gt;Or... what exactly is this "Compatibility Files" folder icon doing in my Windows Explorer??&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/WhyamIunabletosearchforthefolderwhichIkn_A0F5/image_4.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="104" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/WhyamIunabletosearchforthefolderwhichIkn_A0F5/image_thumb_1.png" width="519" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&lt;a title="http://windowsconnected.com/blogs/jerry/archive/2005/12/19/86.aspx" href="http://windowsconnected.com/blogs/jerry/archive/2005/12/19/86.aspx"&gt;Jerry's Blog&lt;/a&gt; explains this stuff beautifully!&lt;/p&gt; &lt;p&gt;So, why am I blogging about this? &lt;/p&gt; &lt;p&gt;Well... to cut the long story short, I have lost almost 3 hours yesterday searching for some files/folders to fix an issue with one of my software which had a corrupted cache folder. The support professionals asked me to delete some specific folder along with a couple of files, and I was not able to find them... no matter how much I searched. In the end, when I clicked on Compatibility Files, I found that the address bar changed as follows... and the files were right there! Honestly, it felt as if those files were giving that mocking smile at me &lt;img alt="Embarrassed" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/red_smile.gif"&gt;!!&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/WhyamIunabletosearchforthefolderwhichIkn_A0F5/image_6.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="75" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/WhyamIunabletosearchforthefolderwhichIkn_A0F5/image_thumb_2.png" width="593" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Thought you should know...&lt;/p&gt; &lt;p&gt;Until next time &lt;img alt="Wave" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif"&gt;&lt;br&gt;Rahul&lt;/p&gt;&lt;br&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/b&gt;&lt;/i&gt;&lt;br&gt;First secure an independent income, then practice virtue. - Greek Proverb&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8181705" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Miscellany/default.aspx">Miscellany</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Vista/default.aspx">Vista</category></item><item><title>MSIL Trivia - 4 (Spot the difference)</title><link>http://blogs.msdn.com/rahulso/archive/2008/03/12/msil-trivia-4-spot-the-difference.aspx</link><pubDate>Wed, 12 Mar 2008 08:37:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8166140</guid><dc:creator>rahulso</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/8166140.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=8166140</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=8166140</wfw:comment><description>&lt;p&gt;I have created a very simple C# console application which gives me the following MSIL code when compiled... The next screenshot has almost the same code but with some special difference. Can you tell me what could have caused it and is it good or bad? &lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/MSILTriviaSpotthedifference_9374/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="520" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/MSILTriviaSpotthedifference_9374/image_thumb.png" width="695" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/MSILTriviaSpotthedifference_9374/image_6.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="521" alt="image" src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/MSILTriviaSpotthedifference_9374/image_thumb_2.png" width="707" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;I will answer this in the comments (or next post as necessary) &lt;img alt="Happy" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif"&gt;.&lt;/p&gt; &lt;p&gt;Until then... &lt;img alt="Wave" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif"&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Cheers,&lt;br&gt;Rahul&lt;/p&gt;&lt;br&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/b&gt;&lt;/i&gt;&lt;br&gt;I'm a great believer in luck, and I find the harder I work the more I have of it. - Thomas Jefferson&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8166140" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Visual+C_2300_/default.aspx">Visual C#</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/MSIL/default.aspx">MSIL</category></item><item><title>A sample to help in other samples related DataSource</title><link>http://blogs.msdn.com/rahulso/archive/2008/03/01/a-sample-to-help-in-other-samples-related-datasource.aspx</link><pubDate>Sat, 01 Mar 2008 03:28:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7967177</guid><dc:creator>rahulso</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/rahulso/comments/7967177.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rahulso/commentrss.aspx?PostID=7967177</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rahulso/rsscomments.aspx?PostID=7967177</wfw:comment><description>&lt;p&gt;There are quite a few times, when I get an issue related with a specific DataControl and I want to bind it to a datasource. All geared up and with full enthusiasm, I start dealing with the issue... and DARN... I find that I did something awfully bad with my SQL Server during my last case!! So now, instead of fixing my &lt;strong&gt;core&lt;/strong&gt; issue, I end up fixing my SQL Server. Since we don't really like digressing from the main issue I am posting this entry on my blog so that I could keep it handy and instead of fixing the SQL server, I can concentrate on fixing the root cause of the issue. By the way, SQL server rocks... more often than not, it is my bad that I end up doing something silly against it &lt;img alt="Happy" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif"&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;u&gt;SamplePage1.aspx in C#&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="background: rgb(255,238,98)"&gt;&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Page&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Language&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="C#"&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Import&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Namespace&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="System.Data"&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;
&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;html&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;PUBLIC&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;"-//W3C//DTD XHTML 1.0 Transitional//EN"&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;script&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&amp;gt;
&lt;/span&gt;    &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;SampleDataSource
&lt;/span&gt;    {
        &lt;span style="color: rgb(43,145,175)"&gt;DataTable&lt;/span&gt; dt;
        &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; SampleDataSource()
        {
            dt = &lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;DataTable&lt;/span&gt;();
            dt.Columns.Add(&lt;span style="color: rgb(163,21,21)"&gt;"ID"&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;typeof&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;int&lt;/span&gt;));
            dt.Columns.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Name"&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;typeof&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;string&lt;/span&gt;));
            dt.Columns.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Description"&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;typeof&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;string&lt;/span&gt;));
            dt.Columns.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Address"&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;typeof&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;string&lt;/span&gt;));
            &lt;span style="color: rgb(0,0,255)"&gt;for&lt;/span&gt; (&lt;span style="color: rgb(0,0,255)"&gt;int&lt;/span&gt; i = 0; i &amp;lt; 10; i++)
            {
                &lt;span style="color: rgb(43,145,175)"&gt;DataRow&lt;/span&gt; dr;
                dr = dt.NewRow();
                dr[&lt;span style="color: rgb(163,21,21)"&gt;"ID"&lt;/span&gt;] = i;
                dr[&lt;span style="color: rgb(163,21,21)"&gt;"Name"&lt;/span&gt;] = &lt;span style="color: rgb(163,21,21)"&gt;"Some Name "&lt;/span&gt; + i.ToString();
                dr[&lt;span style="color: rgb(163,21,21)"&gt;"Description"&lt;/span&gt;] = &lt;span style="color: rgb(163,21,21)"&gt;"Some Description "&lt;/span&gt; + i.ToString();
                dr[&lt;span style="color: rgb(163,21,21)"&gt;"Address"&lt;/span&gt;] = &lt;span style="color: rgb(163,21,21)"&gt;"Some Address "&lt;/span&gt; + i.ToString();
                dt.Rows.Add(dr);
            }
        }
        &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;DataTable&lt;/span&gt; DataSource
        {
            &lt;span style="color: rgb(0,0,255)"&gt;get
&lt;/span&gt;            {
                &lt;span style="color: rgb(0,0,255)"&gt;return&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;this&lt;/span&gt;.dt;
            }
        }
    }
    &lt;span style="color: rgb(0,0,255)"&gt;protected&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; Populate_Click(&lt;span style="color: rgb(0,0,255)"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)
    {
        &lt;span style="color: rgb(43,145,175)"&gt;SampleDataSource&lt;/span&gt; s = &lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;SampleDataSource&lt;/span&gt;();
        GridView1.DataSource = s.DataSource;
        GridView1.DataBind();
    }
&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;script&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;html&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;xmlns&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;head&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&amp;gt;
&lt;/span&gt;    &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;title&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;/span&gt;Untitled Page&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;title&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;head&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&lt;/span&gt;    &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;form&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;id&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="form1"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&amp;gt;
&lt;/span&gt;    &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&lt;/span&gt;        &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GridView&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;ID&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="GridView1" &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Width&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="50%" &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&amp;gt;
&lt;/span&gt;        &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GridView&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&lt;/span&gt;        &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Button&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;ID&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="Populate"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Text&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="Populate"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;onclick&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="Populate_Click"&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;
&lt;/span&gt;    &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&lt;/span&gt;    &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;form&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;html&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;strong&gt;&lt;u&gt;SamplePage2.aspx in VB.NET&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background: rgb(255,238,98)"&gt;&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Page&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Language&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="VB"&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;&lt;br&gt;&amp;lt;%&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;@&lt;/span&gt; &lt;span style="color: rgb(163,21,21)"&gt;Import&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Namespace&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="System.Data"&lt;/span&gt; &lt;span style="background: rgb(255,238,98)"&gt;%&amp;gt;&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&lt;/span&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;DOCTYPE&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;html&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;PUBLIC&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;"-//W3C//DTD XHTML 1.0 Transitional//EN"&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;script&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Class&lt;/span&gt; SampleDataSource&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; dt &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; DataTable&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Sub&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;New&lt;/span&gt;()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; i &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Integer&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt = &lt;span style="color: rgb(0,0,255)"&gt;New&lt;/span&gt; DataTable&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; dt.Columns.Add(&lt;span style="color: rgb(163,21,21)"&gt;"ID"&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;GetType&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;Integer&lt;/span&gt;))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Columns.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Name"&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;GetType&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;String&lt;/span&gt;))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Columns.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Description"&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;GetType&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;String&lt;/span&gt;))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Columns.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Address"&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;GetType&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;String&lt;/span&gt;))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;For&lt;/span&gt; i = 0 &lt;span style="color: rgb(0,0,255)"&gt;To&lt;/span&gt; 10&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; dr &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; DataRow&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dr = dt.NewRow&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dr(&lt;span style="color: rgb(163,21,21)"&gt;"ID"&lt;/span&gt;) = i&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dr(&lt;span style="color: rgb(163,21,21)"&gt;"Name"&lt;/span&gt;) = &lt;span style="color: rgb(163,21,21)"&gt;"Some Name "&lt;/span&gt; + i.ToString()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dr(&lt;span style="color: rgb(163,21,21)"&gt;"Description"&lt;/span&gt;) = &lt;span style="color: rgb(163,21,21)"&gt;"Some Description "&lt;/span&gt; + i.ToString()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dr(&lt;span style="color: rgb(163,21,21)"&gt;"Address"&lt;/span&gt;) = &lt;span style="color: rgb(163,21,21)"&gt;"Some Address "&lt;/span&gt; + i.ToString()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(dr)&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;span style="color: rgb(0,0,255)"&gt;Next&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;End&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Sub&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;ReadOnly&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Property&lt;/span&gt; DS() &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; DataTable&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;span style="color: rgb(0,0,255)"&gt;Get&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Return&lt;/span&gt; dt&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;span style="color: rgb(0,0,255)"&gt;End&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Get&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;End&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Property&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;End&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Class&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Protected&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Sub&lt;/span&gt; btnPopulate_Click(&lt;span style="color: rgb(0,0,255)"&gt;ByVal&lt;/span&gt; sender &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Object&lt;/span&gt;, &lt;span style="color: rgb(0,0,255)"&gt;ByVal&lt;/span&gt; e &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; System.EventArgs)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;Dim&lt;/span&gt; sd &lt;span style="color: rgb(0,0,255)"&gt;As&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;New&lt;/span&gt; SampleDataSource()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dgSample.DataSource = sd.DS&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dgSample.DataBind()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;End&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;Sub&lt;br&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;script&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;html&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;xmlns&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;head&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;id&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="Head1"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;title&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;/span&gt;Untitled Page&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;title&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;head&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;form&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;id&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="form1"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GridView&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;ID&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="dgSample"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;width&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="50%"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GridView&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Button&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;ID&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="btnPopulate"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;Text&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="Populate"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="server"&lt;/span&gt; &lt;span style="color: rgb(255,0,0)"&gt;onclick&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="btnPopulate_Click"&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;form&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;body&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;html&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;I know this might not be helpful to most of you at all since this code doesn't do much by itself. I have certain samples to do, and may be in future, this post will help me and some of my folks here while troubleshooting! &lt;/p&gt;
&lt;p&gt;Until next time &lt;img alt="Wave" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif"&gt;&lt;br&gt;Rahul&lt;/p&gt;&lt;br&gt;&lt;b&gt;&lt;i&gt;Quote of the day: &lt;/b&gt;&lt;/i&gt;&lt;br&gt;Every hero becomes a bore at last. - Ralph Waldo Emerson&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7967177" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rahulso/archive/tags/Miscellany/default.aspx">Miscellany</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Samples/default.aspx">Samples</category><category domain="http://blogs.msdn.com/rahulso/archive/tags/Personal/default.aspx">Personal</category></item></channel></rss>