<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>An ASP.NET  Blog</title>
    <link rel="self" type="application/xml" href="http://geekswithblogs.net/ranganh/Atom.aspx" />
    <subtitle type="html">I work for Microsoft and help people and businesses make better use of technolgy to realize their full potential. The opinions mentioned herein are solely mine and do not reflect those of my employer.</subtitle>
    <id>http://geekswithblogs.net/ranganh/Default.aspx</id>
    <author>
        <name>Harish Ranganathan</name>
        <uri>http://geekswithblogs.net/ranganh/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2008-08-24T21:59:46Z</updated>
    <entry>
        <title>Unable to create the Web site - To access local IIS Websites... Error</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/08/24/unable-to-create-the-web-site---to-access-local.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/08/24/unable-to-create-the-web-site---to-access-local.aspx</id>
        <published>2008-08-24T21:59:46-12:00:00</published>
        <updated>2008-08-24T21:59:46Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;If you have received the error "Unable to create the Website...To access local IIS Websites, you must run Visual Studio in the context of an administrator account.", you must be running Windows Vista and trying to create a website in the local IIS.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;I have been encountering this error often although it is well documented (hard to find?)  And time and again, I realize that I need to run Visual Studio under the admin priveleges by elevating it, to create website in the IIS. Hence thought of posting this.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;In Windows Vista, by default the applications dont run under the admin priveleges even though you are logged in as an administrator.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;To elevate the priveleges, you would require to find Visual Studio from the Start - All Programs - Menu, Right click on the Visual Studio icon and select "Run as administrator", Click "Continue" for the UAC prompt and thereafter you would be able to create websites in the local IIS.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Alternatively, you could also use the built-in cassini webserver to create/host the application in any folder and run it against the ASP.NET Development Server (notice the tiny icon that gets created in your systray) that gets created automatically for running/testing on local machines.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#000080"&gt;&lt;font face="Tahoma"&gt;A nice shortcut has been posted by one of our MVPs at &lt;/font&gt;&lt;a href="http://forums.msdn.microsoft.com/en-US/vsx/thread/501bb098-ccf0-4d6d-933d-dcde58d233e1/"&gt;&lt;font face="Tahoma"&gt;http://forums.msdn.microsoft.com/en-US/vsx/thread/501bb098-ccf0-4d6d-933d-dcde58d233e1/&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma"&gt;  which can be useful to avoid the above steps, everytime.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/124663.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/124663.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/124663.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/124663.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Installing Visual Studio 2008 SP1 RTM and removing the SP1 Beta</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/08/14/installing-visual-studio-2008-sp1-rtm-and-removing-the-sp1.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/08/14/installing-visual-studio-2008-sp1-rtm-and-removing-the-sp1.aspx</id>
        <published>2008-08-14T00:55:19-12:00:00</published>
        <updated>2008-08-14T00:55:19Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;The much awaited Visual Studio 2008 SP1 and the .NET Framework 3.5 SP1 is now RTM !!  While we have talked about the .NET 3.5 SP1 features for a long time now, the RTM release marks something special for Web Developers.  You would be able to build and deploy real world applications and use some of the cool features like Dynamic Data.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Before installing Visual Studio 2008 SP1, it is recommended to run the Visual Studio 2008 Service Pack Preparation Tool.  The tool can be downloaded from &lt;/font&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A494B0E0-EB07-4FF1-A21C-A4663E456D9D&amp;amp;displaylang=en"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;  This tool removes any earlier versions of the SP1 Beta and also prepares your system for installing the SP1.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;What do I get installing this? Well, a whole bunch of stuff considering that this is just a Service Pack. Instead of me listing it down, there is a cool post by the Web Development Tools team that lists them over &lt;/font&gt;&lt;a href="http://blogs.msdn.com/webdevtools/archive/2008/08/11/web-development-updates-in-visual-studio-2008-sp1.aspx"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;The Web Development Tools blog is one of the most important resources you need to follow.  You can subscribe for the same at &lt;/font&gt;&lt;a href="http://blogs.msdn.com/webdevtools/"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://blogs.msdn.com/webdevtools/&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Also, there is a new blog that is put up for Web Development Tips &amp;amp; Tricks.  Check it out at &lt;/font&gt;&lt;a href="http://blogs.msdn.com/webdevelopertips/"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://blogs.msdn.com/webdevelopertips/&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/124436.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/124436.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/124436.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/124436.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Winodws Vista - which one to buy? - compare editions</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/08/01/winodws-vista---which-one-to-buy---compare-editions.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/08/01/winodws-vista---which-one-to-buy---compare-editions.aspx</id>
        <published>2008-08-01T07:05:33-12:00:00</published>
        <updated>2008-08-01T07:05:33Z</updated>
        <content type="html">&lt;p&gt;&lt;font color="#000080"&gt;&lt;font face="Tahoma" size="2"&gt;If you are like me and wanted a comparison on which edition of Windows Vista to buy, you could just visit the following Microsoft.com site &lt;/font&gt;&lt;a href="http://www.microsoft.com/windows/windows-vista/compare-editions/default.aspx"&gt;&lt;font face="Tahoma" size="2"&gt;http://www.microsoft.com/windows/windows-vista/compare-editions/default.aspx&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" size="2"&gt; to get the best idea of the features you would like to have and decide accordingly.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Most of the editions today come with SP1. So, many of the compatibility issues with a lot of third party solutions have been fixed now.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;The Windows Vista Ultimate, needless to say, is the best you could think of and if you are targetting Media Center, Collaboration etc., this is the one you should be going for.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Thought of posting this link since it took sometime for me to figure out even from the windows vista official website, this particular reference.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/124189.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/124189.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/124189.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/124189.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Missing Dynamic Data Templates - VS 2008 SP1 and .NET 3.5 SP1</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/07/29/missing-dynamic-data-templates---vs-2008-sp1-and-.net.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/07/29/missing-dynamic-data-templates---vs-2008-sp1-and-.net.aspx</id>
        <published>2008-07-29T12:56:26-12:00:00</published>
        <updated>2008-07-30T10:37:23Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;In case you have installed the .NET 3.5 SP1 and Visual Studio 2008 SP1 and are unable to find the Dynamic Data Website Template, you can install the latest version of the runtime from &lt;/font&gt;&lt;a href="http://www.codeplex.com/aspnet/Wiki/View.aspx?title=Dynamic%20Data&amp;amp;referringTitle=Home"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://www.codeplex.com/aspnet/Wiki/View.aspx?title=Dynamic%20Data&amp;amp;referringTitle=Home&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;To explain it further, I had the December 2007 CTP installed which contained the Dynamic Data Runtime and Astoria, Entity Framework etc.,  All of these gets bundled into the .NET 3.5 SP1 Beta and you dont need the December 2007 CTP any longer.  So I went ahead and uninstalled the December 2007 CTP.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Post the uninstallation, I was unable to find the "Dynamic Data Website" Template.  After some research I found that instead of fixing the issue by installing/uninstalling SP1 Bits again, it was better to install the latest bits of the Dynamic Data Runtime from CodePlex.  The other advantage is that, you also get the "Dynamic Data Website Wizard (Preview)" that allows you to configure a data driven website very quickly, by following the wizard steps.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;I would experiment with these bits and post my experience in my further posts.  Till then, happy exploring.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/124111.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/124111.aspx</wfw:comment>
        <slash:comments>4</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/124111.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/124111.aspx</trackback:ping>
    </entry>
    <entry>
        <title>DLR Hosting</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/07/24/dlr-hosting.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/07/24/dlr-hosting.aspx</id>
        <published>2008-07-24T10:46:16-12:00:00</published>
        <updated>2008-07-24T10:52:37Z</updated>
        <content type="html">&lt;p&gt;Was talking to a DLR Team member and stumbled upon his blog which interestingly focuses on DLR Hosting and how you can start writing a host for DLR.  Here below is the link to his blog.&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;a href="http://blogs.msdn.com/seshadripv/"&gt;http://blogs.msdn.com/seshadripv/&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;If you are new to DLR, is it the Dynamic Language Runtime that would be a layer on top of CLR for creating and running Iron Python and Iron Ruby (currently limited, but extending to other languages in future) on .NET.&lt;/p&gt;
