<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://paldev.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Huthaifa Afanah : ASP.NET</title><link>http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx</link><description>Tags: ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>In Hebron “Introduction to VS2008 &amp; ASP.NET” session</title><link>http://paldev.net/blogs/hafanah/archive/2009/09/10/in-hebron-introduction-to-vs2008-amp-asp-net-session.aspx</link><pubDate>Thu, 10 Sep 2009 09:01:17 GMT</pubDate><guid isPermaLink="false">de61d5c7-2e78-4eeb-b386-512fe742ab93:4119</guid><dc:creator>Huthaifa Afanah</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/rsscomments.aspx?PostID=4119</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/commentapi.aspx?PostID=4119</wfw:comment><comments>http://paldev.net/blogs/hafanah/archive/2009/09/10/in-hebron-introduction-to-vs2008-amp-asp-net-session.aspx#comments</comments><description>&lt;p align="justify"&gt;&lt;img style="margin:0px 10px 0px 0px;display:inline;" align="left" src="http://paldev.net/cfs-filesystemfile.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.40.97/FFKITCE59_2D00_14.jpg" width="240" height="180" alt="" /&gt;As part of &lt;a href="http://paldev.net" target="_blank"&gt;PalDev&lt;/a&gt; activities I was in Hebron this Saturday to deliver a &lt;a href="http://paldev.net/blogs/announcements/archive/2009/08/29/workshop-invitation-ffkitce-introduction-to-asp-net-and-visual-studio-2008.aspx" target="_blank"&gt;“Introduction to VS2008 &amp;amp; ASP.NET”&lt;/a&gt; session for the &lt;a href="http://ppu.edu" target="_blank"&gt;PPU&lt;/a&gt; –Palestine Polytechnic University – CS and IT students. The workshop was held in Friends of Fawzi Kawash IT Center of Excellence (&lt;a href="http://www.ffkitce.ps/" target="_blank"&gt;FFKITCE&lt;/a&gt;). We stopped the event registration process after 65 person was registered regarding the room limitation and we also emailed the latest 25 person that the priority will be given for those who registered earlier and we will re-hold a similar event for those who could not attend. &lt;/p&gt;  &lt;p align="justify"&gt;Anyway I went to Hebron using public transportation and it was like using “Crazy Taxi”!! it was really a mad drive I reached with no harm and headed to the FFKITCE center. The presentation started after 12:00 pm and continued to 4:00 pm nearly. It was really a very quick 3 hours full with Microsoft Buzz.&lt;/p&gt;  &lt;p align="justify"&gt;The audience was excited –I think- and I was very pleased to see those motivated students which really encouraged me myself to pursue latest tech’s further and further. The audience was interested with the powerful features the .NET and VS2008 provides which ease the application development process and save time and efforts. On the side of the presentation I introduced the express editions &lt;a href="http://www.microsoft.com" target="_blank"&gt;Microsoft&lt;/a&gt; offers, Microsoft Dream Spark and MSP programs. &lt;/p&gt;  &lt;p align="justify"&gt;In general the presentation run smoothly except that I could not figure out what happened in the second demo when my VS 2008 refused to connect to adventure works sample database. Although I checked the sample scenario early that morning and it was running fine but this is the demo’s hell I really tested –many times probably- !! Anyway we was already exceeded the given time so I skipped the rest of demo and finished the presentation. I am looking forward seeing more interaction &lt;img style="margin:0px 0px 0px 10px;display:inline;" align="right" src="http://paldev.net/cfs-filesystemfile.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.40.98/FFKITCE59_2D00_15.jpg" width="240" height="180" alt="" /&gt;from the students with PalDev and I really think that the time when such events are being held by the students themselves is very near.&lt;/p&gt;  &lt;p align="justify"&gt;A several suggestions came along with the presentation: some folks asked for advanced topics and this is very eligible and &lt;a href="http://paldev.net" target="_blank"&gt;PalDev&lt;/a&gt; already has plans to do a bunch of advanced sessions for advanced users. Another asked for HOL’s but this is very limited due the limitation of available well equipped&amp;#160; labs. &lt;/p&gt;  &lt;p align="justify"&gt;Hope that helps anyone   &lt;br /&gt;Huthaifa &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://paldev.net/aggbug.aspx?PostID=4119" width="1" height="1"&gt;</description><category domain="http://paldev.net/blogs/hafanah/archive/tags/General+Development/default.aspx">General Development</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/PalDev/default.aspx">PalDev</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/VS2008/default.aspx">VS2008</category></item><item><title>The Gu is Back!! with new Multilingual version!!</title><link>http://paldev.net/blogs/hafanah/archive/2009/08/27/the-gu-is-back-with-new-multilingual-version.aspx</link><pubDate>Thu, 27 Aug 2009 07:56:29 GMT</pubDate><guid isPermaLink="false">de61d5c7-2e78-4eeb-b386-512fe742ab93:4041</guid><dc:creator>Huthaifa Afanah</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/rsscomments.aspx?PostID=4041</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/commentapi.aspx?PostID=4041</wfw:comment><comments>http://paldev.net/blogs/hafanah/archive/2009/08/27/the-gu-is-back-with-new-multilingual-version.aspx#comments</comments><description>&lt;p&gt;Yesterday I checked my RSS feed and found that &lt;a href="http://weblogs.asp.net/scottgu" target="_blank"&gt;Scott Guthrie&lt;/a&gt; announced that he is starting a &lt;a href="http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx" target="_blank"&gt;new series of posts&lt;/a&gt;. That was a great news to hear. Scott is one of the most popular &lt;a href="http://www.microsoft.com" target="_blank"&gt;Microsoft&lt;/a&gt; managers. He is one of those who played a core role developing Microsoft web platform even the whole .NET framework. He leads core .NET libraries,&lt;a href="http://windowsclient.net/" target="_blank"&gt;WPF&lt;/a&gt;, &lt;a href="http://www.asp.net" target="_blank"&gt;ASP.NET&lt;/a&gt;, ASP.NET MCV, &lt;a href="http://silverlight.net/" target="_blank"&gt;Sliverlight&lt;/a&gt; and &lt;a href="http://www.iis.net/" target="_blank"&gt;IIS&lt;/a&gt; teams. &lt;a href="http://www.microsoft.com/presspass/exec/guthrie/" target="_blank"&gt;&lt;img style="border-right-width:0px;margin:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" border="0" align="right" src="http://www.microsoft.com/presspass/images/exec/web/Guthrie_web.jpg" width="171" height="240" alt="" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Anyway I decided that I will resume translating his posts in the &lt;a href="http://weblogs.asp.net/ScottGuArabic/" target="_blank"&gt;Scott Guthrie in Arabic blog&lt;/a&gt; at asp.net blogs. I started doing this early in the last year but after translating some posts I stopped. Something in my brain told me: Stop its not worthy .. you are typing &lt;a href="http://weblogs.asp.net/istofix" target="_blank"&gt;your own posts&lt;/a&gt; in English!! Even your &lt;a href="http://www.paldev.net/blogs/hafanah" target="_blank"&gt;blog@PalDev&lt;/a&gt;&amp;#160;&amp;#160; Why to make Arabic clone of another one’s blog!! &lt;u&gt;This was totally a wrong decision&lt;/u&gt;. No doubt that the language of the world now is English. But this is not a reason for people not to support their own local content presence on the Internet. This will help their people who has not the abilities to use English or even does not like to read foreign content. &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;So I made this decision: form so on I will not translate just translate Scott’s posts but I will even translate my own posts. &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This will be fair enough. I know that will be tough but I hope that I can cope with this challenge. Its better to stop chatter and start work - Th Gu made another new post!! He is very active blogger!- &lt;/p&gt;  &lt;p&gt;To check the new posts check:&lt;/p&gt;  &lt;li&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2009/08/25/clean-web-config-files-vs-2010-and-net-4-0-series.aspx"&gt;Clean Web.Config Files&lt;/a&gt; (Posted Aug 25, 2009) &lt;/li&gt;  &lt;li&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2009/08/26/starter-project-templates-vs-2010-and-net-4-0-series.aspx"&gt;Starter Project Templates&lt;/a&gt; (Posted August 26, 2009)     &lt;p&gt;See you very soon.&lt;/p&gt;    &lt;p&gt;&lt;/p&gt; &lt;/li&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://paldev.net/aggbug.aspx?PostID=4041" width="1" height="1"&gt;</description><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/Scott+Guthrie/default.aspx">Scott Guthrie</category></item><item><title>Hosting multiple websites/applications on IIS</title><link>http://paldev.net/blogs/hafanah/archive/2009/08/06/hosting-multiple-websites-applications-on-iis.aspx</link><pubDate>Thu, 06 Aug 2009 17:23:00 GMT</pubDate><guid isPermaLink="false">de61d5c7-2e78-4eeb-b386-512fe742ab93:4029</guid><dc:creator>Huthaifa Afanah</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/rsscomments.aspx?PostID=4029</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/commentapi.aspx?PostID=4029</wfw:comment><comments>http://paldev.net/blogs/hafanah/archive/2009/08/06/hosting-multiple-websites-applications-on-iis.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://www.microsoft.com" target="_blank"&gt;Microsoft&lt;/a&gt; provides us with &lt;a href="http://www.iis.net/" target="_blank"&gt;IIS&lt;/a&gt; -stands for Internet Information Services- as its only, robust and well packaged web server. IIS is the second popular web server on the internet after &lt;a href="http://en.wikipedia.org/wiki/Apache_HTTP_Server"&gt;Apache HTTP Server&lt;/a&gt; the open source web server. You can use IIS to host different type of websites so you can host websites which use ASP, PHP, Perl, JSP, ROR .. etc. and for sure those who uses ASP.NET.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://paldev.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/hafanah/welcome_5F00_7AAAABBB.png"&gt;&lt;img style="border-right-width:0px;margin:5px 10px 5px 5px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="welcome" border="0" alt="welcome" align="left" src="http://paldev.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/hafanah/welcome_5F00_thumb_5F00_1970F9CD.png" width="244" height="177" /&gt;&lt;/a&gt; In most cases you will use one web server to host multiple websites. There is a many issues should be addressed and take in our considerations. In this series I will address some of these issues providing guidelines and collection o0f practices to handle them.&lt;/p&gt;  &lt;p&gt;Ok, see you very soon I hope.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://paldev.net/aggbug.aspx?PostID=4029" width="1" height="1"&gt;</description><category domain="http://paldev.net/blogs/hafanah/archive/tags/General+Development/default.aspx">General Development</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/IIS/default.aspx">IIS</category></item><item><title>ASP.NET Globalization hint</title><link>http://paldev.net/blogs/hafanah/archive/2009/07/12/asp-net-globalization-hint.aspx</link><pubDate>Mon, 13 Jul 2009 06:56:42 GMT</pubDate><guid isPermaLink="false">de61d5c7-2e78-4eeb-b386-512fe742ab93:703</guid><dc:creator>Huthaifa Afanah</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/rsscomments.aspx?PostID=703</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/commentapi.aspx?PostID=703</wfw:comment><comments>http://paldev.net/blogs/hafanah/archive/2009/07/12/asp-net-globalization-hint.aspx#comments</comments><description>&lt;p&gt;As one of the most powerful features came with the ASP.NET 2.0 is the out of the box globalization and localization features. Today websites and web applications is usually became a multilingual ones and ASP.NET provides us with a flexible, easy to use and time saving&amp;#160; localization mechanism. I ran into a silly issue about localizing a project I am working with and after losing my mind and finished tearing up my hair I said “opps .. I missed something .. the fallback file”&lt;/p&gt;  &lt;p&gt;Ok .. to localize your application you need to make use resources files which ends with the &lt;strong&gt;*.resx&lt;/strong&gt; extension local resources or global resource there is no difference. Anyway in the most simple case if you have a &lt;strong&gt;Default.aspx&lt;/strong&gt; form to localize it you must have a related &lt;strong&gt;.resx&lt;/strong&gt; files. One file per culture using this naming convention Default.aspx.&lt;strong&gt;&lt;em&gt;[culture]&lt;/em&gt;&lt;/strong&gt;.resx … So if you you application supports 3 languages say: English, Arabic, French you must have one resource file for each language. This means we need to have:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Default.aspx.&lt;em&gt;en-US&lt;/em&gt;.resx&lt;/strong&gt; for the English page with USA specifications &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Default.aspx.&lt;em&gt;ar-SA&lt;/em&gt;.resx&lt;/strong&gt; for the Arabic page with Saudi Arabia specifications &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Default.aspx.&lt;em&gt;fr-CA&lt;/em&gt;.resx&lt;/strong&gt; for the French page with Canada specifications &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;You may use neutral cultures which related to language rather than a specific region culture e.g &lt;em&gt;&lt;strong&gt;en&lt;/strong&gt;, ar and fr &lt;/em&gt;… anyway after doing this you think you are fine but when you run the application you will discover that your pages does not read any values form those files and you still have those you filled when developing the form. &lt;/p&gt;  &lt;p&gt;This occurs because in all circumstances you need to provide a default resource file which called “Fallback” resource file –will look like this &lt;strong&gt;&lt;em&gt;Default.aspx.resx&lt;/em&gt;&lt;/strong&gt;- which CLR will use when the users culture does not have its own resources file. e.g say that we have a visitor with the Chinese culture on his browser then the fallback resources will be used to get the required resources to serve his request. &lt;/p&gt;  &lt;p&gt;&lt;img style="margin:5px;display:inline;" align="left" src="http://www.telerik.com/images/editor/reporting/Report_Viewer_Localization_Strategy.png" alt="" /&gt;What make me forget about the fallback resources file in my case is the truth that I am forcing users to choose between en-US and ar-SA –which is the default- culture. I thought: who need this file while the users will have a default culture and can only switch to another predefined one. Plus the resource mechanism works by searching for the users specific culture first –which in my case is forced by code to use &lt;em&gt;&lt;strong&gt;ar-SA&lt;/strong&gt;&lt;/em&gt; - in the cultures hierarchy and then move to the parent culture and so on!! &lt;/p&gt;  &lt;h4&gt;Hint&lt;/h4&gt;  &lt;p&gt;You need to make sure that you ever never forget about providing Default or Fallback resource file in your application. I will make another detailed post about how CLR handle resources. Hope that helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://paldev.net/aggbug.aspx?PostID=703" width="1" height="1"&gt;</description><category domain="http://paldev.net/blogs/hafanah/archive/tags/General+Development/default.aspx">General Development</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/Resources/default.aspx">Resources</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>ASP.NET MVC 1.0 has been released</title><link>http://paldev.net/blogs/hafanah/archive/2009/04/01/asp-net-mvc-1-0-has-been-released.aspx</link><pubDate>Thu, 02 Apr 2009 03:46:52 GMT</pubDate><guid isPermaLink="false">de61d5c7-2e78-4eeb-b386-512fe742ab93:63</guid><dc:creator>Huthaifa Afanah</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/rsscomments.aspx?PostID=63</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/commentapi.aspx?PostID=63</wfw:comment><comments>http://paldev.net/blogs/hafanah/archive/2009/04/01/asp-net-mvc-1-0-has-been-released.aspx#comments</comments><description>&lt;p align="justify"&gt;Hello The Gu -&lt;a href="http://weblogs.asp.net/scottgu" target="_blank"&gt;Scott Guthrie&lt;/a&gt;- has announced the ASP.NET MVC 1.0. &lt;a title="Scott Guthrie announces ASP.NET MVC 1.0" href="http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx" target="_blank"&gt;You can read the full post here.&lt;/a&gt; The amazing thing that ASP.NET MVC is an open source project and the code released under MS-PL licenses. &lt;/p&gt;  &lt;p align="justify"&gt;And they say Microsoft does not support open source. They published&amp;#160; the source code of the .NET framework itself last year -but it was a closed source- and they now releasing open source projects. Who knows what future is hiding for us.&lt;/p&gt;  &lt;p align="justify"&gt;Congratulation Microsoft!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://paldev.net/aggbug.aspx?PostID=63" width="1" height="1"&gt;</description><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET+MVC/default.aspx">ASP.NET MVC</category></item><item><title>ASP.NET Flavors</title><link>http://paldev.net/blogs/hafanah/archive/2009/03/31/asp-net-flavors.aspx</link><pubDate>Tue, 31 Mar 2009 13:03:15 GMT</pubDate><guid isPermaLink="false">de61d5c7-2e78-4eeb-b386-512fe742ab93:61</guid><dc:creator>Huthaifa Afanah</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/rsscomments.aspx?PostID=61</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/commentapi.aspx?PostID=61</wfw:comment><comments>http://paldev.net/blogs/hafanah/archive/2009/03/31/asp-net-flavors.aspx#comments</comments><description>&lt;p align="justify"&gt;Hello All … many of us have heard of &lt;a href="http://asp.net" target="_blank"&gt;ASP.NET&lt;/a&gt; as a web development technology. But many of us does not noticed that things differs a lot from ASP.NET 1.1 time.&lt;/p&gt;  &lt;h5&gt;So what is the difference?&lt;/h5&gt;  &lt;p align="justify"&gt;&lt;img style="margin:0px 0px 0px 10px;display:inline;" align="right" src="http://www.asp.net/App_Themes/Standard/i/logo.png" alt="" /&gt;Since ASP.NET 2.0-3.5 has been released we have multiple flavors of ASP.NET. This means that you can develop ASP.NET web application using different asp.net frameworks. You may select the framework you think its the most efficient to your situation. That is really great thing to have because its provide developers with sufficient flexibility needed to let there job done.&lt;/p&gt;  &lt;h4&gt;ASP.NET Flavors&lt;/h4&gt;  &lt;p&gt;&lt;a href="http://palgeeks.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/hafanah/ASP.NET_5F00_2C32E920.jpg"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:block;float:none;margin-left:auto;border-top:0px;margin-right:auto;border-right:0px;" title="ASP.NET Four Pillars" border="0" alt="ASP.NET Four Pillars" src="http://palgeeks.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/hafanah/ASP.NET_5F00_thumb_5F00_7B8BF342.jpg" width="368" height="220" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p align="justify"&gt;Since there is much of articles, posts about ASP.NET new era I will just summarize them from &lt;a href="http://aspadvice.com/blogs/plitwin" target="_blank"&gt;Paul Litwin&lt;/a&gt; blog &lt;a href="http://weblogs.asp.net/paullitwin/archive/2009/03/30/the-four-pillars-of-asp-net.aspx" target="_blank"&gt;post&lt;/a&gt; in which he talked about this pillars in details. Thanks Paul.&lt;/p&gt;  &lt;h5&gt;ASP.NET Web Forms&lt;/h5&gt;  &lt;p align="justify"&gt;Until recently, this was the only pillar of ASP.NET. Everything was done using the familiar rich server-side controls that many have grown to love (and some have learned to despise which is the seed for the other three pillars).&amp;#160; Event Driven development model, very powerful designer support, and persistence in mind. &lt;/p&gt;  &lt;h5&gt;&lt;a href="http://www.asp.net/ajax/" target="_blank"&gt;ASP.NET AJAX&lt;/a&gt;&lt;/h5&gt;  &lt;p align="justify"&gt;&lt;img style="margin:0px 10px 0px 0px;display:inline;" align="left" src="http://news.softpedia.com/images/news2/ASP-NET-AJAX-1-0-Available-for-Download-2.png" width="108" height="111" alt="" /&gt; This pillar came to life with the ASP.NET AJAX Extensions for ASP.NET 2.0 / Visual Studio 2005. ASP.NET AJAX is now integrated into ASP.NET and Visual Studio 2008 and consists of both a set of server-side controls as well as the AJAX client-side libraries. In regards to its existence as a “pillar,” I would argue that Microsoft is really only talking about the client-side of ASP.NET AJAX. The reason I say this is that the Upgrade Panel and other server-side AJAX controls merely extend the Web Form pillar, giving Web Form controls the ability to do asynchronous postbacks. &lt;/p&gt;  &lt;h5&gt;&lt;a href="http://www.asp.net/mvc" target="_blank"&gt;ASP.NET MVC&lt;/a&gt;&lt;/h5&gt;  &lt;p align="justify"&gt;&lt;a href="http://palgeeks.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/hafanah/mvc_5F00_4D2B85CB.jpg"&gt;&lt;img style="border-right-width:0px;margin:0px 0px 0px 10px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="mvc" border="0" alt="mvc" align="right" src="http://palgeeks.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/hafanah/mvc_5F00_thumb_5F00_083F15FD.jpg" width="251" height="241" /&gt;&lt;/a&gt; This pillar is the newest to emerge from Microsoft. In fact, as of this writing, it’s only a couple of weeks old, having been released at Mix09. The basic idea behind ASP.NET MVC is to separate out the three concerns of the MVC pattern: the model, view, and controller. The model represents the data model, the view is the user interface that presents the data and interacts with the user, and the controller is the command center that takes inputs from the view, pushes and pulls data into/from the model, and decides what to do next.&lt;/p&gt;  &lt;h5&gt;&lt;a href="http://www.asp.net/dynamicdata" target="_blank"&gt;ASP.NET Dynamic Data&lt;/a&gt;&lt;/h5&gt;  &lt;p align="justify"&gt;MSDN Help says, “&lt;i&gt;ASP.NET Dynamic Data is a framework that lets you create data-driven ASP.NET Web applications easily.&lt;/i&gt;”&lt;/p&gt;  &lt;p align="justify"&gt;Dynamic Data uses what is termed dynamic scaffolding to construct your application. This means if you change your data model, the application will be instantly updated: there’s no code that needs to be re-generated. &lt;/p&gt;  &lt;h5&gt;So what does this mean to the developer?&lt;/h5&gt;  &lt;p align="justify"&gt;As Paul said this is &lt;b&gt;good news&lt;/b&gt; as that you now have a choice in how you develop your ASP.NET applications. And its &lt;b&gt;bad news&lt;/b&gt; as that you now have a choice in how you develop your ASP.NET applications. (Wait a second, wasn’t that also the good news?)This means you have more things to learn. And &lt;a href="http://www.microsoft.com" target="_blank"&gt;Microsoft&lt;/a&gt; may be taking some of its focus off Web Forms.&lt;/p&gt;  &lt;p align="justify"&gt;For more details you can refer to &lt;a href="http://weblogs.asp.net/paullitwin/archive/2009/03/30/the-four-pillars-of-asp-net.aspx" target="_blank"&gt;Paul’s nice post&lt;/a&gt; and have a extensive idea bout those options and comparison between them. Regarding myself I still stuck with ASP.NET web forms which I feel its more appropriate and easy to use. &lt;/p&gt;  &lt;p align="justify"&gt;Hope that helps&lt;/p&gt;  &lt;p align="justify"&gt;Huhaifa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://paldev.net/aggbug.aspx?PostID=61" width="1" height="1"&gt;</description><category domain="http://paldev.net/blogs/hafanah/archive/tags/General+Development/default.aspx">General Development</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Embedded Resources difference between VB.NET and C# projects</title><link>http://paldev.net/blogs/hafanah/archive/2008/10/21/embedded-resources-difference-between-vb-net-and-c-projects.aspx</link><pubDate>Wed, 22 Oct 2008 00:48:00 GMT</pubDate><guid isPermaLink="false">de61d5c7-2e78-4eeb-b386-512fe742ab93:33</guid><dc:creator>Huthaifa Afanah</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/rsscomments.aspx?PostID=33</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/commentapi.aspx?PostID=33</wfw:comment><comments>http://paldev.net/blogs/hafanah/archive/2008/10/21/embedded-resources-difference-between-vb-net-and-c-projects.aspx#comments</comments><description>&lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;While I am developing a custom web control to extend the default validation summary I used some images within this control. One of the nice features and solutions came with ASP.NET 2.0 to address this problem is using web resources. So I embedded these images in my custom control assembly and used the &lt;span&gt;Page&lt;/span&gt;&lt;span style="color:black;"&gt;.ClientScript.GetWebResourceUrl&lt;/span&gt; to resolve their URL&amp;#39;s. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;To do this task correctly you need to do 2 simple steps: &lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-left:39pt;"&gt;   &lt;li&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;First, you need to select whatever file you want to embed in your assembly and then set the &lt;b&gt;Build Action&lt;/b&gt; property from its properties to &lt;b&gt;Embed &lt;/b&gt;this is straight forward as saying 1, 2, 3.         &lt;br /&gt;&lt;a href="http://weblogs.asp.net/controlpanel/blogs/C:%5CDocuments%20and%20Settings%5CAdmin%5CApplication%20Data%5CWindows%20Live%20Writer%5CPostSupportingFiles%5C27ab55f0-7cc0-4f0c-b7d1-ce3b86109466%5CembedFile4.jpg"&gt;&lt;img alt="" src="http://weblogs.asp.net/blogs/istofix/102108_1300_EmbeddedRes1.jpg" border="0" /&gt;&lt;/a&gt; &lt;/span&gt;&lt;/li&gt;    &lt;li&gt;     &lt;div&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;The second this we need to do is referencing that embedded resource so it could be retrieved as a web resources.This could be accomplished by adding WebResource attributes in the Assembly.info file. &lt;/span&gt;&lt;/div&gt;      &lt;p style="text-align:center;"&gt;&lt;a href="http://weblogs.asp.net/controlpanel/blogs/C:%5CDocuments%20and%20Settings%5CAdmin%5CApplication%20Data%5CWindows%20Live%20Writer%5CPostSupportingFiles%5C27ab55f0-7cc0-4f0c-b7d1-ce3b86109466%5CassemblyInfo7.jpg"&gt;&lt;img alt="" src="http://weblogs.asp.net/blogs/istofix/102108_1300_EmbeddedRes2.jpg" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;/p&gt;      &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;         &lt;br /&gt;In general to do this all we need is to add the web resource attribute like &lt;/span&gt;&lt;/p&gt;      &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;&lt;span style="color:black;"&gt;&amp;lt;Assembly:&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:black;"&gt;System.Web.UI.WebResource(&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;quot;EmbeddedResourcesVB.Sunset.jpg&amp;quot;&lt;/span&gt;&lt;span style="color:black;"&gt;,&lt;/span&gt;&lt;span style="color:gray;"&gt; &amp;quot;image/jpg&amp;quot;&lt;/span&gt;&lt;span style="color:black;"&gt;)&amp;gt;&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt; the WebResource takes two parameters, the &lt;i&gt;first one&lt;/i&gt; is the resource full name which following this convention: &lt;b&gt;(Rootnamespace).(SubNameSapce).(Filename).(Extension) &lt;/b&gt;and the &lt;i&gt;second parameter&lt;/i&gt; is the MIEM file type of the resource &lt;/span&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;span style="font-size:13pt;font-family:trebuchet ms;"&gt;So what&amp;#39;s wrong? &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;This looks very simple but why all problems occurred? What is the error prone thing which make all these posts and articles on the web!! To identify this we can say there is some issue regarding the way that VB.NET projects and C# projects being organized. Is that true? Yes that&amp;#39;s true!! &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/controlpanel/blogs/C:%5CDocuments%20and%20Settings%5CAdmin%5CApplication%20Data%5CWindows%20Live%20Writer%5CPostSupportingFiles%5C27ab55f0-7cc0-4f0c-b7d1-ce3b86109466%5CSolution5.jpg"&gt;&lt;img alt="" src="http://weblogs.asp.net/blogs/istofix/102108_1300_EmbeddedRes3.jpg" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;To figure out this issue I created simple solution conations a VB.NET project and a C# project. and add an image to each of them as our embedded resource. I changed the &lt;b&gt;Root Namespace&lt;/b&gt; property for each project to make it clear that the assembly name has nothing to do with WebResource name. By default the &lt;b&gt;Root Namespace == assembly name &lt;/b&gt;but in some certain scenarios you need to change that so by choosing the project properties you can change the assembly name property and the RootNamespace property. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;After building our solution let&amp;#39;s have a closer look to the embedded resources after being compiled into assembly. So let&amp;#39;s open EmbResVB.dll and EmbResCSharp.dll using Reflector. If you take a quick look to the image below you can note that the &lt;i&gt;Sunset.jpg&lt;/i&gt; image resource name differs from the Vb.Net assembly to the C# one. &lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:center;"&gt;&lt;a href="http://weblogs.asp.net/controlpanel/blogs/C:%5CDocuments%20and%20Settings%5CAdmin%5CApplication%20Data%5CWindows%20Live%20Writer%5CPostSupportingFiles%5C27ab55f0-7cc0-4f0c-b7d1-ce3b86109466%5Crefelector6.jpg"&gt;&lt;img alt="" src="http://weblogs.asp.net/blogs/istofix/102108_1300_EmbeddedRes4.jpg" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:center;"&gt;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;But we said that the resource name should follow this convention: &lt;b&gt;(RootNameSpace).(SubNameSapce).(Filename).(Extension) &lt;/b&gt;so what&amp;#39;s happens??!!       &lt;br /&gt;&lt;b&gt;Here&amp;#39;s what happen:&lt;/b&gt; in the C# projects if you add a new class to your solution you will find that the IDE put&amp;#39;s this file in a namespace regarding to the solution folders hierarchy. But in VB.NET projects this is not occur. Let&amp;#39;s take the ImagesUrl class as example, this class which exists&amp;#39;s under the images folder in our testing C# and VB.NET projects but it will look like this by default in C#: &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:black;"&gt;System&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:black;"&gt;System.Collections.Generic&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:black;"&gt;System.Text&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;namespace&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:black;"&gt;EmbeddedResourcesCSharp.Images&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;{&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:blue;"&gt;class&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:black;"&gt;ImagesURL&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color:black;"&gt;{&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;&lt;span style="color:gray;"&gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color:black;"&gt;}&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;}&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;while in the VB.NET project it will be added to the root namespace by default: &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;&lt;span style="color:blue;"&gt;Public&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:blue;"&gt;Class&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:black;"&gt;ImagesUrl&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color:blue;"&gt;Sub&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:blue;"&gt;New&lt;/span&gt;&lt;span style="color:black;"&gt;()&lt;/span&gt;&lt;span style="color:gray;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/asp.net"&gt;&lt;span style="text-decoration:underline;"&gt;asp.net&lt;/span&gt;&lt;/a&gt;,&lt;a href="http://technorati.com/tags/embbede%20resources"&gt;&lt;span style="text-decoration:underline;"&gt;embbede resources&lt;/span&gt;&lt;/a&gt;,&lt;a href="http://technorati.com/tags/.Net"&gt;&lt;span style="text-decoration:underline;"&gt;.Net&lt;/span&gt;&lt;/a&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;&lt;span style="color:gray;"&gt;       &lt;br /&gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color:blue;"&gt;End&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:blue;"&gt;Sub&lt;/span&gt;&lt;span style="color:gray;"&gt;        &lt;br /&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;End&lt;/span&gt;&lt;span style="color:gray;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="color:blue;"&gt;Class&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;C# is doing this because of the VC# wizards which work in the background when you add new items to your project. Here&amp;#39;s an article for one of the VS team descriping this issue &lt;a title="http://blogs.msdn.com/joen/archive/2004/03/15/90002.aspx" href="http://blogs.msdn.com/joen/archive/2004/03/15/90002.aspx"&gt;&lt;span style="text-decoration:underline;"&gt;http://blogs.msdn.com/joen/archive/2004/03/15/90002.aspx&lt;/span&gt;&lt;/a&gt;. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;Anyway it seems that C# IDE is handling the other files like our image in the same way. So our &lt;b&gt;Sunset.jpg&lt;/b&gt; image have been listed under the images namespace which actually it&amp;#39;s parent folder name. But in the VB.NET project &lt;b&gt;Sunset.jpg &lt;/b&gt;is being added to the root namespace never mind in any sub folder it exists. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;Ok, that&amp;#39;s it, the reason of all the misunderstanding. Many VB.NET developers reading posts or articles about embedded resources written in C# and they didn&amp;#39;t notice the different in embedded resources names between the VB.NET and C# projects. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:13pt;font-family:trebuchet ms;"&gt;The result &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;In a C# project embedded resources names follows this convention &lt;b&gt;(RootNampeSpace).(Path).(FileName).(Extension)&lt;/b&gt; where Path is the folders path in which this resource exist &lt;b&gt;&lt;i&gt;Root/Folder/SubFolder/.../ResourceFile&lt;/i&gt;&lt;/b&gt; .In A VB.NET project embedded resources names follows this convention &lt;b&gt;(RootNampeSpace).(FileName).(Extension) &lt;/b&gt;and the resource path does not affect its name. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;Hope that help. Happy asp.net &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;Huthaifa &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:10pt;font-family:trebuchet ms;"&gt;&amp;#160; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://paldev.net/aggbug.aspx?PostID=33" width="1" height="1"&gt;</description><category domain="http://paldev.net/blogs/hafanah/archive/tags/Resources/default.aspx">Resources</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Another simple use of extension methods!!</title><link>http://paldev.net/blogs/hafanah/archive/2008/03/26/another-simple-use-of-extension-methods.aspx</link><pubDate>Thu, 27 Mar 2008 01:43:00 GMT</pubDate><guid isPermaLink="false">de61d5c7-2e78-4eeb-b386-512fe742ab93:37</guid><dc:creator>Huthaifa Afanah</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/rsscomments.aspx?PostID=37</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://paldev.net/blogs/hafanah/commentapi.aspx?PostID=37</wfw:comment><comments>http://paldev.net/blogs/hafanah/archive/2008/03/26/another-simple-use-of-extension-methods.aspx#comments</comments><description>&lt;div class="code"&gt;While my team and I doing our daily work. One of our new team members asked that he needs the user to select a value from drop-down list and this value should be converted to a nullable integer value. &lt;/div&gt;  &lt;p&gt;The small issue he faces that he need to parse the value selected in one line of code and make sure that if the user does not select a value the default value will be parsed to &lt;font color="#0000ff"&gt;null&lt;/font&gt; and do not cause a problem -in each drop-down there is a &amp;quot;[Select]&amp;quot; item with empty string value&amp;#160; -&lt;/p&gt;  &lt;p&gt;I wondered a &lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;.Parse&lt;/font&gt; function returns &lt;font color="#0000ff"&gt;null&lt;/font&gt; when the parsed value is &lt;font color="#0000ff"&gt;null&lt;/font&gt;&amp;#160; but throws&amp;#160; &amp;quot;Input string was not in a correct format&amp;quot; exception when try to parse an empty string. And when use&lt;b&gt;&amp;#160;&lt;/b&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;.TryParse&lt;/font&gt;&amp;#160; it will result with 0 value when parsing operation failed.&lt;/p&gt;  &lt;p&gt;In such simple scenario extension methods proof it self. Simply we can create an extension method call it SafeParse for example ....&lt;/p&gt;  &lt;div class="code"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#0000ff"&gt;static&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;?&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#000000"&gt;SafeParse(&lt;/font&gt;&lt;font color="#0000ff"&gt;this&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#2b91af"&gt;String&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#000000"&gt;Value)&lt;/font&gt;&lt;font color="#808080"&gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;font color="#000000"&gt;{&lt;/font&gt;&lt;font color="#808080"&gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;font color="#0000ff"&gt;if&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;.IsNullOrEmpty(Value))&lt;/font&gt;&lt;font color="#808080"&gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#0000ff"&gt;null;&lt;/font&gt;&lt;font color="#808080"&gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;font color="#0000ff"&gt;else&lt;/font&gt;&lt;font color="#808080"&gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;.Parse(Value)&lt;/font&gt;&lt;font color="#0000ff"&gt;;&lt;/font&gt;&lt;font color="#808080"&gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;font color="#000000"&gt;}&lt;/font&gt;&amp;#160;&lt;/div&gt;  &lt;div class="code"&gt;&amp;#160;&lt;/div&gt;  &lt;div class="code"&gt;and then you could simply use it like this:&lt;/div&gt;  &lt;div class="code"&gt;&amp;#160;&lt;/div&gt;  &lt;div class="code"&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;?&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#000000"&gt;MyNullableValue&lt;/font&gt;&lt;font color="#0000ff"&gt;;&lt;/font&gt;&lt;font color="#808080"&gt;      &lt;br /&gt;&lt;/font&gt;&lt;font color="#000000"&gt;MyNullableValue&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;font color="#808080"&gt;&amp;#160;&lt;/font&gt;&lt;font color="#000000"&gt;DropDownList1.SelectedValue.SafeParse()&lt;/font&gt;&lt;font color="#0000ff"&gt;;&lt;/font&gt; &lt;/div&gt;  &lt;div class="code"&gt;&amp;#160;&lt;/div&gt;  &lt;div class="code"&gt;Extension methods provide a simple and easy use which will ease programmer day day work, and make simple issues disappear just like 1,2,3&amp;#160; &lt;/div&gt;  &lt;div class="code"&gt;&amp;#160;&lt;/div&gt;  &lt;div class="code"&gt;Thanks for VS2008,thanks for extension methods, thanks for Microsoft team &lt;/div&gt;  &lt;div class="code"&gt;&amp;#160;&lt;/div&gt;  &lt;div class="code"&gt;Happy programming...!!&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://paldev.net/aggbug.aspx?PostID=37" width="1" height="1"&gt;</description><category domain="http://paldev.net/blogs/hafanah/archive/tags/General+Development/default.aspx">General Development</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://paldev.net/blogs/hafanah/archive/tags/C_2300_/default.aspx">C#</category></item></channel></rss>