<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>.Net and Some (may be MORE) Random Thoughts &#187; .NET</title>
	<atom:link href="http://blog.budigelli.com/category/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.budigelli.com</link>
	<description></description>
	<lastBuildDate>Tue, 11 May 2010 04:45:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>ASP.NET MVC, JQuery, and SuperFlyDOM</title>
		<link>http://blog.budigelli.com/net/ajax/aspnet-mvc-jquery-and-superflydom-for-user-interface/</link>
		<comments>http://blog.budigelli.com/net/ajax/aspnet-mvc-jquery-and-superflydom-for-user-interface/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 04:18:46 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[DealFlakes]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=45</guid>
		<description><![CDATA[What is JQuery? &#8220;A new type of JavaScript Library&#8221; Jquery really made my UI developement Fun. If you are not familiar with JQuery, i strongly suggest you check it out. We can do more with less code using JQuery. And &#8230; <a href="http://blog.budigelli.com/net/ajax/aspnet-mvc-jquery-and-superflydom-for-user-interface/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>What is JQuery? &#8220;A new type of JavaScript Library&#8221; Jquery really made my UI developement Fun. If you are not familiar with JQuery, i strongly suggest you <a title="Jquery" href="http://jquery.com" target="_blank">check it out</a>. We can do more with less code using JQuery.</p>
<p>And then there is <a title="ASP.NET MVC" href="http://asp.net/mvc" target="_blank">ASP.NET MVC</a> to make make web development clean and TDD friendly. If you are not familiar with ASP.NET MVC you should check out <a title="ASP.NET MVC" href="http://weblogs.asp.net/scottgu/" target="_blank">Scott Gu&#8217;s</a> Blog posts on different previews (currently Preview 4).</p>
<p>There are quite a few articles on how to integrate ASP.NET MVC and JQuery to make our lifes happier. A simple google search for &#8220;<a title="ASP.NET MVC with JQuery" href="http://www.google.com/search?q=asp.net+mvc+with+jquery" target="_blank">ASP.NET MVC with JQuery</a>&#8221; return quite a few articles.</p>
<p><span id="more-45"></span></p>
<p>Here, i am not going to talk about how to use JQuery for communication (for making AJAX Calls) or presentation (Subtle or major UX effects). Insted i am add &#8220;<a title="SuperFlyDOM" href="http://plugins.jquery.com/project/SuperFlyDOM" target="_blank">SuperFlyDOM</a>&#8221; to the mix. The most important part of SuperFlyDOM is the way that it lets us define the Templates. If are making a AJAX call and expecting a JSON Response, the chances are we are expecting a list of objects and would probably need to display them in either a tabular or (un)ordered list to the DOM. SuperFlyDOM is the perfect allay for this situation.</p>
<p>If i have a JSON object with serialized properties (ID, Name, Url), and i want to display/populate these JSON objects to the User by Manipulating the DOM, all i needed to do are the following simple steps&#8230;</p>
<p>I need to create a template (which is very easy depending how complicated you want the item to look after it is rendered) &#8211; To simply display an anchor tag, you could use the following Template</p>
<blockquote><p>var itemTpl = function(){return [<span class="sourceRowText">'a', {href:this.Url, id:this.Id, className:'myclass'}, [this.Name]]};</span></p></blockquote>
<p>I am creating an &#8220;a&#8221; element with properties &#8220;href&#8221;, &#8220;id&#8221;, and &#8220;className&#8221; and it will have the &#8220;Name&#8221; value go in between the &#8220;a&#8221; tag. The good thing about templates is they you can change the way what goes in to the template and how it will be presented (markup) could be changed with out much coupling with the rest of the app.</p>
<p>Once you have the template, you could make a simple call to one of the methods provided by SuperFlyDom, <span class="sourceRowText">tplAppend(jsonObj, itemTpl), foreach JSON object in your collection.  Thats it. This is the best way i have found to deal with JSON objects rendering. If you know any better techniques, please feel free to drop me a line. </span></p>
<p><span class="sourceRowText">Note- You can also do string concatenation on Templates as follows&#8230;</span></p>
<blockquote><p><span class="sourceRowText">var itemTpl= function(){return ['a', {href:'/product/' + this.Name+'/', id:this.ID, className:'myClass'}, [this.Name]]};</span></p></blockquote>
<p>This is one of the few techniques i have used in DealFlakes.Com, <a title="Online Deal Aggregator" href="http://dealflakes.com" target="_blank">Online Deal Aggregator</a>.</p>
<p>Good Luck&#8230;</p>
<p><strong>[update]</strong></p>
<p>I thought its good to include few more sample templates, just to give more info on template creation.</p>
<p>To render the following HTML</p>
<blockquote><p>&lt;div id=&#8221;id-of-the-object&#8221; class=&#8221;someClass&#8221;&gt;&lt;a href=&#8221;/point to some url&#8221; target=&#8221;_blank&#8221; title = &#8220;name-of-the-object&#8221;&gt;name-of-the-object&lt;/a&gt;&lt;/div&gt;</p></blockquote>
<p>our template is going to be something like</p>
<blockquote><p>var itemTps = function() {return ['div', { id:this.Id, className: "someClass"}, ['a', {href:"/point to some url", target: "_blank", title: this.Name }, [this.Name]]]};</p></blockquote>
<p>the key understand the templates are as follows</p>
<ul>
<li>&#8220;[&#8221; is for creating a new element (could be a text element)</li>
</ul>
<ul>
<li>&#8220;{&#8221; represents the attributes of the enclosing elements.</li>
<li>Enclose your elements with single quotation &#8220;&#8216;&#8221; marks</li>
<li>Enclose your attribute values with double quotation &#8220;&#8221;" marks&#8230;</li>
</ul>
<p>Hope this clears few things&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/ajax/aspnet-mvc-jquery-and-superflydom-for-user-interface/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linq to SQL Database Connection String Issue</title>
		<link>http://blog.budigelli.com/net/linq-to-sql-database-connection-string-issue/</link>
		<comments>http://blog.budigelli.com/net/linq-to-sql-database-connection-string-issue/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 18:32:25 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Deployment]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=36</guid>
		<description><![CDATA[As i am moving in to hosting my application on an external server, i am finding some interesting and annoying (time consuming for research) things. i will try to address them as they come along&#8230; One of the main thing &#8230; <a href="http://blog.budigelli.com/net/linq-to-sql-database-connection-string-issue/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As i am moving in to hosting my application on an external server, i am finding some interesting and annoying (time consuming for research) things. i will try to address them as they come along&#8230;</p>
<p>One of the main thing was the way i handle my Data Layer. My Data Layer is a class library project and I have separate Business, Entity, and UI layers.  My Data Layer is done using LINQ to SQL with stored procedures (All my interaction with Database are using Stored Procedures). When i dragged and dropped required tables and stored procedures in to the designer, behind the scenes, the DBML file, (specifically, the DataContext class) hasa  default constructor that stores the connection string. To Re-iterate, we have this connection string defined in Web.Config, and app.Config (gets created for class library projects), and this hard coded value in &#8220;.dbml&#8221; File.</p>
<p><span id="more-36"></span>I googled for few min to find out couple of good posts on this issue and here is the summary and the steps to only have one connection string in &#8220;web.Config&#8221; file.</p>
<p>You can find more info on this <a title="Connection String Problem" href="http://www.west-wind.com/weblog/posts/203567.aspx" target="_blank">by Rick</a>, by <a title="Connection String" href="http://blogs.msdn.com/jongallant/archive/2007/11/25/linq-and-web-application-connection-strings.aspx" target="_blank">Jon Gallant</a>, and by <a title="Connection String" href="http://ddkonline.blogspot.com/2008/02/set-connection-string-in-linq-dbml-file.html" target="_blank">David Klein</a>.</p>
<p>I went ahead with what was posted on David klein&#8217;s article. On the &#8220;.dbml&#8221; designer properties, first made the &#8220;Application Settings&#8221; to false and tried to compile with partial class. But that didn&#8217;t compile. I read the comments David&#8217;s post and made the &#8220;Connection&#8221; to &#8220;Null&#8221;. When i saved and compiled the project it compiled. So, i deleted the Settings File, App.Config File and compiled and ran the application with out any problem.</p>
<p>Now, i only have one place to manage my connection string (in web.config file).</p>
<p>Recap.</p>
<ul>
<li>Set the &#8220;Connection&#8221; Property for the &#8220;.dbml&#8221; designer file to &#8220;Null&#8221;</li>
<li>Create a partial class for your DataContext class and have the constructor with base constructor reading the connection string from web.config file</li>
</ul>
<blockquote><p><span style="color: #0000ff; font-size: small;">public</span><span style="font-size: small;"> </span><span style="color: #0000ff; font-size: small;">partial</span><span style="font-size: small;"> </span><span style="color: #0000ff; font-size: small;">class</span><span style="font-size: small;"> </span><span style="color: #2b91af; font-size: small;">DataClasses1DataContext</span></p>
<p><span style="font-size: small;"> </span></p>
<p><span style="font-size: small;">{</span></p>
<p><span style="color: #0000ff; font-size: small;">public</span><span style="font-size: small;"> DataClasses1DataContext() : </span><span style="color: #0000ff; font-size: small;">base</span><span style="font-size: small;"> (</span><span style="color: #2b91af; font-size: small;">ConfigurationManager</span><span style="font-size: small;">.ConnectionStrings[</span><span style="color: #a31515; font-size: small;">"ConnectionString"</span><span style="font-size: small;">].ConnectionString)</span></p>
<p><span style="font-size: small;">{</span></p>
<p><span style="font-size: small;">OnCreated();</span></p>
<p><span style="font-size: small;">}</span></p>
<p><span style="font-size: small;">}</span></p></blockquote>
<ul>
<li>Make sure you have Connection string in your web.config.</li>
</ul>
<p>Thats it. Simple !!! Happy Coding&#8230;</p>
<p><strong>Update: </strong>The next time i tried to add a Stored Procedure or Table to the DataContext Designer, i still have to go to the properties of the DataContext and tell it not to read from &#8220;appsettings&#8221; and set the connection string to null/empty string. I wish there is a permanent way to say, do not populate these values <img src='http://blog.budigelli.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/linq-to-sql-database-connection-string-issue/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hosting ASP.NET MVC applications</title>
		<link>http://blog.budigelli.com/net/hosting-aspnet-mvc-applications/</link>
		<comments>http://blog.budigelli.com/net/hosting-aspnet-mvc-applications/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 04:39:46 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=34</guid>
		<description><![CDATA[Ok, i have had FUN working with ASP.NET MVC (the official site, more info on Scott Gu&#8217;s Blog) Preview 3. I was doing some fun stuff.  Wanting to  play with different technologies of late, i found (really found) ways to &#8230; <a href="http://blog.budigelli.com/net/hosting-aspnet-mvc-applications/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, i have had FUN working with ASP.NET MVC (<a title="Official ASP.NET MVC site" href="http://www.asp.net/mvc/" target="_blank">the official site</a>, more info on <a title="Scott Gu on ASP.NET MVC" href="http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx" target="_blank">Scott Gu&#8217;s Blog</a>) Preview 3. I was doing some fun stuff.  Wanting to  play with different technologies of late, i found (really found) ways to use LINQ (to SQL, to XML, and on Entities). To complement all this i have used <a title="JQuery" href="http://jquery.com" target="_blank">JQUERY </a>with very good plugins like &#8220;Listen&#8221; and &#8220;SuperFlyDom&#8221;.</p>
<p>This whole thing is very cool and works great on my local machine with Vista Ultimate running IIS7. I was excited and wanted to put it on my hosting account only to realize, my hosting account only supports IIS6 (some cheap Shared Hosting, right!). Now, all my pretty looking URL are going to look bad with that &#8220;.MVC&#8221; extension, right?. After a quick a google search, i found an interesting idea on doing a ReWrites with ISAPI modules. Having done this a lot in my previous jobs, i assumed the job.</p>
<p>My Host, does not support main <a title="ISAPI Rewrite" href="http://www.helicontech.com/" target="_blank">ISAPI_ReWrite</a> modules, and kind of suggested me to get &#8220;<a title="LinkFreeze" href="http://www.helicontech.com/linkfreeze/" target="_blank">LinkFreeze</a>&#8221; from the same company. In my excitement to get my website online, i bought that license (about $50.00) and asked my hosting provider to install and let me know how to set up the configuration i needed to do.</p>
<p>Apparently, this is quite different from the main module and is very limited in what it does. I finally figured (or not) that this is not the right software for what i wanted to do.</p>
<p>Now, i am in the HUNT for Web Host.</p>
<p>Either a decent Windows Serer 2008 Shared Host with reasonable SQL Serever Space or a Virtual Dedicated Windows Server 2003 (then i can install SQL Serer Express).</p>
<p>I would appreciate any feed back with your hosting providers. I have had some bad experiences with couple over this last weekend.</p>
<p>(One Provider went on to say that i can install ISAPI_Rewrite module and assured me that all the things i am asking for are already in the package, only for the Tech REP to tell me, after sign-up, that they don&#8217;t support it.) Now, i am canceling that account and asking for a refund. Please share your experience.</p>
<p>The solution i am mentioning about hosing ASP.NET MVC apps with pretty URLs on IIS6 are <a title="ASP.NET MVC on IIS6" href="http://biasecurities.com/blog/2008/how-to-enable-pretty-urls-with-asp-net-mvc-and-iis6/" target="_blank">This ONE</a> and <a title="ASP.NET MVC on IIS6" href="http://www.flux88.com/UsingASPNETMVCOnIIS6WithoutTheMVCExtension.aspx" target="_blank">This ONE</a>.</p>
<p>Good Luck Hosting with hosting ASP.NET MVC apps. Microsoft, Could you Please provide us some DEV HOSTING PACKAGES for some decent price to play with new technologies. Thanks!!! </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/hosting-aspnet-mvc-applications/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Changing Page Title and Meta Tags with Master Pages</title>
		<link>http://blog.budigelli.com/net/aspnet-20/changing-page-title-and-meta-tags-with-master-pages/</link>
		<comments>http://blog.budigelli.com/net/aspnet-20/changing-page-title-and-meta-tags-with-master-pages/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 04:59:31 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/index.php/net/aspnet-20/changing-page-title-and-meta-tags-with-master-pages/</guid>
		<description><![CDATA[Master Pages are good for so many things. They also cause some confusion on how to have a different page title for each page, how to specify Meta Tags, etc. This post is neither on Master Pages nor on best &#8230; <a href="http://blog.budigelli.com/net/aspnet-20/changing-page-title-and-meta-tags-with-master-pages/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Master Pages are good for so many things. They also cause some confusion on how to have a different page title for each page, how to specify Meta Tags, etc.</p>
<p>This post is neither on Master Pages nor on best practices on handling these two topics. I would try to list couple of simple ways to handle them.</p>
<p><strong>Title:</strong></p>
<p>Title tag in Master Page acts as a place holder. On each page that uses Master Page, specify the &#8220;Title&#8221; in the page declarative.</p>
<p>In your content page, i.e., (.aspx),</p>
<blockquote><p><span class="Article_FullDescription">&lt;%<span style="color: blue">@</span><span style="color: black"> </span><span style="color: maroon">Page</span><span style="color: black"> </span><span style="color: red">Language</span><span style="color: blue">=&#8221;C#&#8221;</span><span style="color: black"> </span><span style="color: red">MasterPageFile</span><span style="color: blue">=&#8221;~/Master1.master&#8221; </span><span style="color: black"><span style="color: red">AutoEventWireup</span><span style="color: blue">=&#8221;true&#8221;</span><span style="color: black"> </span><span style="color: red">Title</span><span style="color: blue">=&#8221;Content Page Title&#8221;</span><span style="color: black">  %&gt;</span></span></span></p></blockquote>
<p>You could also change the &#8220;title&#8221; tag in the code file as follows.</p>
<blockquote><p>base.Master.Page.Header.Title = <span class="Article_FullDescription"><span style="color: blue">&#8220;Content Page Title&#8221;</span></span>;</p></blockquote>
<p><strong>Meta Tags:</strong></p>
<p>Meta Tags are little different compared to setting the page Title. Check the code that creates a meta tag &#8220;keywords&#8221; with content &#8220;ASP.NET, AJAX, Web Services&#8221;.</p>
<blockquote><p>HtmlMeta metaTag = new HtmlMeta();</p>
<p>metaTag.Name = <span class="Article_FullDescription"><span style="color: blue">&#8220;keywords&#8221;</span></span>;</p>
<p>metaTag.Content = <span class="Article_FullDescription"><span style="color: blue">&#8220;ASP.NET, AJAX, Web Services&#8221;</span></span>;</p>
<p>base.Master.Page.Header.Controls.Add(metaTag);</p></blockquote>
<p>If you need to do this in multiple content pages, you might want to have a base page with properties like, &#8220;MetaKeywords&#8221;, &#8220;MetaDescription&#8221;, &#8220;MetaRobots&#8221; etc. So, on your regular page you could set these properties.</p>
<p style="margin-left: 40px">
<p><strong /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/aspnet-20/changing-page-title-and-meta-tags-with-master-pages/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>AJAX UpdatePanel Causes Postback</title>
		<link>http://blog.budigelli.com/net/ajax-updatepanel-causes-postback/</link>
		<comments>http://blog.budigelli.com/net/ajax-updatepanel-causes-postback/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 08:20:51 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Little Known]]></category>
		<category><![CDATA[UpdatePanel]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/index.php/2007/06/16/ajax-updatepanel-causes-postback/</guid>
		<description><![CDATA[Little Known Secrete &#8221; UpdatePanel causes Postbacks&#8221;. Even though it is good entry point in to AJAX programming using .NET technologies, UpdatePanel does not give you much performance over traditional PostBack model. When used, UpdatePanel causes the postback similar to &#8230; <a href="http://blog.budigelli.com/net/ajax-updatepanel-causes-postback/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Little Known Secrete &#8221; UpdatePanel causes Postbacks&#8221;.</p>
<p>Even though it is good entry point in to AJAX programming using .NET technologies, UpdatePanel does not give you much performance over traditional PostBack model.</p>
<p>When used, UpdatePanel causes the postback similar to the traditional postback, instantiates the control tree, and at render time realizes to send only the required response (the content in the updatepanel).</p>
<p>So, apart from the reduced response bandwidth and nice looking flicker free UI, updatepanel is not really getting you much performance.</p>
<p>Having said that, i am sure you can get away with UpdatePanel for most of your needs.</p>
<p>I would try to supplement this with more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/ajax-updatepanel-causes-postback/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ASP.NET Url Re-writing and Postback Problem Solution</title>
		<link>http://blog.budigelli.com/net/aspnet-url-re-writing-and-postback-problem-solution/</link>
		<comments>http://blog.budigelli.com/net/aspnet-url-re-writing-and-postback-problem-solution/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 06:15:57 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[URL ReWritting]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/index.php/2007/06/14/aspnet-url-re-writing-and-postback-problem-solution/</guid>
		<description><![CDATA[If you are doing any web-applications, chances are you have heard of Search Engine Optimization, also know as SEO. Its all about getting better search engine ranking for your web-pages. Even though, there are no fixed rules on what to &#8230; <a href="http://blog.budigelli.com/net/aspnet-url-re-writing-and-postback-problem-solution/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are doing any web-applications, chances are you have heard of Search Engine Optimization, also know as SEO. Its all about getting better search engine ranking for your web-pages.</p>
<p>Even though, there are no fixed rules on what to do, there is a general consensus among web masters, on what helps your search engine rankings. And one of them is having a better URL, in other words, having the key words in your URL using URL Re-writing.</p>
<p>The problem with ASP.NET is that once you do URL rewrite, all your post back would stop working. This has been a dis-advantage when it comes to SEO of your pages. There were few tricks we could have done to have it work, but, they are more of a hack than pretty solutions. I have linked to one of those solutions <a title="Postbacks working after URL rewriting" href="http://budigelli.wordpress.com/2007/04/03/postbacks-does-not-work-with-url-rewriting/">here</a> a while ago.</p>
<p>But, Now with the advent of CSS control adapters, it is not only very easy to URL rewrite and have the postbacks work but also clean [hack!].</p>
<p>Here is a very nice article on various options on URL rewitting from <a title="URL Rewriting with working Postbacks" href="http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx">ScottGu&#8217;s Blog</a></p>
<p>All the solutions offered are very clean and i happen to use the CSS control adapter solution on couple of my sandbox projects,</p>
<p>1) <a title="Andhra Pradesh Classifieds Web Site" href="http://insideap.com">An online classified site for my home state, Andhra Pradesh</a></p>
<p>2) <a title="Online Deal Aggregator" href="http://dealflakes.com">Online Deal and Coupon Aggregation site</a></p>
<p>-Cheers, </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/aspnet-url-re-writing-and-postback-problem-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Usability Question when the screen is being updated</title>
		<link>http://blog.budigelli.com/net/ajax-usability-question-when-the-screen-is-being-updated/</link>
		<comments>http://blog.budigelli.com/net/ajax-usability-question-when-the-screen-is-being-updated/#comments</comments>
		<pubDate>Thu, 24 May 2007 04:33:23 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[UpdatePanel]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/index.php/2007/05/24/ajax-usability-question-when-the-screen-is-being-updated/</guid>
		<description><![CDATA[Â  I am working on a simple web application that aggregates RSS from different Online Deal Site in to one place. One of the things I wanted to do was to have one page and load the RSS details in &#8230; <a href="http://blog.budigelli.com/net/ajax-usability-question-when-the-screen-is-being-updated/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Â </p>
<p>I am working on a simple <a title="Online Deal Site" href="http://dealflakes.com/" rel="follow">web application</a> that aggregates RSS from different Online Deal Site in to one place. One of the things I wanted to do was to have one page and load the RSS details in to an Update Panel. I know Update Panel is not the best when it comes to performance but it does its job and with proper caching on the server side, it is very good for my purpose. And more over this blog is not about the merits and/or de-merits of UpdatePanel but on Usability from an end user perspective.</p>
<p>I was using &#8220;UpdateProgress&#8221; from AJAX control tool kit and it is working very well with simple &#8220;update message&#8221; while the update panel is being processed. But, there are times when there is not any delay and the &#8220;Progress Bar&#8221; is not coming up. This may not be the desirable condition as user might not recognize that the screen has new information.</p>
<p>So, I needed some thing more to say that the screen has been updated. I looked in to &#8220;UpdatePanelAnimationExtender&#8221; to work with the condition. This Extender supports Animations while the screen is being updated and after the update.</p>
<blockquote><p>Â </p>
<p>&lt;cc1:UpdatePanelAnimationExtender ID=&#8221;UpdatePanelAnimationExtender1&#8243; runat=&#8221;server&#8221; EnableViewState=&#8221;false&#8221; TargetControlID=&#8221;UpdatePanel1&#8243;&gt;<br />
&lt;Animations&gt;<br />
&lt;OnUpdated&gt;<br />
&lt;Sequence&gt;<br />
&lt;EnableAction Enabled=&#8221;true&#8221; /&gt;<br />
&lt;Color AnimationTarget=&#8221;UpdatePanel1&#8243;<br />
Duration=&#8221;.5&#8243;<br />
z-index=&#8221;5&#8243;<br />
StartValue=&#8221;#FFCC99&#8243;<br />
EndValue=&#8221;#FFFFFF&#8221;<br />
Property=&#8221;style&#8221;<br />
PropertyKey=&#8221;backgroundColor&#8221; /&gt;<br />
&lt;/Sequence&gt;<br />
&lt;/OnUpdated&gt;<br />
&lt;/Animations&gt;<br />
&lt;/cc1:UpdatePanelAnimationExtender&gt;</p></blockquote>
<p>In addition to this I could have another animation to show while the target update panel is being updated with entry like</p>
<blockquote><p>&lt;OnUpdating&gt;</p>
<p>&lt;/OnUpdating&gt;</p></blockquote>
<p>But I am not sure if this would inform the intended message to the end user! So I have decided to go in-between route. Show the &#8220;Progress Bar&#8221; while the update panel is being updated and show a simple color transition when the panel is being updated.</p>
<p>To outline the code is looks something like this</p>
<blockquote><p>&lt;asp:UpdatePanel id=&#8221;UpdatePanel1&#8243;&gt;</p>
<p>&lt;ContentTemplate&gt;</p>
<p>&lt;asp:UpdateProgress ID=&#8221;UpdateProgress1&#8243; runat=&#8221;server&#8221;&gt;<br />
&lt;ProgressTemplate&gt;<br />
&lt;div class=&#8221;ProgressClass&#8221;&gt;<br />
Please Wait While the Page is Loading&#8230;<br />
&lt;/div&gt;<br />
&lt;/ProgressTemplate&gt;<br />
&lt;/asp:UpdateProgress&gt;</p>
<p>&lt;asp:GridView&gt;</p>
<p>&lt;/asp:GridView&gt;</p>
<p>&lt;/ContentTemplate&gt;</p>
<p>&lt;/asp:UpdatePanel&gt;</p>
<p>&lt;cc1:UpdatePanelAnimationExtender TargetControlID=&#8221;UpdatePanel1&#8243;&gt;</p>
<p>&lt;/cc1:UpdatePanelAnimationExtender&gt;</p></blockquote>
<p>You could find more about these controls <a title="UpdatePanel Overview" href="http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx" rel="nofollow">here</a></p>
<p>-Thanks, </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/ajax-usability-question-when-the-screen-is-being-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Temporary Projects in Visual Studio 2005</title>
		<link>http://blog.budigelli.com/net/creating-temporary-projects-in-visual-studio-2005/</link>
		<comments>http://blog.budigelli.com/net/creating-temporary-projects-in-visual-studio-2005/#comments</comments>
		<pubDate>Tue, 08 May 2007 21:06:36 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/index.php/2007/05/08/creating-temporary-projects-in-visual-studio-2005/</guid>
		<description><![CDATA[I read about creating temporary project in Visual Studio some time ago and kind of forgot about it. Few days ago, I needed to create a temp project for trying out something really quick. There is a setting in Visual &#8230; <a href="http://blog.budigelli.com/net/creating-temporary-projects-in-visual-studio-2005/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I read about creating temporary project in Visual Studio some time ago and kind of forgot about it. Few days ago, I needed to create a temp project for trying out something really quick.</p>
<p>There is a setting in Visual Studio that lets you create projects in temp directory and not save all the directory structure in to your main folder structure.</p>
<p>Follow these steps in Visual Studio 2005</p>
<blockquote><p>Tools -&gt; Options -&gt; Projects and Solutions -&gt;</p>
<p>and <strong>uncheck &#8220;save new projects when created&#8221; </strong>check box.</p></blockquote>
<p>Good Luck&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/creating-temporary-projects-in-visual-studio-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: &quot;Sys&quot; is Undefined error</title>
		<link>http://blog.budigelli.com/net/error-sys-is-undefined-error/</link>
		<comments>http://blog.budigelli.com/net/error-sys-is-undefined-error/#comments</comments>
		<pubDate>Tue, 01 May 2007 05:43:44 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET 2.0]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/index.php/2007/05/01/error-sys-is-undefined-error/</guid>
		<description><![CDATA[I was playing with AJAX enabled applications for some time but not really done any thing major yet. I was working on a small project that required me to add some AJAX functionality using simple updatepanels. I dropped the necessary &#8230; <a href="http://blog.budigelli.com/net/error-sys-is-undefined-error/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was playing with AJAX enabled applications for some time but not really done any thing major yet. I was working on a small project that required me to add some AJAX functionality using simple updatepanels. I dropped the necessary controls like scriptmanager and updatepanel in to the page and added the references to System.Web.Extensions.</p>
<p>I ran the application and ran in the error message mentioned above.</p>
<blockquote><p>Error: &#8220;Sys&#8221; is Undefined Error</p></blockquote>
<p>I read some blogs and added another reference to &#8220;System.Web.Extensions.Design&#8221; and added some</p>
<blockquote><p>&lt;handler&gt; tags to the web.config file.</p></blockquote>
<p>Nothing seemed to work and I still had the issue.</p>
<p>I got smart at this time and created a new AJAX enabledÂ web site in Visual Studio and copied the web.config file over to my existing application.</p>
<p>The error message is gone!!! </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/error-sys-is-undefined-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XmlDataSource databinding xML file to data-bound controls like DataView and DataList</title>
		<link>http://blog.budigelli.com/net/xmldatasource-databinding-xml-file-to-data-bound-controls-like-dataview-and-datalist/</link>
		<comments>http://blog.budigelli.com/net/xmldatasource-databinding-xml-file-to-data-bound-controls-like-dataview-and-datalist/#comments</comments>
		<pubDate>Fri, 27 Apr 2007 15:30:34 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET 2.0]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/index.php/2007/04/27/xmldatasource-databinding-xml-file-to-data-bound-controls-like-dataview-and-datalist/</guid>
		<description><![CDATA[I have pulled in few resources on couple of waysÂ we could databind an XML file to a Data-Bound controls using XmlDataSource. Basically the idea is to be able to bind an XML file, either a physical XML file or XML &#8230; <a href="http://blog.budigelli.com/net/xmldatasource-databinding-xml-file-to-data-bound-controls-like-dataview-and-datalist/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have pulled in few resources on couple of waysÂ we could databind an XML file to a Data-Bound controls using <strong>XmlDataSource</strong>.</p>
<p>Basically the idea is to be able to bind an XML file, either a physical XML file or XML formatted String using <strong>XMLDataSource</strong>.</p>
<p>1) This article from MSDN talks about how to bind an external (physical) XML file to a TreeView Control. These Concepts are same for all the other data-boundable controls like DataView, DataList, etc</p>
<blockquote><p><a title="http://msdn2.microsoft.com/en-us/library/494y92bs(vs.90).aspx" href="http://msdn2.microsoft.com/en-us/library/494y92bs(vs.90).aspx">http://msdn2.microsoft.com/en-us/library/494y92bs(vs.90).aspx</a></p></blockquote>
<p>You can see how you could simply bind the XML file, Transform it before binding, and using XPath to filter further.</p>
<p>One thing I think its missing is reading/binding values form an XML node attribute value.</p>
<p>Taking further the examples mentioned in the above article, assuming you have an XML attribute, &#8220;ID&#8221; for Person node, in the databinding columns you could read/bind it as</p>
<blockquote><p>&lt;asp:TreeNodeBinding DataMember=&#8221;Person&#8221; TextField=&#8221;ID&#8221; /&gt;</p></blockquote>
<p>You are specifying the name of the attribute for &#8220;TextField&#8221; instead of the &#8220;#InnerText&#8221; that read the InnerText of the Node.</p>
<p>2) We could also bind an inline <strong>XML string</strong> using <strong>XmlDataSource </strong>as discussed in this article from another MSDN article</p>
<blockquote><p><a title="http://msdn2.microsoft.com/en-us/library/ms228250(vs.80).aspx" href="http://msdn2.microsoft.com/en-us/library/ms228250(vs.80).aspx">http://msdn2.microsoft.com/en-us/library/ms228250(vs.80).aspx</a></p></blockquote>
<p>-Hope it helps&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/net/xmldatasource-databinding-xml-file-to-data-bound-controls-like-dataview-and-datalist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

