<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sandeep&#039;s Blog</title>
	<atom:link href="http://lifedotsan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifedotsan.wordpress.com</link>
	<description>Dot Net</description>
	<lastBuildDate>Sat, 10 Sep 2011 10:00:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='lifedotsan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/073343104e4fdbcc92613d164e61d040?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Sandeep&#039;s Blog</title>
		<link>http://lifedotsan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lifedotsan.wordpress.com/osd.xml" title="Sandeep&#039;s Blog" />
	<atom:link rel='hub' href='http://lifedotsan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Close browser window using Java Script</title>
		<link>http://lifedotsan.wordpress.com/2011/09/10/close-browser-window-using-java-script/</link>
		<comments>http://lifedotsan.wordpress.com/2011/09/10/close-browser-window-using-java-script/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 10:00:11 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=50</guid>
		<description><![CDATA[Page.RegisterStartupScript(&#8220;myScript&#8221;, &#8220;var win = window.open(&#8221;, &#8216;_self&#8217;);win.close();&#8221;);<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=50&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Page.RegisterStartupScript(&#8220;myScript&#8221;, &#8220;var win = window.open(&#8221;, &#8216;_self&#8217;);win.close();&#8221;);</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=50&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2011/09/10/close-browser-window-using-java-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>A realy nice way to save site&#8217;s visitor choice to membership in asp.net.</title>
		<link>http://lifedotsan.wordpress.com/2011/08/15/a-realy-nice-way-to-save-sites-visitor-choice-to-membership-in-asp-net/</link>
		<comments>http://lifedotsan.wordpress.com/2011/08/15/a-realy-nice-way-to-save-sites-visitor-choice-to-membership-in-asp-net/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 16:39:14 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Membership]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=46</guid>
		<description><![CDATA[If you are using Membership data base for your website to manage user&#8217;s information, then you can use Profile class to get/set user&#8217;s data. // Create an empty Profile for the newly created user ProfileCommon p = (ProfileCommon)ProfileCommon.Create(UserName, false); p.Theme = Profile.Theme; p.Language = Profile.Language; // Save profile &#8211; must be done since we explicitly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=46&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are using Membership data base for your website to manage user&#8217;s information, then you can use Profile class to get/set user&#8217;s data.</p>
<p>// Create an empty Profile for the newly created user<br />
                ProfileCommon p = (ProfileCommon)ProfileCommon.Create(UserName, false);<br />
                p.Theme = Profile.Theme;<br />
                p.Language = Profile.Language;<br />
                // Save profile &#8211; must be done since we explicitly created it<br />
                p.Save();</p>
<p>In config file these two properties will look like as below&#8221;</p>
<p>In case if any further help is required please send .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=46&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2011/08/15/a-realy-nice-way-to-save-sites-visitor-choice-to-membership-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>Display logged users in web site</title>
		<link>http://lifedotsan.wordpress.com/2011/05/29/display-logged-users-in-web-site/</link>
		<comments>http://lifedotsan.wordpress.com/2011/05/29/display-logged-users-in-web-site/#comments</comments>
		<pubDate>Sun, 29 May 2011 15:25:33 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[logged users]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=44</guid>
		<description><![CDATA[Well, this is realy intresting topic to display all logged user with their last activity time in any website. Steps to perform: 1. Add user details (IP, email,time etc) to Application disctionary when user login in website. 2. On each page or in master page load update user&#8217;s last activity time. 3. On logoff , remove [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=44&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#800080;"><em>Well, this is realy intresting topic to display all logged user with their last activity time in any website.</em></span></p>
<p><strong>Steps to perform:</strong></p>
<p>1. Add user details (IP, email,time etc) to Application disctionary when user login in website.</p>
<p>2. On each page or in master page load update user&#8217;s last activity time.</p>
<p>3. On logoff , remove the user from dictionary.</p>
<p>4. On a grid bind data from this dictionary.</p>
<p>Will try to push code in next post. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=44&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2011/05/29/display-logged-users-in-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>Validation Expression to allow only Alphanumeric Chars in C#</title>
		<link>http://lifedotsan.wordpress.com/2010/12/22/validation-expression-to-allow-only-alphanumeric-chars-in-c/</link>
		<comments>http://lifedotsan.wordpress.com/2010/12/22/validation-expression-to-allow-only-alphanumeric-chars-in-c/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 15:10:16 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=41</guid>
		<description><![CDATA[To allow only digits and characters with maximum length of 10 you can use below validation expression: &#8220;^[0-9a-zA-Z\s"]{5-10}$&#8221; &#160; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=41&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To allow only digits and characters with maximum length of 10 you can use below validation expression:</p>
<p>&#8220;^[0-9a-zA-Z\s"]{5-10}$&#8221;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=41&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2010/12/22/validation-expression-to-allow-only-alphanumeric-chars-in-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>Identity issue with replication.</title>
		<link>http://lifedotsan.wordpress.com/2010/08/19/identity-issue-with-replication/</link>
		<comments>http://lifedotsan.wordpress.com/2010/08/19/identity-issue-with-replication/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 05:45:43 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[Replication]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=37</guid>
		<description><![CDATA[If you are using any @@identity in your stored procedure and wants to manage replication, you need to replace this with IDENT_CURRENT(&#8216;tablename&#8217;).<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=37&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">If you are using any @@identity in your stored procedure and wants to manage replication, you need to replace this with IDENT_CURRENT(&#8216;tablename&#8217;).</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=37&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2010/08/19/identity-issue-with-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>Format decimal value inside template field in GridView</title>
		<link>http://lifedotsan.wordpress.com/2010/05/18/format-decimal-value-inside-template-field-in-gridview/</link>
		<comments>http://lifedotsan.wordpress.com/2010/05/18/format-decimal-value-inside-template-field-in-gridview/#comments</comments>
		<pubDate>Tue, 18 May 2010 08:40:53 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[ASP.net]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=28</guid>
		<description><![CDATA[Below code can be used. Eval(&#8220;Amount&#8221;, &#8220;{0:n2}&#8221;)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=28&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below code can be used.</p>
<p><span style="color:#003300;">Eval(&#8220;Amount&#8221;, &#8220;{0:n2}&#8221;)</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=28&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2010/05/18/format-decimal-value-inside-template-field-in-gridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>Delete all stored procedures in a DataBase in SQL</title>
		<link>http://lifedotsan.wordpress.com/2010/02/05/delete-all-stored-procedures-in-a-database-in-sql/</link>
		<comments>http://lifedotsan.wordpress.com/2010/02/05/delete-all-stored-procedures-in-a-database-in-sql/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 07:19:51 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=26</guid>
		<description><![CDATA[Using below Stored Procedure , you can delete all stored procedures in a DataBase. SET NOCOUNT ON &#8211; to do this we have to use EXEC instead of sp_executesql &#8211; sp_executesql does not accept a DROP command in the SQL String DECLARE @UserStoredProcedure    VARCHAR(100) DECLARE @Command                    VARCHAR(100) DECLARE UserStoredProcedureCursor CURSOR SCROLL STATIC READ_ONLY FOR SELECT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=26&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using below Stored Procedure , you can delete all stored procedures in a DataBase.</p>
<p>SET NOCOUNT ON</p>
<p>&#8211; to do this we have to use EXEC instead of sp_executesql</p>
<p>&#8211; sp_executesql does not accept a DROP command in the SQL String</p>
<p>DECLARE @UserStoredProcedure    VARCHAR(100)</p>
<p>DECLARE @Command                    VARCHAR(100)</p>
<p>DECLARE UserStoredProcedureCursor CURSOR SCROLL STATIC READ_ONLY FOR</p>
<p>SELECT</p>
<p>SPECIFIC_NAME</p>
<p>FROM</p>
<p>INFORMATION_SCHEMA.ROUTINES</p>
<p>OPEN UserStoredProcedureCursor</p>
<p>FETCH NEXT FROM UserStoredProcedureCursor</p>
<p>INTO @UserStoredProcedure</p>
<p>WHILE (@@FETCH_STATUS = 0) BEGIN</p>
<p>SET @Command = &#8216;DROP PROCEDURE &#8216; + @UserStoredProcedure</p>
<p>&#8211; display; visual check</p>
<p>SELECT @Command</p>
<p>&#8211; when you are ready to execute, uncomment below</p>
<p>EXEC (@Command)</p>
<p>FETCH NEXT FROM UserStoredProcedureCursor</p>
<p>INTO @UserStoredProcedure</p>
<p>END</p>
<p>CLOSE UserStoredProcedureCursor</p>
<p>DEALLOCATE UserStoredProcedureCursor</p>
<p>SET NOCOUNT OFF</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=26&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2010/02/05/delete-all-stored-procedures-in-a-database-in-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>Navigate to specific location on another page</title>
		<link>http://lifedotsan.wordpress.com/2010/01/30/navigate-to-specific-location-on-another-page/</link>
		<comments>http://lifedotsan.wordpress.com/2010/01/30/navigate-to-specific-location-on-another-page/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 07:51:17 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[ASP.net]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=24</guid>
		<description><![CDATA[If you want to create a link from one page to another, which is easy, but if you want to create the link so that you go right to the anchor on the other page and hence the specific piece of information person can see: Create link : &#60;a href=&#8221;pagename.html#anchor&#8221;&#62;link text&#60;/a&#62; . . . which links to &#60;a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=24&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#0000ff;">If you want to create a link from one page to another, which is easy, but if you want to create the link so that you go right to the anchor on the other page and hence the specific piece of information person can see: </span></p>
<p>Create link :<br />
&lt;a href=&#8221;pagename.html#anchor&#8221;&gt;link text&lt;/a&gt;</p>
<p>. . . which links to<br />
&lt;a name=&#8221;anchor&#8221; id=&#8221;anchor&#8221;&gt;some text&lt;/a&gt;<br />
on the page where you want to navigate(pagename.html).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=24&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2010/01/30/navigate-to-specific-location-on-another-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Global variables across application.</title>
		<link>http://lifedotsan.wordpress.com/2009/12/26/using-global-variables-across-application/</link>
		<comments>http://lifedotsan.wordpress.com/2009/12/26/using-global-variables-across-application/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 07:14:52 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Global Vars]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=20</guid>
		<description><![CDATA[Sometime you want some global variable to use across application in C#. This can be easily achieved by creating a separate class having all the desired variables as properties of that class. Using those properties assign and retrieve private variables declared within class. static class GlobalClass { private static string _globalVar = &#8220;&#8221;; public static [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=20&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><span style="color:#993366;">Sometime you want some global variable to use across application in C#.</span></h3>
<p><span style="color:#993366;">This can be easily achieved by creating a separate class having all the desired variables as properties of that class. Using those properties assign and retrieve private variables declared within class.</span></p>
<p>static class GlobalClass<br />
{<br />
private static string _globalVar = &#8220;&#8221;;</p>
<p>public static string GlobalVar<br />
{<br />
get { return mglobalVar; }<br />
set { _globalVar = value; }<br />
}<br />
}</p>
<p><span style="color:#993366;">1. Assign Value:</span></p>
<p>GlobalClass.GlobalVar = &#8220;Some value&#8221;;</p>
<p><span style="color:#993366;">2. Retrieve it anywhere like this:</span></p>
<p><span style="color:#993366;">C# Syntax </span></p>
<p>myFormLabel.Text = GlobalClass.GlobalVar;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=20&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2009/12/26/using-global-variables-across-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
		<item>
		<title>Check all check boxes in rows on click of header checkbox in GridView</title>
		<link>http://lifedotsan.wordpress.com/2009/12/23/check-all-check-boxes-in-rows-on-click-of-header-checkbox-in-gridview/</link>
		<comments>http://lifedotsan.wordpress.com/2009/12/23/check-all-check-boxes-in-rows-on-click-of-header-checkbox-in-gridview/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 12:21:27 +0000</pubDate>
		<dc:creator>lifedotsan</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[CheckBox]]></category>
		<category><![CDATA[GridView]]></category>

		<guid isPermaLink="false">http://lifedotsan.wordpress.com/?p=11</guid>
		<description><![CDATA[Using below client side java script code snippet, all checkboxes in GridView rows can be select : function CheckAll(Checkall) { var loTable = document.all["datagridID"]; with (document.forms[0]) { for (var i = 0; i &#60; elements.length; i++) { var e = elements[i]; if (e.type == &#8220;checkbox&#8221; &#38;&#38; e.name != Checkall.name) { e.checked = Checkall.checked; } }}} [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=11&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using below client side java script code snippet, all checkboxes in GridView rows can be select :</p>
<p>function CheckAll(Checkall)<br />
{<br />
var loTable = document.all["datagridID"];<br />
with (document.forms[0]) {<br />
for (var i = 0; i &lt; elements.length; i++) {<br />
var e = elements[i];<br />
if (e.type == &#8220;checkbox&#8221; &amp;&amp; e.name != Checkall.name) {<br />
e.checked = Checkall.checked;<br />
}<br />
}}}</p>
<p>This method can be called as :</p>
<p>&lt;asp:TemplateField HeaderText=&#8221;Select Rows&#8221;&gt;<br />
&lt;HeaderTemplate&gt;<br />
&lt;asp:CheckBox ID=&#8221;chkAll&#8221; onclick=&#8221;javascript:CheckAll(this);&#8221; runat=&#8221;server&#8221; /&gt;<br />
&lt;/HeaderTemplate&gt;<br />
&lt;ItemTemplate&gt;<br />
&lt;asp:CheckBox id=&#8221;chkRow&#8221; runat=&#8221;server&#8221;/&gt;<br />
&lt;/ItemTemplate&gt;<br />
&lt;HeaderStyle /&gt;<br />
&lt;/asp:TemplateField&gt;</p>
<p><em>Thank you.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lifedotsan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lifedotsan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lifedotsan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lifedotsan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lifedotsan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lifedotsan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lifedotsan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lifedotsan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lifedotsan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lifedotsan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lifedotsan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lifedotsan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lifedotsan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lifedotsan.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lifedotsan.wordpress.com&amp;blog=11063768&amp;post=11&amp;subd=lifedotsan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lifedotsan.wordpress.com/2009/12/23/check-all-check-boxes-in-rows-on-click-of-header-checkbox-in-gridview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fb742521bf59c69deca9618347dee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lifedotsan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