&lt;p&gt;DLR would also be supported in Silverlight 2, currently in Beta which means you can program using Iron Python or Iron Ruby and create a Silverlight Plugin for your Web. If you want to play with the bits, you can download the same from &lt;a href="http://www.codeplex.com/sdlsdk"&gt;http://www.codeplex.com/sdlsdk&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Cheers !!!&lt;/p&gt;
&lt;p&gt;p.s. A quick and dirty way of restarting my blog posting.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/124006.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/124006.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/124006.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/124006.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Control does not implement IPageableItemContainer Error</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/06/04/control-does-not-implement-ipageableitemcontainer-error.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/06/04/control-does-not-implement-ipageableitemcontainer-error.aspx</id>
        <published>2008-06-04T19:48:29-12:00:00</published>
        <updated>2008-06-04T21:12:39Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;You may run into this error when trying to use the new DataPager control with a GridView or any other control, other than the ListView control.  For a moment I couldn't believe that the DataPager cannot work with the GridView control.  Then after a few moments of research found out that, the Data Pager control requires the Data Control to implement the "&lt;strong&gt;IPageableItemContainer&lt;/strong&gt;" interface. This is a part of the System.Web.Extensions namespace that is shipped with .NET 3.5.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;This interface is currently implemented only by the List View control.  If you arent aware, ListView and Datapager are the new server controls in ASP.NET 3.5.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;So, the solution is to use the Data pager control in combination with a List View control.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;To read more about the "IPageableItemContainer" interface, check &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.ipageableitemcontainer.aspx"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.ipageableitemcontainer.aspx&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;&lt;u&gt;Using the Data Pager control with List View&lt;/u&gt; &lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;The List View control is new in ASP.NET 3.5.  It allows you to customize the output that is rendered by the data control.  Traditionally a DataGrid / Grid View control renders HTML Tables which can be a little heavy over the internet.  The List View allows you to define the Layout Templte and Item Template and optional Alternating Layout Template, Empty Data Template etc.,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Configuring the ListView Control&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;1. Start Visual Studio 2008 and select "File - New Website".&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;2. Chose ".NET Framework 3.5" in the dropdown on the top right of the "New Website" dialog and click "Ok"&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;3. It creates your Website and a Default.aspx is created.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;4. Open the Default.aspx page and from the ToolBox, drag and drop a ListView control in the design view (&lt;em&gt;The ListView control is under the "Data" section in the ToolBox. If you dont find it, make sure you selected the ".NET Framework 3.5" as the version as mentioned in Point 2 above. Since this control is new in ASP.NET 3.5, it wont be available if you had selected ".NET Framework 2.0" or .NET Framework 3.0" in the "New Website" Dialog.&lt;/em&gt;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;5. In the Design View, click the smart tag that appears next to the ListView control and select "DataSource" and chose "New DataSource" and then chose "Database" as Data Source Type&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;6. You can provide an ID under the "Specify an ID for the data source" textbox or leave the default one. Click Ok&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;7. In the "Chose your Data Connection" dialog, chose an existing connection or you could also create a "New Connection" by providing the necessary paramters, test the connection and click "Next"&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;8. Click "Next" and make sure you selected "Yes" under "Do you want to save the connection....." so that the connection string gets saved in the web.config file.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;9. In the next screen you can chose an existing table or create a SQL procedure and do all the conditions / filtering that you want to apply.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;10. Click "Finish" in the next screen to complete the Data binding process.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;11. At this point if you try running the site, you would get an error contrary to the case with a DataGrid or a GridView since, both these controls just require the steps upto 10 above to start rendering the Data.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;12. However, for the Listview, control we need to define the ItemTemplate and LayOutTemplate. We can either define them manually or use the Visual Studio desinger to do that.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;13. Go back to the ListView in the Design Mode and click on the smart tag and click on "Configure ListView"&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;14. In the "Configure ListView" dialog, you can select a LayOut as well as Style. While the default is Grid, chose a Bulleted List or Flow Layout so that it can render lighter HTML accordingly.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;15. Later you can switch back the Layout by again configuring the ListView.  You can also manually define the Item Template and the LayOut Template.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Configuring the DataPager Control&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;1. Once you are done with the ListView control, you can either chose "Enable Paging" and select "Next/Previous" or "Numeric".  When you select this, it automatically generates the DataPager control with the following settings:-&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;&lt;strong&gt;  &amp;lt;asp:DataPager ID="DataPager1" runat="server"&amp;gt;&lt;br /&gt;
                        &amp;lt;Fields&amp;gt;&lt;br /&gt;
                           &amp;lt;asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" &lt;br /&gt;
                                ShowLastPageButton="True" /&amp;gt;&lt;br /&gt;
                        &amp;lt;/Fields&amp;gt;&lt;br /&gt;
                    &amp;lt;/asp:DataPager&amp;gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;2. Since this is automatically placed within the "LayOut Template" of the ListView it automatically provides pagination for the ListView control.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;3. You can also control the attributes of the DataPager such as PagedControlID, PageSize to manually control these settings.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;4. The PagedControlID in the above case is automatically perceived as the "ListView1" within which the DataPager is placed.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;5. The DataPager control can also be manually defined outside the scope of ListView1 and in that case, you need to manually set the "PagedControlID" to "ListView1" or whatever ID that is provided for the ListView control.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;6. The PageSize is automatically set to 10 and you can manually override the same by providing the pagesize property.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;7. The Fields need to be manually defined when the DataPager is manually added and configured to be used with the ListView control.  There are 3 options, the "NextPreviousPagerField" or "NumericPagerField" or "TemplatePagerField".  In case of "TemplatePagerField" you need to manually define the templates similar to custom paging.  In fact it is custom paging implementation.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Once you have configured the above and when you run the page, the ListView appears with the DataPager control as configured and as you check the source, you would be able to notice that since we selected "Bullted List" an &amp;lt;li&amp;gt; markup is generated instead of HTML tables, tds etc.,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;The ListView is one control that allows a great amount of customization of the output. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://weblogs.asp.net/scottgu"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Scott Guthrie&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; has written an &lt;/font&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2007/08/10/the-asp-listview-control-part-1-building-a-product-listing-page-with-clean-css-ui.aspx"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;excellent post on using the Listview to build a Product Listing page&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; with screen shots which provides a great resource on using the List View and various customizations. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/122634.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/122634.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/122634.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/122634.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Web Development Helper Utility</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/06/04/web-development-helper-utility.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/06/04/web-development-helper-utility.aspx</id>
        <published>2008-06-04T01:18:36-12:00:00</published>
        <updated>2008-06-04T01:18:36Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Some of you who attended my recent Innovation Days and MSDN Sessions have asked for the URL for the Web Development Helper utility that I used during my demos.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Shamelessly, I am posting the link for download (shame, since it is not something I wrote and rather used an existing tool).&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Well, you can download the same from &lt;/font&gt;&lt;a href="http://projects.nikhilk.net/WebDevHelper/Default.aspx"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://projects.nikhilk.net/WebDevHelper/Default.aspx&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;The main site is &lt;/font&gt;&lt;a href="http://www.nikhilk.net/"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://www.nikhilk.net/&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; and you can find tons of useful information in this site.  Nikhil is the Principal Architect in the US Developer Division and one whom we all admire for this sheer brilliance.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;A good way to restart my blog postings isnt it &lt;img alt="" src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/regular_smile.gif" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/122610.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/122610.aspx</wfw:comment>
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/122610.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/122610.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Web Control Library Template in Visual Studio 2008</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/04/02/web-control-library-template-in-visual-studio-2008.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/04/02/web-control-library-template-in-visual-studio-2008.aspx</id>
        <published>2008-04-02T20:29:35-12:00:00</published>
        <updated>2008-04-02T20:55:52Z</updated>
        <content type="html">&lt;p&gt;&lt;a href="http://msdn.microsoft.com/vstudio"&gt;&lt;img id="BLOGGER_PHOTO_ID_5184932744423800978" style="CURSOR: hand" alt="" border="0" src="http://bp2.blogger.com/_jwxHEVSBnTk/R_SU3C-sAJI/AAAAAAAAAZk/fkccb4EQgzY/s320/web-control-library.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;If you are working with Visual Studio 2008, you might be looking for the Web Control Library template that used to be quite apparent in Visual Studio .NET 2003 and kind of hidden under "&lt;strong&gt;File - New - Project - Windows - Web Control Library"&lt;/strong&gt; in Visual Studio 2005.  Check my earlier post on this &lt;/font&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2006/09/06/90370.aspx"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://geekswithblogs.net/ranganh/archive/2006/09/06/90370.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Well, in Visual Studio 2008, this option is under "&lt;strong&gt;File - New - Project - Web - ASP.NET Server Control&lt;/strong&gt;".  Yeah that is the place you you would find the template to create a Web Control Library.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Thought this was again tricky to figure out and would help if I post the details over here.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/120982.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/120982.aspx</wfw:comment>
        <slash:comments>5</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/120982.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/120982.aspx</trackback:ping>
    </entry>
    <entry>
        <title>File Upload in UpdatePanel, ASP.NET AJAX</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/04/01/file-upload-in-updatepanel-asp.net-ajax.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/04/01/file-upload-in-updatepanel-asp.net-ajax.aspx</id>
        <published>2008-04-01T23:03:08-12:00:00</published>
        <updated>2008-04-01T23:22:55Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#003366"&gt;One of the common queries I get across my sessions is that, the File Upload control doesnt work inside an Update panel.  All of us would like to implement a Gmail File Upload kind of interface and when you try to implement a similar thing using UpdatePanel (which works like a charm for other activities), it simply doesn't work.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366"&gt;The behaviour is expected.  The File Upload Control doesnt work inside an Update Panel due to security reasons and restrictions a browser implies.  They dont allow Javascript files to directly access the files in an user's sytem and dont allow to modify or access the details of a file when working with the File Upload Control.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366"&gt;There are a couple of ways to solve this issue, one using Update Panel and Post Back Triggers and the other using Iframes.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font face="Tahoma" color="#003366"&gt;1. Use Update Panel, File Upload Control and use a PostBackTrigger Control to force a postback only for the File Upload Control&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma"&gt;&lt;font color="#003366"&gt;This approach works well without much tweaking except for that, there would be a postback only for the File Upload Control.  While the rest of the stuff happens asynchronously, using the UpdatePanel, when the user presses the "Upload" Button, the page will be refreshed.  Let us examine how we can accomplish this.  Place the following code within the &amp;lt;form&amp;gt; &amp;lt;/form&amp;gt; tags in your ASP.NET Page.&lt;/font&gt;  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="4"&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font face="Tahoma"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;ScriptManager&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;="ScriptManager1"&lt;/font&gt; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font face="Tahoma" size="2"&gt;="server"&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font face="Tahoma"&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;ScriptManager&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font face="Tahoma" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Tahoma"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;UpdatePanel&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;="UpdatePanel1"&lt;/font&gt; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font face="Tahoma" size="2"&gt;="server"&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Tahoma"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font face="Tahoma" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;TextBox&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;="TextBox1"&lt;/font&gt; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;="server"&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;br&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;Button&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;="Button1"&lt;/font&gt; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;="server"&lt;/font&gt; &lt;font color="#ff0000"&gt;Height&lt;/font&gt;&lt;font color="#0000ff"&gt;="20px"&lt;/font&gt; &lt;font color="#ff0000"&gt;onclick&lt;/font&gt;&lt;font color="#0000ff"&gt;="Button1_Click"&lt;/font&gt; &lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#ff0000"&gt;Text&lt;/font&gt;&lt;font color="#0000ff"&gt;="Submit"&lt;/font&gt; &lt;font color="#ff0000"&gt;Width&lt;/font&gt;&lt;font color="#0000ff"&gt;="128px"&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;br&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;Label&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;="Label1"&lt;/font&gt; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;="server"&lt;/font&gt; &lt;font color="#ff0000"&gt;Text&lt;/font&gt;&lt;font color="#0000ff"&gt;="Label"&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;Label&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;br&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;FileUpload&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;="FileUpload1"&lt;/font&gt; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;="server"&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;br&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;Button&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;="Button2"&lt;/font&gt; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;="server"&lt;/font&gt; &lt;font color="#ff0000"&gt;Height&lt;/font&gt;&lt;font color="#0000ff"&gt;="25px"&lt;/font&gt; &lt;font color="#ff0000"&gt;onclick&lt;/font&gt;&lt;font color="#0000ff"&gt;="Button2_Click"&lt;/font&gt; &lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#ff0000"&gt;Text&lt;/font&gt;&lt;font color="#0000ff"&gt;="Upload"&lt;/font&gt; &lt;font color="#ff0000"&gt;Width&lt;/font&gt;&lt;font color="#0000ff"&gt;="128px"&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;br&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;Label&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;="Label2"&lt;/font&gt; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;="server"&lt;/font&gt; &lt;font color="#ff0000"&gt;Text&lt;/font&gt;&lt;font color="#0000ff"&gt;="Label"&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;Label&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;br&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;Triggers&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;PostBackTrigger&lt;/font&gt; &lt;font color="#ff0000"&gt;ControlID&lt;/font&gt;&lt;font color="#0000ff"&gt;="Button2"&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;Triggers&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="4"&gt;&lt;font size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;In the Code behind, add the following lines of code:-&lt;/font&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;font color="#0000ff" size="4"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="4"&gt;
