<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8549381580040834390</atom:id><lastBuildDate>Mon, 30 Mar 2026 06:59:41 +0000</lastBuildDate><category>Tips -Tricks</category><category>Technology</category><category>ASP.NET</category><category>Menu</category><category>Sitemap</category><category>iPhone</category><category>Ajax Control</category><category>FireFox 3 Feature</category><category>Firefox 3</category><category>Apple</category><category>Code</category><category>DetailView</category><category>FormView</category><category>Google</category><category>GridView</category><category>LINQ</category><category>Mozilla</category><category>SQL</category><title>Asp.Net Tips &amp; Tricks</title><description>Asp.net 2.0 Articles,Tips,Tricks,Code and more ...</description><link>http://aspnet-tips-tricks.blogspot.com/</link><managingEditor>noreply@blogger.com (kamal)</managingEditor><generator>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-1942410367086339935</guid><pubDate>Fri, 05 Sep 2008 13:32:00 +0000</pubDate><atom:updated>2008-09-05T06:42:38.475-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Technology</category><title>Microsoft Ad</title><description>Microsoft launched new ad featuring Jerry Seinfeld and Bill Gates.&lt;br /&gt;&lt;br /&gt;Microsoft plans to spend $300 million on ads and Jerry Seinfeld gets $10 million.&lt;br /&gt;&lt;br /&gt;I think this ad makes no sense.Just watch this ad&lt;br /&gt;&lt;br /&gt;&lt;object width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/afR5J7eskno&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;fs=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/afR5J7eskno&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;fs=1&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;&lt;/object&gt;</description><link>http://aspnet-tips-tricks.blogspot.com/2008/09/microsoft-ads.html</link><author>noreply@blogger.com (kamal)</author><thr:total>27</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-1802918419511642545</guid><pubDate>Wed, 03 Sep 2008 07:45:00 +0000</pubDate><atom:updated>2008-09-03T00:57:00.380-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Google</category><category domain="http://www.blogger.com/atom/ns#">Technology</category><title>Google Chrome - Internet browser</title><description>Google release new beta internet browser named &quot;&lt;strong&gt;Google Chrome&lt;/strong&gt;&quot;.&lt;br /&gt;&lt;br /&gt;Google Chrome is an open source web browser developed by Google. The name is derived from the graphical user interface frame, or &quot;chrome&quot;, of web browsers. The open source project behind Google Chrome is known as Chromium.&lt;br /&gt;&lt;br /&gt;Primary design goals were improvements in security, speed and stability compared to existing browsers. There were also extensive changes in the user interface.&lt;br /&gt;&lt;br /&gt;For more details &lt;a href=&quot;http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html&quot;&gt;Google Chrome&lt;/a&gt;</description><link>http://aspnet-tips-tricks.blogspot.com/2008/09/google-chrome-internet-browser.html</link><author>noreply@blogger.com (kamal)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-2918321708712781331</guid><pubDate>Wed, 23 Jul 2008 11:08:00 +0000</pubDate><atom:updated>2008-07-23T04:14:09.517-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">iPhone</category><title>Google Talk for iPhone</title><description>Gooogle released new version of Google Talk designed specifically for Apple iPhone.So now chat with your google friends from iPhone.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;It works right in your Safari browser, so there&#39;s no need to download or install anything -- just go to talk.google.com and sign in.*&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Google Apps users: visit http://talkgadget.google.com/a/your-domain.com/talkgadget/m from your iPhone&#39;s browser, but be sure to replace &#39;your-domain.com&#39; with your actual domain name.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/07/google-talk-for-iphone.html</link><author>noreply@blogger.com (kamal)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-1772642539357297189</guid><pubDate>Wed, 23 Jul 2008 10:22:00 +0000</pubDate><atom:updated>2008-07-23T03:31:43.458-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">iPhone</category><title>WordPress for iPhone</title><description>Worpress application is now available for iPhone.Wordpress for iPhone app works with both wordpress.com blogs and your self hosted wordpress blogs.From iPhone you can write posts, upload photos and edit your wordpress blogs.It is available for wordpress 2.5.1 or higher version. Download &lt;a href=&quot;http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=285073074&amp;mt=8&quot;&gt;WordPress for iPhone&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Video for WordPress iPhone&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;embed src=&quot;http://v.wordpress.com/GyIzZkju/fmt_std&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;400&quot; height=&quot;229&quot; flashvars=&quot;blog_domain=http://wpiphone.wordpress.com&amp;width=400&amp;height=229&quot;&gt; &lt;/embed&gt;</description><link>http://aspnet-tips-tricks.blogspot.com/2008/07/wordpress-for-iphone.html</link><author>noreply@blogger.com (kamal)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-5083353480020091923</guid><pubDate>Tue, 24 Jun 2008 12:05:00 +0000</pubDate><atom:updated>2008-06-24T05:19:44.028-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Technology</category><title>Nokia buys Symbian</title><description>Mobile phone maker Nokia Finland based announced today that it plans to acquire the remaining 52 % shares of Symbian (Symbain Os) that it does not already own for 264 million euros.(£208 million)&lt;br /&gt;&lt;br /&gt;For more info &lt;a href=&quot;http://www.techradar.com/news/phone-and-communications/nokia-buys-symbian-400424&quot;&gt;&lt;em&gt;Nokia buys Symbian&lt;/em&gt;&lt;/a&gt;</description><link>http://aspnet-tips-tricks.blogspot.com/2008/06/nokia-buys-symbian.html</link><author>noreply@blogger.com (kamal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-656198919490348799</guid><pubDate>Mon, 23 Jun 2008 06:45:00 +0000</pubDate><atom:updated>2008-06-22T23:57:27.660-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Technology</category><title>Yahoo mail Launches two new domains Rocketmail and Ymail</title><description>Yahoo mail Launches two new domains Rocketmail and Ymail.Rocketmail was one of the very first free Webmail services, acquired by Yahoo in 1997 ($80 million).And then Yahoo lauched Yahoo mail based on RecoketMail technology.&lt;br /&gt;&lt;br /&gt;Now Yahoo mail has three domains Yahoo,RocketMail and Ymail.Yahoo take this step to lauch new domains because e-mail demand is growing day by day.&lt;br /&gt;&lt;br /&gt;So,now just create e-mail address in yahoo as you wish.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/06/yahoo-mail-launches-two-new-domains.html</link><author>noreply@blogger.com (kamal)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-3550862622489088759</guid><pubDate>Mon, 23 Jun 2008 05:29:00 +0000</pubDate><atom:updated>2008-06-22T22:47:43.554-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Firefox 3</category><category domain="http://www.blogger.com/atom/ns#">FireFox 3 Feature</category><title>FireFox 3 Shortcuts</title><description>FireFox 3 Tips and tricks (keyboard shortcuts) to improve performance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Zoom In : &lt;em&gt;&lt;strong&gt;Ctrl + &quot;+&quot;&lt;/strong&gt;&lt;/em&gt; &lt;br /&gt;&lt;br /&gt;For Zoom Out : &lt;em&gt;&lt;strong&gt;Ctrl + &quot;-&quot;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Open a new empty tab : &lt;em&gt;&lt;strong&gt;Ctrl + T&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Close a tab : &lt;em&gt;&lt;strong&gt;Ctrl + W&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Reopen a Closed tab : &lt;strong&gt;&lt;em&gt;Ctrl + Shift + T&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Move cursor to the location bar : &lt;em&gt;&lt;strong&gt;Ctrl + L&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Move cursor to the search box : &lt;em&gt;&lt;strong&gt;Ctrl + K&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Scroll down the page : &lt;em&gt;&lt;strong&gt;&quot;Space Bar&quot;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Scroll up the page  : &lt;em&gt;&lt;strong&gt;Shift + &quot;Space Bar&quot;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Refresh the page  : &lt;em&gt;&lt;strong&gt;Ctrl + R&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Back : &lt;em&gt;&lt;strong&gt;Alt + &quot;&lt;-&quot;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Forward : &lt;em&gt;&lt;strong&gt;Alt + &quot;-&gt;&quot;&lt;/strong&gt;&lt;/em&gt;</description><link>http://aspnet-tips-tricks.blogspot.com/2008/06/firefox-3-shortcuts.html</link><author>noreply@blogger.com (kamal)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-5123283474325006729</guid><pubDate>Fri, 20 Jun 2008 11:41:00 +0000</pubDate><atom:updated>2008-06-20T04:44:32.149-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Technology</category><title>Joshua Schacter,Delicious founder leaves Yahoo</title><description>Joshua Schacter who is Delicious founder leaves Yahoo.Delicious  is social-bookmarking website and which is acquired by Yahoo in 2005. &lt;br /&gt;&lt;br /&gt;Recently,Yahoo released Delicious plug-in for Internet Explorer.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/06/joshua-schacterdelicious-founder-leaves.html</link><author>noreply@blogger.com (kamal)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-4864628702112979703</guid><pubDate>Fri, 20 Jun 2008 11:40:00 +0000</pubDate><atom:updated>2008-06-20T04:45:10.541-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Technology</category><title>Delicious plug-in for Internet Explorer</title><description>Yahoo released a version of its Delicious plug-in for Internet Explorer (Delicious Bookmarks Add-on for Internet Explorer). &lt;br /&gt;&lt;br /&gt;This extension works with XP and Vista for IE6 and IE7. IE8 should also work, but IE8 support is still in beta, since that browser isn’t final. &lt;br /&gt;&lt;br /&gt;For more details on the IE extension, check out our original &lt;a href=&quot;http://blog.delicious.com/blog/2008/05/internet-explorer-and-delicious.html&quot;&gt;beta announcement&lt;/a&gt;. For the eager and impatient, download from our &lt;a href=&quot;http://del.icio.us/help/ie/extensionnew&quot;&gt;website&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Download and Enjoy!</description><link>http://aspnet-tips-tricks.blogspot.com/2008/06/delicious-plug-in-for-internet-explorer.html</link><author>noreply@blogger.com (kamal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-1586502460495309545</guid><pubDate>Fri, 20 Jun 2008 11:07:00 +0000</pubDate><atom:updated>2008-06-20T04:11:14.596-07:00</atom:updated><title>World population 7 billion in 2012</title><description>The world&#39;s population will reach 7 billion in 2012, even as the global community struggles to satisfy its appetite for natural resources, according to a new government projection. &lt;br /&gt;&lt;br /&gt;There are 6.7 billion people in the world today. The United States ranks third, with 304 million, behind China and India, according to projections released Thursday by the Census Bureau.&lt;br /&gt;&lt;br /&gt;The world&#39;s population surpassed 6 billion in 1999, meaning it will take only 13 years to add a billion people.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/06/world-population-7-billion-in-2012.html</link><author>noreply@blogger.com (kamal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-228365592715401468</guid><pubDate>Tue, 17 Jun 2008 12:39:00 +0000</pubDate><atom:updated>2008-06-17T05:42:35.707-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Apple</category><category domain="http://www.blogger.com/atom/ns#">iPhone</category><title>Apple iPhone secret phone codes</title><description>&lt;strong&gt;*3001#12345#*&lt;/strong&gt; and tap Call. Enter Field Mode.&lt;br /&gt;&lt;br /&gt;Field mode reveals many of the inner settings of your iPhone, specifically up-to-date network and cell information.&lt;br /&gt;&lt;strong&gt;*#06#&lt;/strong&gt; Displays your IMEI. No need to tap Call.&lt;br /&gt;&lt;br /&gt;IMEI is the unique identifier for your cell phone hardware. Together with your SIM information it identifies you to the provider network.&lt;br /&gt;&lt;strong&gt;*777#&lt;/strong&gt; and tap Call. Account balance for prepaid iPhone.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;*225#&lt;/strong&gt; and tap Call. Bill Balance. (Postpaid only)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;*646#&lt;/strong&gt; and tap Call. Check minutes. (Postpaid only)&lt;br /&gt;&lt;br /&gt;These three are pretty self explanatory.&lt;br /&gt;&lt;strong&gt;*#21#&lt;/strong&gt; and tap Call. Setting interrogation for call forwards.&lt;br /&gt;&lt;br /&gt;Discover the settings for your call forwarding. You&#39;ll see whether you have voice, data, fax, sms, sync, async, packet access, and pad access call forwarding enabled or disabled.&lt;br /&gt;&lt;strong&gt;*#30# &lt;/strong&gt;and tap Call. Calling line presentation check.&lt;br /&gt;&lt;br /&gt;This displays whether you have enabled or disabled the presentation of the calling line, presumably the number of the party placing the call.&lt;br /&gt;&lt;strong&gt;*#76#&lt;/strong&gt; and tap Call. Check whether the connected line presentation is enabled or not.&lt;br /&gt;&lt;br /&gt;State whether the connected line presentation is enabled or disabled. Presumably similar to the calling line presentation.&lt;br /&gt;&lt;strong&gt;*#43#&lt;/strong&gt; and tap Call. Determine if call waiting is enabled.&lt;br /&gt;&lt;br /&gt;Displays call waiting status for voice, data, fax, sms, sync data, async data, packet access and pad access. Each item is either enabled or disabled.&lt;br /&gt;&lt;strong&gt;*#61#&lt;/strong&gt; and tap Call. Check the number for unanswered calls.&lt;br /&gt;&lt;br /&gt;Show the number for voice call forwarding when a call is unanswered. Also show the options for data, fax, sms, sync, async, packet access and pad access.&lt;br /&gt;&lt;strong&gt;*#62#&lt;/strong&gt; and tap Call. Check the number for call forwarding if no service is available.&lt;br /&gt;&lt;br /&gt;Just like the previous, except for no-service rather than no-answer situations.&lt;br /&gt;&lt;strong&gt;*#67#&lt;/strong&gt; and tap Call. Check the number for call forwarding when the iPhone is busy.&lt;br /&gt;&lt;br /&gt;And again, but for when the iPhone is busy.&lt;br /&gt;&lt;strong&gt;*#33#&lt;/strong&gt; and tap Call. Check for call control bars.&lt;br /&gt;&lt;br /&gt;Check all the usual suspects (voice, data, fax, sms, etc) to see whether barring is enabled or disabled for outgoing.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/06/apple-iphone-secret-phone-codes.html</link><author>noreply@blogger.com (kamal)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-4501956446410557590</guid><pubDate>Tue, 17 Jun 2008 12:28:00 +0000</pubDate><atom:updated>2008-06-17T05:32:23.744-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Firefox 3</category><category domain="http://www.blogger.com/atom/ns#">FireFox 3 Feature</category><category domain="http://www.blogger.com/atom/ns#">Mozilla</category><title>Mozilla : FireFox 3</title><description>Mozilla plans to release Firefox 3 on Tuesday , 17 June 2008. &lt;br /&gt;&lt;br /&gt;Firefox 3 Release Candidate 3 is available in more than 45 languages as a public preview release intended for developer testing and community feedback. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Features in FireFox 3 (What&amp;#39;s New in Firefox&amp;nbsp;3)&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;-&gt;One-click site info &lt;br /&gt;-&gt;Malware Protection &lt;br /&gt;-&gt;New Web Forgery Protection page &lt;br /&gt;-&gt;New SSL error pages &lt;br /&gt;-&gt;Anti-virus integration &lt;br /&gt;-&gt;Secure add-on updates &lt;br /&gt;-&gt;Add-ons and Plugin version check &lt;br /&gt;-&gt;Full page zoom &lt;br /&gt;-&gt;New Download Manager &lt;br /&gt;-&gt;Save what you were doing &lt;br /&gt;-&gt;Text selection improvements: multiple text selections can be made with Ctrl/Cmd; double-click drag selects in &amp;quot;word-by-word&amp;quot; mode; triple-clicking selects a paragraph. &lt;br /&gt; &lt;br /&gt;And many more&amp;nbsp;very useful features. For more Feature &lt;strong&gt;&lt;a href=&quot;http://www.mozilla.com/en-US/firefox/3.0rc3/releasenotes/#whatsnew&quot;&gt;FireFox 3&lt;/a&gt;&lt;/strong&gt;.Just Download FireFox 3 and enjoy it.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/06/mozilla-firefox-3.html</link><author>noreply@blogger.com (kamal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-3410498379517830919</guid><pubDate>Wed, 28 May 2008 09:44:00 +0000</pubDate><atom:updated>2008-05-28T02:56:18.024-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Menu</category><category domain="http://www.blogger.com/atom/ns#">Sitemap</category><title>Site Navigation using SiteMapPath control in ASP.Net 2.0</title><description>This article explains how to do site navigation for your web site&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Asp.net 2.0 has cool control for site navigation is SiteMapPath control.You can find SiteMapPath control in the Toolbox under the Navigation category.Using this control you can find where are you in this website.&lt;br /&gt;First Add Web.sitemap in your project.Web.Sitemap has Title,Url and description attributes.like this,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Site Map&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;&lt;br /&gt;&amp;lt;siteMap xmlns=&quot;http://schemas.microsoft.com/AspNet/SiteMap-File-1.0&quot; &amp;gt;&lt;br /&gt;  &amp;lt;siteMapNode url=&quot;~/Default.aspx&quot; title=&quot;Home&quot;  description=&quot;Home&quot;&amp;gt;&lt;br /&gt;  &amp;lt;siteMapNode url=&quot;~/InsideUs.aspx&quot; title=&quot;Inside Us&quot;  description=&quot;&quot;&amp;gt;&lt;br /&gt;      &amp;lt;siteMapNode url=&quot;~/VisionMission.aspx&quot; title=&quot;Vision &amp;amp; Mission&quot;  description=&quot;&quot;/&amp;gt;&lt;br /&gt;      &amp;lt;siteMapNode url=&quot;~/Culture.aspx&quot; title=&quot;Culture&quot;  description=&quot;&quot;/&amp;gt;&lt;br /&gt;      &amp;lt;siteMapNode url=&quot;~/Trust.aspx&quot; title=&quot;Trust&quot;  description=&quot;&quot;/&amp;gt;&lt;br /&gt;      &amp;lt;siteMapNode url=&quot;~/BusinessPriciples.aspx&quot; title=&quot;Business Principles&quot;  description=&quot;&quot;/&amp;gt;&lt;br /&gt;   &amp;lt;/siteMapNode&amp;gt;&lt;br /&gt;   &amp;lt;siteMapNode url=&quot;~/contactus.aspx&quot; title=&quot;Contact US&quot; description=&quot;Contact US&quot;/&amp;gt;&lt;br /&gt;   &amp;lt;siteMapNode url=&quot;~/aboutus.aspx&quot; title=&quot;About Us&quot;  description=&quot;About Us&quot;/&amp;gt;&lt;br /&gt; &amp;lt;/siteMapNode&amp;gt;&lt;br /&gt;&amp;lt;/siteMap&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Master Page for the application&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Now add the master page in your project and then drag and drop the SiteMapPath control.like this,&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:SiteMapPath ID=&quot;SiteMapPath1&quot; runat=&quot;server&quot; Font-Names=&quot;Verdana&quot; Font-Size=&quot;0.8em&quot; PathSeparator=&quot; : &quot;&amp;gt;&lt;br /&gt;  &amp;lt;PathSeparatorStyle Font-Bold=&quot;True&quot; ForeColor=&quot;#5D7B9D&quot; /&amp;gt;&lt;br /&gt;  &amp;lt;CurrentNodeStyle ForeColor=&quot;#333333&quot; /&amp;gt;&lt;br /&gt;  &amp;lt;NodeStyle Font-Bold=&quot;True&quot; ForeColor=&quot;#7C6F57&quot; /&amp;gt;&lt;br /&gt;  &amp;lt;RootNodeStyle Font-Bold=&quot;True&quot; ForeColor=&quot;#5D7B9D&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/asp:SiteMapPath&amp;gt;&lt;br /&gt;&lt;br /&gt;The SiteMapPath control will automatically bind itself to the Web.sitemap file.If you use default SiteMap provider will &lt;br /&gt;&lt;br /&gt;automatically be used by SiteMapPath control and also you can set the SiteMapProvider property of SiteMapPath control.&lt;br /&gt;&lt;br /&gt;Now when you are on Culture.aspx page then SiteMapPath control display like, &lt;strong&gt;Home : Inside Us : Culture&lt;/strong&gt;&lt;br /&gt;So you can easily go from &quot;Culture&quot; page to &quot;Home&quot; page or &quot;Inside Us&quot; page (root node) using SiteMapPath Control.&lt;br /&gt;&lt;br /&gt;Here,I set &lt;strong&gt;PathSeparator&lt;/strong&gt; property of SiteMapPath control to &lt;strong&gt;:&lt;/strong&gt; by default is &lt;strong&gt;&amp;gt;&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PathDirection&lt;/strong&gt; property use for in which direction you want to display link.&lt;strong&gt;CurrentToRoot&lt;/strong&gt; display link start from current node to Parent node like &lt;strong&gt;Culture : Inside Us : Home&lt;/strong&gt;.And other is &lt;strong&gt;RootToCurrent&lt;/strong&gt; display link start from Parent node to Current node like &lt;strong&gt;Home : Inside Us : Culture&lt;/strong&gt;.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/05/site-navigation-using-sitemappath.html</link><author>noreply@blogger.com (kamal)</author><thr:total>73</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-2811352722942651396</guid><pubDate>Wed, 28 May 2008 09:43:00 +0000</pubDate><atom:updated>2008-05-28T02:44:43.269-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Menu</category><category domain="http://www.blogger.com/atom/ns#">Sitemap</category><title>How to create Menu based on Sitemap and Roles</title><description>The following code sample shows how to create Menu based on Sitemap and Roles.&lt;br /&gt;&lt;br /&gt;The combination of ASP.NET role management and ASP.NET URL authorization provide&lt;br /&gt;a way to restrict access to Web files based on security roles.&lt;br /&gt;&lt;br /&gt;Security trimming is a very cool feature which allows you to hide the urls based&lt;br /&gt;on the users roles.&lt;br /&gt;&lt;br /&gt;First create &lt;strong&gt;Web.sitemap&lt;/strong&gt; in website also add roles for access url.&lt;br /&gt;&lt;br /&gt;    &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;siteMap xmlns=&quot;http://schemas.microsoft.com/AspNet/SiteMap-File-1.0&quot; &amp;gt;&lt;br /&gt;          &amp;lt;siteMapNode url=&quot;~/Default.aspx&quot; title=&quot;Home&quot;  description=&quot;Home&quot;&amp;gt;&lt;br /&gt;           &amp;lt;siteMapNode url=&quot;~/contactus.aspx&quot; title=&quot;Contact US&quot; description=&quot;Contact US&quot; /&amp;gt;&lt;br /&gt;           &amp;lt;siteMapNode url=&quot;~/aboutus.aspx&quot; title=&quot;About Us&quot;  description=&quot;About Us&quot; roles=&quot;*&quot;/&amp;gt;&lt;br /&gt;           &amp;lt;siteMapNode url=&quot;~/articles.aspx&quot; title=&quot;Articles&quot;  description=&quot;Articles&quot;/&amp;gt;&lt;br /&gt;           &amp;lt;siteMapNode url=&quot;~/admin.aspx&quot; title=&quot;Admin&quot;  description=&quot;Articles&quot; roles=&quot;Admin&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/siteMapNode&amp;gt;&lt;br /&gt;        &amp;lt;/siteMap&amp;gt;&lt;br /&gt;&lt;br /&gt;In above site admin.aspx is display only to person who has Admin role.and roles&lt;br /&gt;&quot;*&quot; means display for everyone.&lt;br /&gt;&lt;br /&gt;Now,define sitemap providers in web.config file and enable security trimming &lt;br /&gt;&lt;br /&gt;(&lt;strong&gt;securityTrimmingEnabled&lt;/strong&gt; is set to true ).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;siteMap defaultProvider=&quot;XmlSiteMapProvider&quot; enabled=&quot;true&quot;&amp;gt;&lt;br /&gt;  &amp;lt;providers&amp;gt; &amp;lt;add name=&quot;UserMenuSiteMap&quot; description=&quot;Used for Menu&quot;&lt;br /&gt;type=&quot;System.Web.XmlSiteMapProvider&quot; siteMapFile=&quot;Web.siteMap&quot; &lt;strong&gt;securityTrimmingEnabled=&quot;true&lt;/strong&gt;&quot;/&amp;gt;&lt;br /&gt;                       &amp;lt;/providers&amp;gt;             &lt;br /&gt;                    &amp;lt;/siteMap&amp;gt;</description><link>http://aspnet-tips-tricks.blogspot.com/2008/05/how-to-create-menu-based-on-sitemap-and.html</link><author>noreply@blogger.com (kamal)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-9011882111479206047</guid><pubDate>Wed, 28 May 2008 09:39:00 +0000</pubDate><atom:updated>2008-05-28T02:58:43.593-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Menu</category><category domain="http://www.blogger.com/atom/ns#">Sitemap</category><title>Menu based on Sitemap</title><description>For creating menu based on sitemap,Firstly create &lt;b&gt;Web.sitemap (Define Sitemap)&lt;/b&gt;.Web.Sitemap has Title,Url and description attributes.&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;&lt;br /&gt;&amp;lt;siteMap xmlns=&quot;http://schemas.microsoft.com/AspNet/SiteMap-File-1.0&quot; &amp;gt;&lt;br /&gt;  &amp;lt;siteMapNode url=&quot;~/Default.aspx&quot; title=&quot;Home&quot;  description=&quot;Home&quot;&amp;gt;&lt;br /&gt;   &amp;lt;siteMapNode url=&quot;~/contactus.aspx&quot; title=&quot;Contact US&quot; description=&quot;Contact US&quot;/&amp;gt;&lt;br /&gt;   &amp;lt;siteMapNode url=&quot;~/aboutus.aspx&quot; title=&quot;About Us&quot;  description=&quot;About Us&quot;/&amp;gt;&lt;br /&gt;   &amp;lt;siteMapNode url=&quot;~/articles.aspx&quot; title=&quot;Articles&quot;  description=&quot;Articles&quot;/&amp;gt;&lt;br /&gt; &amp;lt;/siteMapNode&amp;gt;&lt;br /&gt;&amp;lt;/siteMap&amp;gt;&lt;br /&gt;&lt;br /&gt;Then,in master page or .aspx drag and drop asp.net control and SiteMapDataSource.And set menu DataSourceID property to SiteMapDataSource.&lt;br /&gt;&lt;br /&gt;  &amp;lt;asp:Menu ID=&quot;Menu1&quot; runat=&quot;server&quot; DataSourceID=&quot;SiteMapDataSource1&quot; Font-Names=&quot;Verdana&quot; &lt;/br&gt; Font-Size=&quot;0.8em&quot; ForeColor=&quot;#7C6F57&quot;    Orientation=&quot;Horizontal&quot; StaticSubMenuIndent=&quot;10px&quot; &lt;/br&gt;BackColor=&quot;#F7F6F3&quot; DynamicHorizontalOffset=&quot;2&quot; StaticDisplayLevels=&quot;2&quot;&amp;gt;&amp;lt;/asp:Menu&amp;gt;&lt;br /&gt;&lt;/br&gt;&lt;/br&gt;&lt;br /&gt;&amp;lt;asp:SiteMapDataSource ID=&quot;SiteMapDataSource1&quot; runat=&quot;server&quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;When you required Horizontal or Vertical menu then just set Orientation property of menu.By default this property set to Vertical.&lt;br /&gt;&lt;br /&gt;In code we use DynamicHorizontalOffset property of menu to Gets or sets the number of pixels to shift a dynamic menu horizontally relative to its parent menu item.&lt;br /&gt;&lt;br /&gt;In code we use StaticDisplayLevels property of menu to specify the number of menu levels to display in a static menu.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/05/menu-based-on-sitemap.html</link><author>noreply@blogger.com (kamal)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-3674732337102063794</guid><pubDate>Wed, 28 May 2008 09:30:00 +0000</pubDate><atom:updated>2008-05-28T02:39:12.550-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL</category><category domain="http://www.blogger.com/atom/ns#">Tips -Tricks</category><title>Find Nth highest salary from table</title><description>In interview you can faced question like to give solution(query) for find Nth highest salary from given employee table.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;TO find out 3rd highest salary from table&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;--Find 3rd highest salary&lt;br /&gt;SELECT TOP 1 salary &lt;br /&gt;    FROM (&lt;br /&gt;    SELECT DISTINCT TOP 3 salary &lt;br /&gt;        FROM tblSalary&lt;br /&gt;        ORDER BY salary DESC) S &lt;br /&gt;    ORDER BY salary&lt;br /&gt;&lt;br /&gt;&lt;b&gt;General form to find to Nth highest salary from table&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;--Find Nth highest salary&lt;br /&gt;SELECT TOP 1 salary FROM (&lt;br /&gt;    SELECT DISTINCT TOP N salary FROM tblSalary ORDER BY salary DESC) S &lt;br /&gt;    ORDER BY salary&lt;br /&gt;&lt;br /&gt;There are many solution to solve to this but above solution is easiest. &lt;br /&gt;Take other possible solution,&lt;br /&gt;&lt;br /&gt;SELECT MIN(salary) FROM tblSalary WHERE salary IN&lt;br /&gt;(SELECT DISTINCT TOP 3 salary FROM tblSalary ORDER BY salary DESC)&lt;br /&gt;&lt;br /&gt;  --or--&lt;br /&gt;&lt;br /&gt;SELECT MIN(salary) FROM &lt;br /&gt;(SELECT DISTINCT TOP 3 salary FROM tblSalary ORDER BY salary DESC) S</description><link>http://aspnet-tips-tricks.blogspot.com/2008/05/find-nth-highest-salary-from-table.html</link><author>noreply@blogger.com (kamal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-5105284550680173266</guid><pubDate>Thu, 03 Apr 2008 13:36:00 +0000</pubDate><atom:updated>2008-04-03T06:44:41.941-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">LINQ</category><title>LINQ Introduction</title><description>&lt;b&gt;Language Integrated Query (LINQ)&lt;/b&gt;, a new query language feature in .net 3.5.&lt;br /&gt;&lt;br /&gt;You can use it to retrieve data from an array or collection or any data source that supports IEnumerable or IQueryable.&lt;br /&gt;&lt;br /&gt;Let&#39;s see example how to use LINQ in string array.We have string array of country like this,&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;  Dim countries As String() = {&quot;Australia&quot;, &quot;Brazil&quot;, &quot;China&quot;, &quot;Japan&quot;, &quot;India&quot;, &quot;United States&quot;, &quot;United Kingdom&quot;}&lt;br /&gt;        Dim data = From country In countries Where country.StartsWith(&quot;Uni&quot;) Select country.ToUpper&lt;br /&gt;        Response.Write(&quot;&lt;b&gt;Country List&lt;/b&gt;&amp;lt;/br&quot;&amp;gt;&quot;)&lt;br /&gt;        For Each country As String In data&lt;br /&gt;            Response.Write(country &amp; &quot;&amp;lt;/br&quot;&amp;gt;&quot;)&lt;br /&gt;        Next&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here, you have only change &quot;LINQ Query&quot; with query that discuss below.&lt;br /&gt;&lt;br /&gt;==&gt; By using LINQ you can retrive data from array. Below LINQ equivalent to SELECT * statement  of SQL Server.&lt;br /&gt;&lt;br /&gt;       &lt;b&gt;  From country In countries Select country&lt;/b&gt;&lt;br /&gt;         &lt;br /&gt;==&gt; You can also use conditional statement in array to get data.To retrive country list that have string length less than 6.&lt;br /&gt;&lt;br /&gt;         &lt;b&gt; From country In countries Where country.Length &amp;lt; 6 Select country&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;==&gt; You can also sort an array Ascending/Descending.&lt;br /&gt;&lt;br /&gt;          &lt;b&gt; From country In countries Order By country Descending Select country&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;==&gt; To retrive Country name that start with &quot;UNI&quot; and country name in Upper case.&lt;br /&gt;&lt;br /&gt;         &lt;b&gt; From country In countries Where country.StartsWith(&quot;Uni&quot;) Select country.ToUpper&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here, I have explain how use LINQ.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/04/linq-introduction.html</link><author>noreply@blogger.com (kamal)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-6254808717467976017</guid><pubDate>Tue, 26 Feb 2008 11:57:00 +0000</pubDate><atom:updated>2008-02-26T03:59:11.593-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ajax Control</category><category domain="http://www.blogger.com/atom/ns#">Tips -Tricks</category><title>Enable/Disable RequiredFieldValidator with Javascript</title><description>Sometimes we need to Enable or Disable validation on client side.For that use &lt;b&gt;ValidatorEnable &lt;/b&gt; function in the Asp.net javacsript Script Library.&lt;br /&gt;&lt;br /&gt;For that set  EnableClientScript property of validator to True.&lt;br /&gt;&lt;br /&gt;Here i give example for this:&lt;br /&gt;&lt;br /&gt;I have a page with a couple of radio buttons.On radio button selection i want to enable/disable validation.&lt;br /&gt;&lt;br /&gt;In example if i select Email radio button then Email div will display and only txtEmail textbox validator is enabled.&lt;br /&gt;&lt;br /&gt;Java Script for this:&lt;br /&gt;&lt;br /&gt;&lt;b&gt; &amp;lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;function autoSelect(control,type) &lt;br /&gt;{ &lt;br /&gt;if(type==&quot;Email&quot;)&lt;br /&gt;{&lt;br /&gt; document.getElementById(&#39;Email&#39;).style.display=&quot;block&quot;;&lt;br /&gt; document.getElementById(&#39;PhoneNo&#39;).style.display=&quot;none&quot;;&lt;br /&gt; ValidatorEnable(document.getElementById(&quot;RequiredFieldValidator1&quot;), true);&lt;br /&gt; ValidatorEnable(document.getElementById(&quot;RequiredFieldValidator2&quot;), false);&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;else&lt;br /&gt; {&lt;br /&gt; document.getElementById(&#39;Email&#39;).style.display=&quot;none&quot;;&lt;br /&gt; document.getElementById(&#39;PhoneNo&#39;).style.display=&quot;block&quot;;&lt;br /&gt; ValidatorEnable(document.getElementById(&quot;RequiredFieldValidator1&quot;), false);&lt;br /&gt; ValidatorEnable(document.getElementById(&quot;RequiredFieldValidator2&quot;), true);&lt;br /&gt; }&lt;br /&gt;} &lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt; &lt;/b&gt;&lt;br /&gt;Code for this:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;     Email :&lt;br /&gt;        &amp;lt;input type=&quot;radio&quot; id=&quot;RadioButton1&quot; runat=&quot;server&quot; value=&quot;Plan1&quot; name=&quot;Plan&quot; onclick=&quot;autoSelect(this,&#39;Email&#39;)&quot; checked /&amp;gt;&lt;br /&gt;        PhoneNo :&lt;br /&gt;        &amp;lt;input type=&quot;radio&quot; id=&quot;RadioButton2&quot; runat=&quot;server&quot; value=&quot;Plan1&quot; name=&quot;Plan&quot; onclick=&quot;autoSelect(this,&#39;PhoneNo&#39;)&quot; /&amp;gt;&lt;br /&gt;        &amp;lt;div id=&quot;Email&quot;&amp;gt;&lt;br /&gt;            Email &amp;lt;asp:TextBox ID=&quot;txtEmail&quot; runat=&quot;server&quot; /&amp;gt;&lt;br /&gt;            &amp;lt;asp:RequiredFieldValidator ID=&quot;RequiredFieldValidator1&quot; runat=&quot;server&quot; ErrorMessage=&quot;Email Required&quot;&lt;br /&gt;                ControlToValidate=&quot;txtEmail&quot; EnableClientScript=&quot;true&quot; ValidationGroup=&quot;vgSubmit&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;div id=&quot;PhoneNo&quot; style=&quot;display:none&quot;&amp;gt;&lt;br /&gt;           PhoneNo &amp;lt;asp:TextBox ID=&quot;txtPhoneNo&quot; runat=&quot;server&quot; /&amp;gt;&lt;br /&gt;            &amp;lt;asp:RequiredFieldValidator ID=&quot;RequiredFieldValidator2&quot; runat=&quot;server&quot; ErrorMessage=&quot;PhoneNo Required&quot;&lt;br /&gt;                ControlToValidate=&quot;txtPhoneNo&quot; EnableClientScript=&quot;true&quot; ValidationGroup=&quot;vgSubmit&quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;asp:Button ID=&quot;btnSubmit&quot; runat=&quot;server&quot; Text=&quot;Button&quot; ValidationGroup=&quot;vgSubmit&quot;/&amp;gt;&lt;br /&gt;&lt;/b&gt;</description><link>http://aspnet-tips-tricks.blogspot.com/2008/02/enabledisable-requiredfieldvalidator.html</link><author>noreply@blogger.com (kamal)</author><thr:total>38</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-8845008568448013299</guid><pubDate>Tue, 22 Jan 2008 10:35:00 +0000</pubDate><atom:updated>2008-06-20T04:46:36.395-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DetailView</category><category domain="http://www.blogger.com/atom/ns#">FormView</category><category domain="http://www.blogger.com/atom/ns#">GridView</category><category domain="http://www.blogger.com/atom/ns#">Tips -Tricks</category><title>DateTime Formatting in GridView,DetailView,FormView</title><description>In Asp.Net 2.0 direct datetime formatting for bound column not possible.&lt;br /&gt;&lt;br /&gt;To format column into datatime you have to set &lt;strong&gt;HtmlEncode=&quot;False&quot;&lt;/strong&gt; property of BoundField.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Reason behind for this is bydefault data is Html Encoded that prevents to format date.So, set HtmlEncode to False.</description><link>http://aspnet-tips-tricks.blogspot.com/2008/01/datetime-formatting-in.html</link><author>noreply@blogger.com (kamal)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-1122767442653225401</guid><pubDate>Sat, 05 Jan 2008 09:45:00 +0000</pubDate><atom:updated>2008-01-05T02:02:24.650-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Tips -Tricks</category><title>File Download dialog box</title><description>Code to open a &quot;save as..&quot; file download dialog box in asp.net 2.&lt;br /&gt;Here,I create a vb.net function for to open file download dialog box. &lt;br /&gt;&lt;br /&gt;Use System.IO class for file system. Function argument accepts a File virtual path not physical path.&lt;br /&gt;&lt;br /&gt;This code for only .txt file but you also use this code for more extension file.For that change only ContentType.&lt;br /&gt;&lt;br /&gt;.htm,.html =&gt; &quot;text/HTML&quot;&lt;br /&gt;.txt =&gt; &quot;text/plain&quot;&lt;br /&gt;.doc,.rtf =&gt; &quot;Application/msword&quot;&lt;br /&gt;.csv,.xls =&gt; &quot;Application/x-msexcel&quot;&lt;br /&gt;.pdf =&gt;&quot;Application/pdf&quot;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Function DisplayDownloadDialog(ByVal PathVirtual As String)&lt;br /&gt;&lt;br /&gt;        Dim strPhysicalPath As String&lt;br /&gt;        Dim objFileInfo As System.IO.FileInfo&lt;br /&gt;        Try&lt;br /&gt;            strPhysicalPath = Server.MapPath(PathVirtual)&lt;br /&gt;            &#39;exit if file does not exist&lt;br /&gt;            If Not System.IO.File.Exists(strPhysicalPath) _&lt;br /&gt;                 Then Exit Function&lt;br /&gt;            objFileInfo = New System.IO.FileInfo(strPhysicalPath)&lt;br /&gt;&lt;br /&gt;            Response.Clear()&lt;br /&gt;            Response.ClearHeaders()&lt;br /&gt;            Response.ClearContent()&lt;br /&gt;            &#39;Add Headers to enable dialog display&lt;br /&gt;            Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=&quot; &amp; _&lt;br /&gt;                objFileInfo.Name)&lt;br /&gt;            Response.AddHeader(&quot;Content-Length&quot;, objFileInfo.Length.ToString())&lt;br /&gt;&lt;br /&gt;            &lt;strong&gt;Response.ContentType = &quot;Text / plain&quot;&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;           Response.WriteFile(objFileInfo.FullName)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        Catch&lt;br /&gt;            &#39;on exception take no action&lt;br /&gt;            &#39;you can implement differently&lt;br /&gt;        Finally&lt;br /&gt;&lt;br /&gt;            Response.End()&lt;br /&gt;&lt;br /&gt;        End Try&lt;br /&gt;    End Function</description><link>http://aspnet-tips-tricks.blogspot.com/2008/01/file-download-dialog-box.html</link><author>noreply@blogger.com (kamal)</author><thr:total>10</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-671510014734673965</guid><pubDate>Thu, 20 Dec 2007 06:02:00 +0000</pubDate><atom:updated>2007-12-19T22:31:33.028-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ajax Control</category><title>ASP.NET Ajax Control (TextBoxWatermarkExtender,ValidatorCalloutExtender)</title><description>Here I demonstrate how to use AJAX Control TextBoxWatermarkExtender and ValidatorCalloutExtender in ASP.NET.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt; asp:TextBox ID=&quot;txtFname&quot; runat=&quot;server&quot;/ &gt;&lt;br /&gt;    &lt; asp:RequiredFieldValidator ID=&quot;rfvFname&quot; runat=&quot;server&quot; ErrorMessage=&quot;Enter First Name&quot;&lt;br /&gt;        ControlToValidate=&quot;txtFname&quot; Display=&quot;None&quot; ValidationGroup=&quot;vgCheck&quot;/ &gt;&lt;br /&gt;    &lt; ajaxToolkit:TextBoxWatermarkExtender ID=&quot;twFname&quot; runat=&quot;server&quot; TargetControlID=&quot;txtFname&quot;&lt;br /&gt;        WatermarkText=&quot;Enter First Name&quot;/ &gt;&lt;br /&gt;    &lt; ajaxToolkit:ValidatorCalloutExtender ID=&quot;vcFname&quot; runat=&quot;server&quot; TargetControlID=&quot;rfvFname&quot;/ &gt;&lt;br /&gt;    &lt; br / &gt;&lt;br /&gt;    &lt; asp:Button ID=&quot;btnSubmit&quot; runat=&quot;server&quot; Text=&quot;Submit&quot; ValidationGroup=&quot;vgCheck&quot; / &gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;TextBoxWatermarkExtender :&lt;/strong&gt; This Ajax control attached to Textbox control to get WaterMark behavior. When Textbox control is empty it display Watermark text.To attach TextBoxWatermarkExtender to TextBox set TargetControlId  of TextBoxWatermarkExtender to particular TextBox. &lt;br /&gt;&lt;br /&gt;Here,I set TargetControlID of twFname to txtFname and set WatermarkText for txtFname.&lt;br /&gt;You can also use Css Class with watermark contol.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ValidatorCalloutExtender :&lt;/strong&gt; This Ajax control enhances the functionality of existing ASP.NET validators. To use this control, add an input field and a validator control as you normally would. Then add the ValidatorCallout and set its TargetControlID property to reference the validator control. &lt;br /&gt;&lt;br /&gt;Here, I use rfvFname RequiredFieldValidator control to validate txtFname TextBox control. To use ValidatorCalloutExtender I set TargetControlID to rfvFname RequiredFieldValidator.&lt;br /&gt;&lt;br /&gt;So,both control TextBoxWatermarkExtender,ValidatorCalloutExtender ASP.NET AJAX Control is very easy to understand and use to it.</description><link>http://aspnet-tips-tricks.blogspot.com/2007/12/aspnet-ajax-control-textboxwatermarkext.html</link><author>noreply@blogger.com (kamal)</author><thr:total>36</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-3640541533937825810</guid><pubDate>Sat, 08 Dec 2007 09:18:00 +0000</pubDate><atom:updated>2007-12-08T01:19:10.323-08:00</atom:updated><title>Sending Email with ASP.NET 2.0</title><description>In ASP.Net 2.0 use System.Net.Mail class.&lt;br /&gt;&lt;br /&gt;System.Net.Mail is the namespace used to send email if you are using the 2.0 (or higher) .NET Framework.&lt;br /&gt;&lt;br /&gt;Unlike System.Web.Mail, which was introduced in the 1.0 Framework, it is not built upon the CDO/CDOSYS libraries. Instead it is written from the ground up without any interop. Thus, it is not dependant upon other COM libraries.  System.Net.Mail introduces brand new classes for creating and sending email. &lt;br /&gt;&lt;br /&gt;Although some functionality has been removed, the new System.Net.Mail namespace is much more versatile than the older CDO dependant System.Web.Mail.&lt;br /&gt;&lt;br /&gt;Dim message As MailMessage = New MailMessage()&lt;br /&gt;message.From = New MailAddress(&quot;from@server.com&quot;, &quot;From Name&quot;)&lt;br /&gt;&lt;br /&gt;message.ReplyTo = New MailAddress(&quot;reply@server.com&quot;, &quot;ReplyTo Name&quot;)&lt;br /&gt;&lt;br /&gt;message.To.Add(New MailAddress(&quot;to1@server.com&quot;, &quot;Name One&quot;))&lt;br /&gt;message.To.Add(New MailAddress(&quot;to2@server.com&quot;, &quot;Name Two&quot;))&lt;br /&gt;message.CC.Add(New MailAddress(&quot;cc@server.com&quot;, &quot;CC Name&quot;))&lt;br /&gt;message.Bcc.Add(New MailAddress(&quot;bcc@server.com&quot;, &quot;BCC Name&quot;))&lt;br /&gt;&lt;br /&gt;message.Subject = &quot;Subject&quot;&lt;br /&gt;message.Body = &quot;This is a plain text&quot;&lt;br /&gt;message.IsBodyHtml = False&lt;br /&gt;&lt;br /&gt;&#39;Priority property can have next values: Low, Normal and High. &lt;br /&gt;message.Priority = MailPriority.Normal&lt;br /&gt;&lt;br /&gt;Dim emailClient As New SmtpClient(&quot;mail.server.com&quot;)&lt;br /&gt;emailClient.Send(message)</description><link>http://aspnet-tips-tricks.blogspot.com/2007/12/sending-email-with-aspnet-20.html</link><author>noreply@blogger.com (kamal)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-7020425800300418032</guid><pubDate>Thu, 06 Dec 2007 10:03:00 +0000</pubDate><atom:updated>2007-12-06T02:04:08.781-08:00</atom:updated><title>Dynamically Adding Meta Tags in ASP.NET 2.0</title><description>Custom Adding Title Tag :&lt;br /&gt;      Me.Header.Title = &quot;Title Of Page Here&quot;&lt;br /&gt;&lt;br /&gt;Custom Adding Meta Tag :&lt;br /&gt;       Dim metaDescription As New HtmlMeta()&lt;br /&gt;       metaDescription.Name = &quot;description&quot;&lt;br /&gt;       metaDescription.Content = &quot;A description of the page here.&quot;&lt;br /&gt;       Me.Header.Controls.Add(metaDescription)&lt;br /&gt;&lt;br /&gt;Custom Adding Style :&lt;br /&gt;       Dim styles As New HtmlGenericControl(&quot;style&quot;)&lt;br /&gt;       styles.Attributes.Add(&quot;type&quot;, &quot;text/css&quot;)&lt;br /&gt;       styles.InnerText = &quot;p { font-weight: bold; }&quot;&lt;br /&gt;       Me.Header.Controls.Add(styles)&lt;br /&gt;&lt;br /&gt;       Dim style As New Style()&lt;br /&gt;       style.ForeColor = System.Drawing.Color.Navy&lt;br /&gt;       style.BackColor = System.Drawing.Color.LightGray&lt;br /&gt;       Me.Header.StyleSheet.CreateStyleRule(style, Nothing, &quot;body&quot;)&lt;br /&gt;&lt;br /&gt;Custom Adding Css Style:&lt;br /&gt;       Dim cssLink As New HtmlLink()&lt;br /&gt;       cssLink.Href = &quot;styles.css&quot;&lt;br /&gt;       cssLink.Attributes.Add(&quot;rel&quot;, &quot;Stylesheet&quot;)&lt;br /&gt;       cssLink.Attributes.Add(&quot;type&quot;, &quot;text/css&quot;)&lt;br /&gt;       Me.Header.Controls.Add(cssLink)&lt;br /&gt;&lt;br /&gt;Custom Adding Java Script:&lt;br /&gt;       Dim javaScript As New HtmlGenericControl(&quot;script&quot;)&lt;br /&gt;       javaScript.Attributes.Add(&quot;type&quot;, &quot;text/javascript&quot;)&lt;br /&gt;       javaScript.InnerText = &quot;alert(&#39;Hello World!&#39;);&quot;&lt;br /&gt;       Me.Header.Controls.Add(javaScript)&lt;br /&gt;&lt;br /&gt;All the above code should be used within page Page_Load event</description><link>http://aspnet-tips-tricks.blogspot.com/2007/12/dynamically-adding-meta-tags-in-aspnet.html</link><author>noreply@blogger.com (kamal)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-6776726940859648851</guid><pubDate>Mon, 03 Dec 2007 07:55:00 +0000</pubDate><atom:updated>2007-12-03T00:02:50.874-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips -Tricks</category><title>Find ASP.NET Child Controls</title><description>To find out child control from parent control we use &lt;strong&gt;&quot;$&quot; acts as the delimiter&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Syntax for find out child control from parent control is &lt;strong&gt;parentControlID$childControlID&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Here, I give example to DefaultFocus attribute of the &lt; form &gt; element to set the focus to a TextBox nested within a FormView control.&lt;br /&gt;&lt;br /&gt;&lt; form id=&quot;form1&quot; runat=&quot;server&quot; DefaultFocus=&quot;&lt;strong&gt;vwTest$txtName&lt;/strong&gt;&quot; &gt;&lt;br /&gt;    &lt; div &gt;&lt;br /&gt;        &lt; asp:FormView ID=&quot;vwTest&quot; runat=&quot;server&quot; &gt;&lt;br /&gt;            &lt; ItemTemplate &gt;&lt;br /&gt;                Name: &lt;br /&gt;                &lt; asp:TextBox ID=&quot;txtName&quot; runat=&quot;server&quot; &lt;br /&gt;                        Text=&#39;&lt;%# Eval(&quot;FirstName&quot;) + &quot; &quot; + Eval(&quot;LastName&quot;) %&gt;&#39; / &gt;&lt;br /&gt;            &lt; /ItemTemplate &gt;&lt;br /&gt;        &lt; /asp:FormView &gt;&lt;br /&gt;    &lt; /div &gt;&lt;br /&gt;&lt; /form &gt;&lt;br /&gt;&lt;br /&gt;Notice that the DefaultFocus attribute refers to the parent control first (the FormView) and then to the child control (the TextBox) using the vwTest$txtName syntax.</description><link>http://aspnet-tips-tricks.blogspot.com/2007/12/find-aspnet-child-controls_02.html</link><author>noreply@blogger.com (kamal)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8549381580040834390.post-7809675100663013298</guid><pubDate>Mon, 03 Dec 2007 07:55:00 +0000</pubDate><atom:updated>2007-12-03T00:02:24.243-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips -Tricks</category><title>Find ASP.NET Child Controls</title><description>To find out child control from parent control we use &lt;strong&gt;&quot;$&quot; acts as the delimiter&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Syntax for find out child control from parent control is &lt;strong&gt;parentControlID$childControlID&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Here, I give example to DefaultFocus attribute of the &lt; form &gt; element to set the focus to a TextBox nested within a FormView control.&lt;br /&gt;&lt;br /&gt;&lt; form id=&quot;form1&quot; runat=&quot;server&quot; DefaultFocus=&quot;&lt;strong&gt;vwTest$txtName&lt;/strong&gt;&quot; &gt;&lt;br /&gt;    &lt; div &gt;&lt;br /&gt;        &lt; asp:FormView ID=&quot;vwTest&quot; runat=&quot;server&quot; &gt;&lt;br /&gt;            &lt; ItemTemplate &gt;&lt;br /&gt;                Name: &lt;br /&gt;                &lt; asp:TextBox ID=&quot;txtName&quot; runat=&quot;server&quot; &lt;br /&gt;                        Text=&#39;&lt;%# Eval(&quot;FirstName&quot;) + &quot; &quot; + Eval(&quot;LastName&quot;) %&gt;&#39; / &gt;&lt;br /&gt;            &lt; /ItemTemplate &gt;&lt;br /&gt;        &lt; /asp:FormView &gt;&lt;br /&gt;    &lt; /div &gt;&lt;br /&gt;&lt; /form &gt;&lt;br /&gt;&lt;br /&gt;Notice that the DefaultFocus attribute refers to the parent control first (the FormView) and then to the child control (the TextBox) using the vwTest$txtName syntax.</description><link>http://aspnet-tips-tricks.blogspot.com/2007/12/find-aspnet-child-controls.html</link><author>noreply@blogger.com (kamal)</author><thr:total>4</thr:total></item></channel></rss>