&lt;p&gt;&lt;font face="Tahoma" size="2"&gt;protected &lt;font color="#0000ff"&gt;void&lt;/font&gt; Button1_Click(&lt;font color="#0000ff"&gt;object&lt;/font&gt; sender, &lt;font color="#2b91af"&gt;EventArgs&lt;/font&gt; e)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" size="2"&gt;{&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" size="2"&gt;Label1.Text = TextBox1.Text;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" size="2"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Tahoma"&gt;&lt;font color="#0000ff"&gt;protected&lt;/font&gt; &lt;font color="#0000ff"&gt;void&lt;/font&gt; Button2_Click(&lt;font color="#0000ff"&gt;object&lt;/font&gt; sender, &lt;font color="#2b91af"&gt;EventArgs&lt;/font&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" size="2"&gt;{&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" size="2"&gt;FileUpload1.PostedFile.SaveAs(&lt;font color="#a31515"&gt;@"C:\test\"&lt;/font&gt;+System.IO.&lt;font color="#2b91af"&gt;Path&lt;/font&gt;.GetFileName(FileUpload1.PostedFile.FileName));&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" size="2"&gt;Label2.Text = FileUpload1.PostedFile.FileName;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" size="2"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;If you run the above sample, you would notice that upon entering something in the TextBox and clicking "Submit" (Button1) the Label above the File Upload Content, shows the Text you typed, without a page refresh.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;However, when you select a file and click on the "Upload" (Button2) Button, you would notice that a postback happens and the file gets posted to the "C:\Test\" folder and also the full path is specified in the Label 2.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;In the above code, I have not taken any steps regarding validation, checking if file exists etc., since it just shows how you could accomplish File Upload within Update panel.  In normal cases, you would write better code to accomplish a file upload feature.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;&lt;strong&gt;2. Use Iframes and accomplish a truly Gmail Like File Upload Interface.&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="4"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;I thought of writing a post on this, but did a quick research and found that there are a few solutions posted by our MVPs / Community Folks and just thought of providing a link to the same.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="4"&gt;&lt;font size="2"&gt;&lt;font color="#003366"&gt;&lt;a href="http://vinayakshrestha.wordpress.com/2007/03/13/uploading-files-using-aspnet-ajax-extensions/"&gt;&lt;font face="Tahoma"&gt;http://vinayakshrestha.wordpress.com/2007/03/13/uploading-files-using-aspnet-ajax-extensions/&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="+0"&gt;&lt;font color="#003366" size="2"&gt;&lt;a href="http://msmvps.com/blogs/luisabreu/archive/2006/12/14/uploading-files-without-a-full-postback.aspx"&gt;&lt;font face="Tahoma"&gt;http://msmvps.com/blogs/luisabreu/archive/2006/12/14/uploading-files-without-a-full-postback.aspx&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="+0"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Note that this post doesnt claim any warranty / support for the above articles, though.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="+0"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;img src="http://geekswithblogs.net/ranganh/aggbug/120950.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/120950.aspx</wfw:comment>
        <slash:comments>9</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/120950.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/120950.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Mobile Web Forms in Visual Studio 2008</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/04/01/mobile-web-forms-in-visual-studio-2008.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/04/01/mobile-web-forms-in-visual-studio-2008.aspx</id>
        <published>2008-04-01T17:59:04-12:00:00</published>
        <updated>2008-04-01T17:59:04Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;If you have worked with Visual Studio 2008 and tried creating Mobile Web Applications, you would have figured out that the "Mobile Web Form" template is missing.  In the past, in Visual Studio .NET 2003 you had Mobile Web Forms that allow you to create webforms that can be rendered over different types of HTML, WML and XHTML capable devices.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Well, it is not shipped by default in Visual Studio 2008, but Omar Khan from the &lt;/font&gt;&lt;a href="http://blogs.msdn.com/webdevtools/"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Web Development Tools Team&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt; has put up a few templates that can be downloaded and brings in those Mobile Templates required for creating mobile web applications.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;You can download the templates from the &lt;/font&gt;&lt;a href="http://blogs.msdn.com/webdevtools/archive/2007/09/17/tip-trick-asp-net-mobile-development-with-visual-studio-2008.aspx"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Web Development Tools Team Blog Post here&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;  There is a "readme" file attached to each of the extracted Zip folders.  But to make it simpler, once you install and unzip the package, you get a folder "ASP.NET Mobile Templates" and inside that you might find a bunch of folders.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Copy the Zip folders inside each of the "ASP.NET Web Application" Folders into your system's Visual Studio Templates folder.  For instance, there is a folder for "ASP.NET Web Application CS".  You need to copy the contents of this file into&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;c:\Documents and Settings\&amp;lt;username&amp;gt;\My Documents\Visual Studio 2008\Templates\ItemTemplates\Visual C#&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Similarly you would copy the contents of the "VB" folder into the Visual Basic folder under "ItemTemplates" above.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Once you copy these and restart Visual Studio 2008, you would be able to get the "Mobile Web Form", "Mobile Web User Control" and "Mobile Web Configuration File" under "My Templates" in "Add New Item" Wizard.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Cheers !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/120945.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/120945.aspx</wfw:comment>
        <slash:comments>4</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/120945.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/120945.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Virtual Tech Days Bangalore India -  April 9th &amp; 10th</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/03/31/virtual-tech-days-bangalore-india-april-9th-and10th.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/03/31/virtual-tech-days-bangalore-india-april-9th-and10th.aspx</id>
        <published>2008-03-31T03:00:11-12:00:00</published>
        <updated>2008-04-03T20:06:12Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;We are delivering Virtual Tech Days on April 9th and 10th (&lt;/font&gt;&lt;a href="http://www.virtualtechdays.com"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://www.virtualtechdays.com&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;) delivering a series of webcasts on different tracks ranging from SQL - BI to Visual Studio for Devices.  Infact the three important tracks are SQL Server 2008, Visual Studio 2008 and Windows Server 2008.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;These would be in depth sessions covering specific topics on each of the above products.  For Visual Studio we have dedicated tracks for Application Development and Lifecycle management using Visual Studio 2008 and VSTS.  We also have a Web Development track focussing on ASP.NET, AJAX, Silverlight and the recently released ASP.NET MVC Framework Beta.  There would also be a track for Visual Studio for Smart client Apps including Mobile Devices.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;You could find the detailed agenda at &lt;/font&gt;&lt;a href="http://www.virtualtechdays.com/agenda.aspx"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://www.virtualtechdays.com/agenda.aspx&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt; The good thing that we have heard from you folks about webcasts is that, it doesnt require you to travel anywhere and take out time from your hectic work schedule.  You could attend all of these from the comfort of your desktop and learn about the exciting technologies and their application in your projects.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;The sessions are going to be delivered along with Quiz, Contests etc., and there are exciting gifts promized and believe me, I feel its one good time to be attendee than a speaker for this event.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;The whole event would be hosted by Mandira Bedi.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;So, for more information and registration visit &lt;/font&gt;&lt;a href="http://www.virtualtechdays.com/registration.aspx"&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;http://www.virtualtechdays.com/registration.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#000080" size="2"&gt;Looking forward to see you all in the Virtual Tech Days.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/120887.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/120887.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/120887.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/120887.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Adding Videos to web page using Silverlight</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/02/25/adding-videos-to-web-page-using-silverlight.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/02/25/adding-videos-to-web-page-using-silverlight.aspx</id>
        <published>2008-02-25T04:58:40-12:00:00</published>
        <updated>2008-03-31T03:01:23Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Well, if you are a regular reader of my blog, you would have noticed that I have recently uploaded a few videos on Visual Studio and ASP.NET AJAX, powered by Silverlight.  A lot of you might want to upload your videos into your web pages, web logs, site etc., and would be wondering on where to upload the videos, how to host it etc.,  Also, some of you might be waiting to use Silverlight in your website.  Well, this post (inspired with my own experience) helps understand on how you can achieve both (use Silverlight as well as host videos on your webpages) together. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;The first thing that you would require to upload a video, is obviously the Video.  You may want to start recording a screen capture of a simple "How-to" technical article or even on a yummy recipe that you tried.  You could record the video using any screen capture tool or can try the free &lt;/font&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=5691BA02-E496-465A-BBA9-B2F1182CDF24&amp;amp;displaylang=en"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Windows Media Encoder Series&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Once you are done with recording a decent size video (say of size 3-4 MB), you are all set to start publishing the video.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Encoding your Video for Windows Live Streaming using Expression Encoder&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;1. &lt;/font&gt;&lt;a href="http://www.microsoft.com/expression/products/download.aspx?key=encoder"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Download Expression Encoder for free&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;2. Open Expression Encoder, select "File - "Import" and chose the location where you have your recorded video&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;3. It shows the Imported Video under the &lt;strong&gt;Media Content&lt;/strong&gt; section &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;4. Select &lt;strong&gt;Settings&lt;/strong&gt; in the right and under &lt;strong&gt;Profile &lt;/strong&gt;adjust the &lt;strong&gt;Video&lt;/strong&gt; and &lt;strong&gt;Audio&lt;/strong&gt; to reduce the size.  Typically anything more than 25MB is going to have issues when using Silverlight Streaming.  So adjust the settings accordingly.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;5. Switch to the &lt;strong&gt;Output&lt;/strong&gt; tab and under &lt;strong&gt;Job&lt;/strong&gt; &lt;strong&gt;Output - &lt;/strong&gt;Template - chose a template for the video.  I chose the Silverlight Template which looks cool.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;6. Once you are done with the above, click &lt;strong&gt;Encode&lt;/strong&gt; to encode the video file for streaming&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;7. The Encoded file is typically stored in Documents folder under Expression\Encoder folders.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;8. A folder is created for every encoded video&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;9. When you navigate to this folder, you might find the following files&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;i. BasePlayer.js&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;ii. Default.html&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;iii. Your WMV Video file&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;iv. MicrosoftAjax.js&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;v. player.js&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;vi. player.xaml&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;vii. PlayerStrings.js&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;viii. project.csproj&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;ix. Silverlight.js&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;x. StartPlayer.js&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;10. We need to add a Manifest file to the above files.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;11. Create a simple .txt file and rename it to manifest.xml.  Open it using any text editor and copy paste the following contents&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;&amp;lt;SilverlightApp&amp;gt;&lt;br /&gt;
&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt; &lt;br /&gt;
&amp;lt;loadFunction&amp;gt;StartWithParent&amp;lt;/loadFunction&amp;gt; &lt;br /&gt;
&amp;lt;jsOrder&amp;gt;&lt;br /&gt;
   &amp;lt;js&amp;gt;MicrosoftAjax.js&amp;lt;/js&amp;gt; &lt;br /&gt;
   &amp;lt;js&amp;gt;BasePlayer.js&amp;lt;/js&amp;gt; &lt;br /&gt;
   &amp;lt;js&amp;gt;PlayerStrings.js&amp;lt;/js&amp;gt; &lt;br /&gt;
   &amp;lt;js&amp;gt;player.js&amp;lt;/js&amp;gt; &lt;br /&gt;
   &amp;lt;js&amp;gt;StartPlayer.js&amp;lt;/js&amp;gt; &lt;br /&gt;
&amp;lt;/jsOrder&amp;gt;&lt;br /&gt;
&amp;lt;/SilverlightApp&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Save this file&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;12. Secondly, you may not want the video to start playing automatically since it might be a little annoying for your visitors, particularly if there are more than a single video.  To avoid this, you can edit the StartPlayer.js file and navigate to the section where it says &lt;strong&gt;autoPlay.  &lt;/strong&gt;It is set to &lt;strong&gt;true &lt;/strong&gt;by default.  Change it to &lt;strong&gt;false. &lt;/strong&gt;This would make the video play after users click on the same.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;13. Once you are done with the above changes, select all the files mentioned above (contents of the folder for this particular video) and Zip them.  You would need to ignore the following files while zipping&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;i. Default.html&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;ii. Silverlight.js&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;iii. project.csproj file&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;14. The zipped file is what you would require to host your video&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Silverlight Streaming&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Silverlight Streaming is a free streaming resource provided by &lt;/font&gt;&lt;a href="http://dev.live.com"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Windows Live Services&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;  It allows you to host upto 4GB Videos for free streaming and is an innovative approach since we take care of the streaming and hosting part.  All one requires is a silverlight player installed on the client side to render your video.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;You can get a Silverlight Streaming account for free from &lt;/font&gt;&lt;a href="http://silverlight.live.com"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;http://silverlight.live.com&lt;/font&gt;&lt;/a&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;  Once you create an account, visit the &lt;br /&gt;
Manage Applications section and select "Upload a Silverlight Application" link&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;You would require to provide a name which has no space (little annoying) without hyphen (even more annoying if you are used to using hyphens) and there after &lt;strong&gt;Browse&lt;/strong&gt; to upload the zipped files.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Once you are able to upload the zip file successfully, you would get an URL with an iframe tag and the required properties.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Adding it to your website&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Well, all you have to do is to copy the iframe URL provided in the Silverlight Streaming site and paste it into your blog template (switching to HTML View) / website.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Thats it, you could see that your videos are playing powered by Silverlight Streaming.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Happy Silverlight Streaming !!!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/119953.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/119953.aspx</wfw:comment>
        <slash:comments>8</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/119953.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/119953.aspx</trackback:ping>
    </entry>
    <entry>
        <title>AJAX Enabling ASP.NET 2.0 Applications</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/02/21/ajax-enabling-asp.net-2.0-applications.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/02/21/ajax-enabling-asp.net-2.0-applications.aspx</id>
        <published>2008-02-21T01:57:38-12:00:00</published>
        <updated>2008-03-18T02:22:53Z</updated>
        <content type="html">&lt;br /&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2007/06/25/113446.aspx"&gt;Click Here for a text version of this article !&lt;/a&gt; &lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;&lt;iframe style="WIDTH: 500px; HEIGHT: 400px" src="http://silverlight.services.live.com/invoke/34222/AJAXEnablingASPNET20Applications/iframe.html" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/119843.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/119843.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/119843.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/119843.aspx</trackback:ping>
    </entry>
    <entry>
        <title>ASP.NET 2.0 PreCompilation Utility for Deployment </title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/02/21/asp.net-2.0-precompilation-utility-for-deployment.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/02/21/asp.net-2.0-precompilation-utility-for-deployment.aspx</id>
        <published>2008-02-21T01:17:11-12:00:00</published>
        <updated>2008-03-18T02:23:02Z</updated>
        <content type="html">&lt;br /&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2007/07/31/114320.aspx"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Click Here for a text version of this article&lt;/font&gt; &lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;&lt;iframe style="WIDTH: 500px; HEIGHT: 400px" src="http://silverlight.services.live.com/invoke/34222/ASPNET20PrecompiledApplicationDeployment/iframe.html" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/119841.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/119841.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/119841.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/119841.aspx</trackback:ping>
    </entry>
    <entry>
        <title>ASP.NET 2.0 Publish Website Deployment</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ranganh/archive/2008/02/21/asp.net-2.0-publish-website-deployment.aspx" />
        <id>http://geekswithblogs.net/ranganh/archive/2008/02/21/asp.net-2.0-publish-website-deployment.aspx</id>
        <published>2008-02-21T01:07:05-12:00:00</published>
        <updated>2008-02-21T17:52:02Z</updated>
        <content type="html">&lt;br /&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/ranganh/archive/2007/07/31/114320.aspx"&gt;&lt;font face="Tahoma" color="#003366" size="2"&gt;Click Here for a text version of this article&lt;/font&gt; &lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;&lt;iframe style="WIDTH: 500px; HEIGHT: 400px" src="http://silverlight.services.live.com/invoke/34222/ASPNET20PublishWebsiteDeployment/iframe.html" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/ranganh/aggbug/119840.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ranganh/comments/119840.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ranganh/comments/commentRss/119840.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ranganh/services/trackbacks/119840.aspx</trackback:ping>
    </entry>
</feed>