<?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>Dotnetcoderoom Blog</title>
	<atom:link href="http://dotnetcoderoom.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetcoderoom.wordpress.com</link>
	<description>ASP.Net, VB.Net, C#, Microsoft Visual Studio .Net, Quick Tutorials, .Net Tips and Tricks, asp.Net Tips and Tricks, Html, Ajay Sharma's Blog, Java Script, javascript, .Net Sample Codes</description>
	<lastBuildDate>Mon, 09 Jan 2012 11:07:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dotnetcoderoom.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dotnetcoderoom Blog</title>
		<link>http://dotnetcoderoom.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotnetcoderoom.wordpress.com/osd.xml" title="Dotnetcoderoom Blog" />
	<atom:link rel='hub' href='http://dotnetcoderoom.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Run JavaScript after page is loaded</title>
		<link>http://dotnetcoderoom.wordpress.com/2011/04/12/run-javascript-after-page-is-loaded/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2011/04/12/run-javascript-after-page-is-loaded/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 09:36:55 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=203</guid>
		<description><![CDATA[If you need to call a JavaScript code when the html page is completely loaded, you can use JQuery. At times some controls are not rendered and the JavaScript code runs, hence it is  not able to find controls which is not rendered yet and client side code throws exception. Use $(document).ready feature of JQuery as belows: &#60;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=203&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you need to call a JavaScript code when the html page is completely loaded, you can use <strong>JQuery</strong>.</p>
<p>At times some controls are not rendered and the JavaScript code runs, hence it is  not able to find controls which is not rendered yet and client side code throws exception.</p>
<p>Use $(document).ready feature of JQuery as belows:</p>
<p>&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;</p>
<p>$(document).ready(<br />
function()<br />
{<br />
showMsg();<br />
}<br />
);</p>
<p>function showMsg()<br />
{<br />
// your code here<br />
}</p>
<p>&lt;/script&gt;</p>
<p>The above is also a replacement of the old body onload property: &lt;body onload=&#8221;javascript showMsg()&#8221;&gt; thing</p>
<br />Filed under: <a href='http://dotnetcoderoom.wordpress.com/category/aspnet/'>Asp.Net</a>, <a href='http://dotnetcoderoom.wordpress.com/category/javascript/'>JavaScript</a>, <a href='http://dotnetcoderoom.wordpress.com/category/jquery/'>JQuery</a> Tagged: <a href='http://dotnetcoderoom.wordpress.com/tag/javascript/'>JavaScript</a>, <a href='http://dotnetcoderoom.wordpress.com/tag/jquery/'>JQuery</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=203&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2011/04/12/run-javascript-after-page-is-loaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Parameter is not valid. Asp.net GDI exception</title>
		<link>http://dotnetcoderoom.wordpress.com/2011/03/17/parameter-is-not-valid-asp-net-gdi-exception/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2011/03/17/parameter-is-not-valid-asp-net-gdi-exception/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 09:32:19 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.net Errors]]></category>
		<category><![CDATA[Microsoft Visual Studio .Net]]></category>
		<category><![CDATA[.net framework]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[GDI]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=197</guid>
		<description><![CDATA[I was getting this exception while working with the GDI images in asp.net. My requirement was to upload the image from client then resize it and display. The code was working fine on local development machine, but on production server it was throwing &#8220;Parameter is not valid&#8221; exception. The general cause of this is that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=197&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was getting this exception while working with the GDI images in asp.net.<br />
My requirement was to upload the image from client then resize it and display.</p>
<p>The code was working fine on local development machine, but on production server it was throwing &#8220;<strong>Parameter is not valid</strong>&#8221; exception.</p>
<p>The general cause of this is that non-availability of resources required to generate a valid image file.</p>
<p>In my case the reason was that the destination folder was having read-only permissions, which was causing the code to hault while saving the processed image back to server.</p>
<p>For the resources I read during this issue, I found out some more reasons, these can be following:<br />
1) Invalid source image path passed to the Drawing/Image/Bitmap object.<br />
2) Invalid destination image path passed to the Drawing/Image/Bitmap object.<br />
3) Corrupted/incomplete byte array.<br />
4) Disposing of Source object before completing generation of new Image.<br />
5) Folder write permissions while saving the new file.</p>
<br />Filed under: <a href='http://dotnetcoderoom.wordpress.com/category/aspnet-errors/'>Asp.net Errors</a>, <a href='http://dotnetcoderoom.wordpress.com/category/microsoft-visual-studio-net/'>Microsoft Visual Studio .Net</a> Tagged: <a href='http://dotnetcoderoom.wordpress.com/tag/net-framework/'>.net framework</a>, <a href='http://dotnetcoderoom.wordpress.com/tag/aspnet/'>Asp.Net</a>, <a href='http://dotnetcoderoom.wordpress.com/tag/aspnet-errors/'>Asp.net Errors</a>, <a href='http://dotnetcoderoom.wordpress.com/tag/gdi/'>GDI</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=197&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2011/03/17/parameter-is-not-valid-asp-net-gdi-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Generic function to display images on webpage asp.net</title>
		<link>http://dotnetcoderoom.wordpress.com/2011/01/29/generic-method-to-display-images-in-asp-net/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2011/01/29/generic-method-to-display-images-in-asp-net/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 09:29:24 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Asp.Net Controls]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=193</guid>
		<description><![CDATA[Hi fellas, I am writing this post after a long time. This new year I am back at blogging to help the software developers in writing better code . Ever need of a generic/common function to display the images on website? In normal practice, whenever we need to show an image, we used to directly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=193&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi fellas,</p>
<p>I am writing this post after a long time. This new year I am back at blogging to help the software developers in writing better code .</p>
<p>Ever need of a generic/common function to display the images on website?<br />
In normal practice, whenever we need to show an image, we used to directly write<br />
Image.Src= &#8220;/userfiles/abc.jpg&#8221;;</p>
<p>This can be painful sometimes if your folder path gets changed,  in that case you need to replace the folder (userfiles) everywhere.</p>
<p>Smart and better way is to create a common function that will display images. What you need to do is to call this method every time.</p>
<p><strong><br />
Method:<br />
</strong><br />
public string ShowImage(string ImageName)<br />
{<br />
string ReturnVal = string.Empty;</p>
<p>if (File.Exists(System.Web.HttpContext.Current.Server.MapPath(&#8220;~/userfiles/&#8221; + ImageName)) == true)<br />
{<br />
ReturnVal = VirtualPathUtility.ToAbsolute(&#8220;~/userfiles/&#8221; + ImageName);<br />
}<br />
else<br />
{<br />
ReturnVal = VirtualPathUtility.ToAbsolute(&#8220;~/Images/ImageNotAvailable.jpg&#8221;);<br />
}</p>
<p>return ReturnVal;<br />
}</p>
<p><strong><br />
Usage:</strong></p>
<p>imgThumbnail.ImageUrl = ShowImage(&#8220;abc.jpg&#8221;);</p>
<p><strong><br />
Explanation:</strong></p>
<p>This method, takes a string parameter as image name to display. Then it checks that if the particular image exists or not.<br />
If the image exists on the specified path then it returns the image name with full path (userfiles/abc.jpg) else it returns the alternate image path, which is imageNotAvailable.jpg.</p>
<p>This way if the image is not founded on server then user will be shown a imageNotAvailable.jpg</p>
<p>Thats it for now.</p>
<br />Filed under: <a href='http://dotnetcoderoom.wordpress.com/category/aspnet/'>Asp.Net</a>, <a href='http://dotnetcoderoom.wordpress.com/category/aspnet-controls/'>Asp.Net Controls</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=193&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2011/01/29/generic-method-to-display-images-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 in review</title>
		<link>http://dotnetcoderoom.wordpress.com/2011/01/02/2010-in-review/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2011/01/02/2010-in-review/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 06:40:57 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=190</guid>
		<description><![CDATA[The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health: The Blog-Health-o-Meter™ reads This blog is doing awesome!. Crunchy numbers The average container ship can carry about 4,500 containers. This blog was viewed about 17,000 times in 2010. If each [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=190&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health:</p>
<p><img style="border:1px solid #ddd;background:#f5f5f5;padding:20px;" src="http://s0.wp.com/i/annual-recap/meter-healthy2.gif" alt="Healthy blog!" width="250" height="183" /></p>
<p>The <em>Blog-Health-o-Meter™</em> reads This blog is doing awesome!.</p>
<h2>Crunchy numbers</h2>
<p><a href="http://dotnetcoderoom.files.wordpress.com/2008/08/pop.gif"><img style="max-height:230px;float:right;border:1px solid #ddd;background:#fff;margin:0 0 1em 1em;padding:6px;" src="http://dotnetcoderoom.files.wordpress.com/2008/08/pop.gif?w=288" alt="Featured image" /></a></p>
<p>The average container ship can carry about 4,500 containers.  This blog was viewed about <strong>17,000</strong> times in 2010.  If each view were a shipping container, your blog would have filled about 4 fully loaded ships.</p>
<p>&nbsp;</p>
<p>In 2010, there was <strong>1</strong> new post, growing the total archive of this blog to 34 posts.</p>
<p>The busiest day of the year was August 30th with <strong>97</strong> views. The most popular post that day was <a style="color:#08c;" href="http://dotnetcoderoom.wordpress.com/2008/10/15/username-regex-validation/">Username Regex Validation</a>.</p>
<h2>Where did they come from?</h2>
<p>The top referring sites in 2010 were <strong>forums.asp.net</strong>, <strong>google.co.in</strong>, <strong>stackoverflow.com</strong>, <strong>google.com</strong>, and <strong>velocityreviews.com</strong>.</p>
<p>Some visitors came searching, mostly for <strong>mssql rename column</strong>, <strong>operator &#8216;+&#8217; cannot be applied to operands of type &#8216;string&#8217; and &#8216;method group&#8217;</strong>, <strong>username regex</strong>, <strong>ms sql rename column</strong>, and <strong>rename column mssql</strong>.</p>
<h2>Attractions in 2010</h2>
<p>These are the posts and pages that got the most views in 2010.</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">1</div>
<p><a style="margin-right:10px;" href="http://dotnetcoderoom.wordpress.com/2008/10/15/username-regex-validation/">Username Regex Validation</a> <span style="color:#999;font-size:8pt;">October 2008</span></p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">2</div>
<p><a style="margin-right:10px;" href="http://dotnetcoderoom.wordpress.com/2008/09/08/operator-cannot-be-applied-to-operands-of-type-string-and-method-group-c-error/">Operator + cannot be applied to operands of type string and method group, C# error</a> <span style="color:#999;font-size:8pt;">September 2008</span><br />
4 comments</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">3</div>
<p><a style="margin-right:10px;" href="http://dotnetcoderoom.wordpress.com/2008/09/02/rename-a-table-column-in-ms-sql/">Rename a table Column in MS SQL</a> <span style="color:#999;font-size:8pt;">September 2008</span></p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">4</div>
<p><a style="margin-right:10px;" href="http://dotnetcoderoom.wordpress.com/2008/08/30/aspnet-20-gridview-delete-button-confirmation-pop-up/">ASp.Net 2.0 GridView Delete Button Confirmation pop-up </a> <span style="color:#999;font-size:8pt;">August 2008</span><br />
3 comments</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">5</div>
<p><a style="margin-right:10px;" href="http://dotnetcoderoom.wordpress.com/2008/08/05/rotate-a-label-text/">Rotate a Label Text</a> <span style="color:#999;font-size:8pt;">August 2008</span><br />
1 comment</p>
<br />Filed under: <a href='http://dotnetcoderoom.wordpress.com/category/aspnet/'>Asp.Net</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=190&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2011/01/02/2010-in-review/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/meter-healthy2.gif" medium="image">
			<media:title type="html">Healthy blog!</media:title>
		</media:content>

		<media:content url="http://dotnetcoderoom.files.wordpress.com/2008/08/pop.gif?w=288" medium="image">
			<media:title type="html">Featured image</media:title>
		</media:content>
	</item>
		<item>
		<title>this._form is null or not an object, JavaScript Error</title>
		<link>http://dotnetcoderoom.wordpress.com/2010/02/15/this-_form-is-null-or-not-an-object-javascript-error/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2010/02/15/this-_form-is-null-or-not-an-object-javascript-error/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 19:32:39 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=184</guid>
		<description><![CDATA[I was getting below javascript error everytime i run my visual studio asp.net web pages: this._form is null or not an object Because of this error all my AJAX controls and page postback stopped working. As the error clearly states that it is a JavaScript error so i started checking all my Javascript code. Finally [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=184&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was getting below javascript error everytime i run my visual studio asp.net web pages:</p>
<p>this._form is null or not an object</p>
<p>Because of this error all my AJAX controls and page postback stopped working.</p>
<p>As the error clearly states that it is a JavaScript error so i started checking all my Javascript code.</p>
<p>Finally searching on the internet i found the cause and cure of this problem.</p>
<p><strong>Cause:</strong></p>
<p>If you are including javascript files in the page header like an empty tag , like below :</p>
<p>&lt;script src=&#8221;aj.js&#8221; type=&#8221;text/javascript&#8221; /&gt;</p>
<p><strong>Solution:</strong></p>
<p>Here the closing of script tag is not correct, through its an empty tag but somehow it needs to be closed as a old fashioned way, like done below:</p>
<p>&lt;script src=&#8221;aj.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</p>
<p>Close the javascript tag properly and see the magic yourself.</p>
<br />Filed under: <a href='http://dotnetcoderoom.wordpress.com/category/html/'>Html</a>, <a href='http://dotnetcoderoom.wordpress.com/category/javascript/'>JavaScript</a> Tagged: <a href='http://dotnetcoderoom.wordpress.com/tag/html/'>Html</a>, <a href='http://dotnetcoderoom.wordpress.com/tag/java-script/'>Java Script</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=184&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2010/02/15/this-_form-is-null-or-not-an-object-javascript-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Read Excel files using C-Sharp windows application</title>
		<link>http://dotnetcoderoom.wordpress.com/2009/06/24/read-excel-files-using-c-sharp-windows-application/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2009/06/24/read-excel-files-using-c-sharp-windows-application/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:36:43 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Widows Applications]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=181</guid>
		<description><![CDATA[This article explains how to read excel files using c sharp in windows applications. using System.Data.OleDb; private void btnRead_Click(object sender, EventArgs e) { try { string connStr = connStr = &#8220;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&#8221; + Application.StartupPath + @&#8221;\Courier.xls;Extended Properties=ImportMixedTypes=Text;Excel 8.0;HDR=Yes;IMEX=1;&#8221;; //You must use the $ after the object you reference in the spreadsheet OleDbDataAdapter adap = new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=181&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This article explains how to read excel files using c sharp in windows applications.</p>
<p>using System.Data.OleDb;</p>
<p>private void btnRead_Click(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
string connStr = connStr = &#8220;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&#8221; + Application.StartupPath + @&#8221;\Courier.xls;Extended Properties=ImportMixedTypes=Text;Excel 8.0;HDR=Yes;IMEX=1;&#8221;;</p>
<p>//You must use the $ after the object you reference in the spreadsheet<br />
OleDbDataAdapter adap = new OleDbDataAdapter(&#8220;SELECT * FROM [Sheet1$]&#8220;, connStr);</p>
<p>DataSet ds = new DataSet();<br />
adap.Fill(ds, &#8220;Courier&#8221;);<br />
dataGridView1.DataSource = ds.Tables["Courier"].DefaultView;</p>
<p>}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
}</p>
<p>Explanation of the above code:<br />
Here I used OleDb to read the excel file. The excel file resides with exe file as Courier.xls.</p>
<p><strong>Sheet1$</strong> is the name of excel sheet.<br />
Courier is the name of file so i am using the same name in filling the DataSet.</p>
<p>Now at last the data is filled into dataGridView.</p>
<p>Now if you are not able to read the integer value or any value other then text then<br />
include the<br />
<strong>Extended Properties=ImportMixedTypes=Text;Excel 8.0;HDR=Yes;IMEX=1</strong> property in connection string.</p>
<p>The above code can also be used in a web application, for this you need to replace the <strong>Application.StartupPath</strong> with <strong>Server.MapPath</strong></p>
<p>HaPpY CoDiNg&#8230;&#8230;&#8230;..</p>
<br />Posted in Excel, Widows Applications Tagged: C#, Excel, Widows Applications <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=181&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2009/06/24/read-excel-files-using-c-sharp-windows-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>URL rewriting using Global.asax, Error: The resource cannot be found.</title>
		<link>http://dotnetcoderoom.wordpress.com/2009/06/23/url-rewriting-using-global-asax-error-the-resource-cannot-be-found/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2009/06/23/url-rewriting-using-global-asax-error-the-resource-cannot-be-found/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 10:30:58 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[URL rewriting]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=179</guid>
		<description><![CDATA[Today I implemented my first application having URL rewriting enabled. The application is created in Asp.net, C# and MS Sql 2005. The url rewriting logic was working on the my localhost but it didn&#8217;t worked on production server. I was getting an error: The resource cannot be found. while accessing the newly created URL pages. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=179&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I implemented my first application having URL rewriting enabled.<br />
The application is created in Asp.net, C# and MS Sql 2005.</p>
<p>The url rewriting logic was working on the my localhost but it didn&#8217;t worked on production server.</p>
<p>I was getting an <strong>error: The resource cannot be found</strong>. while accessing the newly created URL pages.</p>
<p>I searched on Google about this and read lot, but nothing worked.</p>
<p>Finally I re-published the website and again uploaded all the files to production server and now everything worked like magic. Here is the URL: <a href="http://theplayclan.com/blog" target="_blank">http://theplayclan.com/blog</a></p>
<p>Somewhere I read to check the permissions on server&#8217;s IIS, this method is explained below:</p>
<p>1) Open IIS manager.<br />
2) Right click on your website&#8217;s virtual directory, select <strong>Properties</strong>.<br />
3) Now, click on <strong>Configuration </strong>(in front of execute permissions option).<br />
4) In the new popped-up window a list comes up as <strong>Application Extensions</strong>.<br />
5) select <strong>.aspx</strong> option and click on edit.<br />
6) Make sure that the <strong>Verify That File Exists</strong> is unchecked. This option explicitly check for the existence of file.<br />
7) Save the settings and try again.</p>
<p>Somewhere it was mention to remove the *.* and regular expression extension mappings from the IIS may also work. The procedure of this is mentioned above. </p>
<br />Posted in Asp.Net, IIS, URL rewriting Tagged: Asp.Net, IIS, URL rewriting <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=179&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2009/06/23/url-rewriting-using-global-asax-error-the-resource-cannot-be-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Traverse / Loop through all form controls in asp.net</title>
		<link>http://dotnetcoderoom.wordpress.com/2009/03/07/traverse-loop-through-all-form-controls-in-aspnet/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2009/03/07/traverse-loop-through-all-form-controls-in-aspnet/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 06:42:31 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Asp.Net Controls]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=170</guid>
		<description><![CDATA[This post explains that how to traverse (loop through) all form controls in asp.net page. foreach (System.Web.UI.Control ctrl in this.form1.Controls) { //here your code } Further if you want to get the state or data or manipulate the control, use the below code: Here I am checking that at least one DropDownList item is selected [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=170&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post explains that how to traverse (loop through) all form controls in asp.net page.</p>
<p>foreach (System.Web.UI.Control ctrl in this.form1.Controls)<br />
{<br />
//here your code<br />
}</p>
<p>Further if you want to get the state or data or manipulate the control, use the below code:<br />
Here I am checking that at least one DropDownList item is selected out of all DropDownLists in the current webform.</p>
<p><code>bool isSelected = false;</p>
<p>foreach (System.Web.UI.Control ctrl in this.form1.Controls)<br />
{</p>
<p>      if (ctrl.GetType() == typeof(System.Web.UI.WebControls.DropDownList))<br />
      {<br />
            DropDownList ddl = (DropDownList)ctrl;</p>
<p>            if (ddl.SelectedItem.Text != "")<br />
            {<br />
                  isSelected = true;<br />
                  break;<br />
            }<br />
      }</p>
<p>}</p>
<p>if (isSelected == true)<br />
{<br />
      Response.Write("selected");<br />
}<br />
else<br />
{<br />
      Response.Write("none selected");<br />
}</code></p>
<br />Posted in Asp.Net, Asp.Net Controls, C# Tagged: Asp.Net, Asp.Net Controls, C# <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=170&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2009/03/07/traverse-loop-through-all-form-controls-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Access your Asp.Net application over LAN</title>
		<link>http://dotnetcoderoom.wordpress.com/2009/01/09/access-your-aspnet-application-over-lan/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2009/01/09/access-your-aspnet-application-over-lan/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 13:02:18 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=155</guid>
		<description><![CDATA[This post explains how to access some Asp.Net Application residing on another machine on network. First of all you computer must be in the same workgroup as of the target computer. Then enter the following URL in the internet browser: http://192.168.1.84/myWebsiteTest/default.aspx or http://ajay/myWebsiteTest/default.aspx Here instead of ajay/192.168.1.84 you have to enter either the IP Address [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=155&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post explains how to access some Asp.Net Application residing on another machine on network.</p>
<p>First of all you computer must be in the same workgroup as of the target computer. Then enter the following URL in the internet browser:</p>
<p>http://192.168.1.84/myWebsiteTest/default.aspx</p>
<p>or</p>
<p>http://ajay/myWebsiteTest/default.aspx</p>
<p>Here instead of ajay/192.168.1.84 you have to enter either the IP Address or the name of the computer on which asp.net application  resides.</p>
<p>Just hit the enter key and you will see the output.</p>
<p>Happy Programing&#8230;&#8230;..</p>
<br />Posted in Asp.Net Tagged: Asp.Net <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=155&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2009/01/09/access-your-aspnet-application-over-lan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>MyBase in VB.Net is equal to base in C#</title>
		<link>http://dotnetcoderoom.wordpress.com/2009/01/09/mybase-in-vbnet-is-equal-to-base-in-csharp/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2009/01/09/mybase-in-vbnet-is-equal-to-base-in-csharp/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 10:12:51 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=166</guid>
		<description><![CDATA[The Mybase object of VB.Net is similar to the base in C#. So while using C# use &#8220;base&#8221; instead of &#8220;MyBase&#8221;. Happy Programing&#8230;&#8230; Posted in Asp.Net Tagged: Asp.Net<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=166&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <strong>Mybase </strong>object of VB.Net is similar to the <strong>base </strong>in C#.</p>
<p>So while using C# use <strong>&#8220;base&#8221;</strong> instead of <strong>&#8220;MyBase&#8221;</strong>.</p>
<p>Happy Programing&#8230;&#8230;</p>
<br />Posted in Asp.Net Tagged: Asp.Net <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=166&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2009/01/09/mybase-in-vbnet-is-equal-to-base-in-csharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft SQL Server DTS (Data Transformation Services) Import/Export Wizard Error</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/11/15/microsoft-sql-server-dts-data-transformation-services-importexport-wizard-error/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/11/15/microsoft-sql-server-dts-data-transformation-services-importexport-wizard-error/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 13:45:11 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[MS SQL Databae]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=161</guid>
		<description><![CDATA[If you are facing problems in &#8220;Choose a destination&#8221; option while importing and exporting data using Microsoft SQL Server DTS (Data Transformation Services) Import/Export Wizard, specifically the error mentioned below then this post may be helpful for you to get it solved. Error: DTS Import/Export Error Error Source: Microsoft OLD DB Provider for SQL Server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=161&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are facing problems in &#8220;Choose a destination&#8221; option while importing and exporting data using Microsoft SQL Server DTS (Data Transformation Services) Import/Export Wizard, specifically the error mentioned below then this post may be helpful for you to get it solved.</p>
<p>Error:<br />
DTS Import/Export Error<br />
Error Source: Microsoft OLD DB Provider for SQL Server<br />
Error Description: [DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or access denied</p>
<p><a href="http://dotnetcoderoom.files.wordpress.com/2008/11/dtserror.gif"><img src="http://dotnetcoderoom.files.wordpress.com/2008/11/dtserror.gif?w=490" alt="DTS Error" title="DTS Error"   class="alignnone size-full wp-image-162" /></a></p>
<p>Cause:<br />
Inappropriate database drivers.</p>
<p>Solution:<br />
In the Data Source combo-box<br />
Select Microsoft ODBC Driver For SQL server<br />
instead of<br />
Microsoft OLE DB Provider For SQL server</p>
<br />Posted in Asp.Net Tagged: MS SQL Databae <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=161&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/11/15/microsoft-sql-server-dts-data-transformation-services-importexport-wizard-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>

		<media:content url="http://dotnetcoderoom.files.wordpress.com/2008/11/dtserror.gif" medium="image">
			<media:title type="html">DTS Error</media:title>
		</media:content>
	</item>
		<item>
		<title>Unable to validate data, ASP.net error</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/11/07/unable-to-validate-data-aspnet-error/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/11/07/unable-to-validate-data-aspnet-error/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 06:52:42 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.net Errors]]></category>
		<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=159</guid>
		<description><![CDATA[Error: Unable to validate data, ASP.net error at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32&#38; dataLength) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) Information: This is an View state decoding error. Cause: The basic reason of this is the difference of key while encrypting and decrypting the viewstate data. Suppose an asp.net rendered a page with key1 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=159&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Error:</strong><br />
Unable to validate data, ASP.net error at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32&amp; dataLength) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) </p>
<p><strong>Information:</strong><br />
This is an View state decoding error.</p>
<p><strong>Cause:</strong><br />
The basic reason of this is the difference of key while encrypting and decrypting the <strong>viewstate</strong> data. Suppose an asp.net rendered a page with key1 and saved the page state in view state, meanwhile asp.net&#8217;s key is changed to key2, now when some server side event will occur on page the viewstate will get decrypted and this error will occur as the old view state is now not valid due to a different encryption key. </p>
<p>It may occur when you open a page for along time and after that do some events on that.</p>
<p><strong>Solution</strong><br />
Fix the key in your web.config file, so that only one key is used to encrypt and decrypt the viewstate data.</p>
<p>For more information visit:</p>
<p><a href="http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21321364.html">http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21321364.html</a></p>
<p><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312906">http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312906</a></p>
<br />Posted in Asp.net Errors Tagged: Asp.Net, Asp.net Errors <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=159&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/11/07/unable-to-validate-data-aspnet-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Username Regex Validation</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/10/15/username-regex-validation/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/10/15/username-regex-validation/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 13:26:07 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Regex]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=146</guid>
		<description><![CDATA[While accepting values from user you must validate the values because wrong values (like XSS attacks) can cause harm to your database and website. Regex Code: The Regular Expression below validates the username format. ^[a-zA-Z0-9_]{5,20}$ Scope: So while creating a new user for a website you can validate the username string with the following business [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=146&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While accepting values from user you must validate the values because wrong values (like XSS attacks) can cause harm to your database and website.</p>
<p><strong>Regex Code:</strong><br />
The Regular Expression below validates the username format.<br />
^[a-zA-Z0-9_]{5,20}$</p>
<p><strong>Scope:</strong><br />
So while creating a new user for a website you can validate the username string with the following business logic:<br />
1) User name must be between 5 to 20 characters.<br />
2) User name can have lowercase and uppercase characters.<br />
3) User name can be alpha-numeric.<br />
4) No special character allowed.</p>
<p>As you can see this is a very basic code to evaluate simple username for your website.<br />
Implementation:</p>
<p><strong>Asp.net HTML code:</strong></p>
<p>&lt;asp:TextBox ID=&#8221;txtRegex&#8221; runat=&#8221;server&#8221;&gt;&lt;/asp:TextBox&gt;<br />
&lt;asp:Button ID=&#8221;btnValidate&#8221; runat=&#8221;server&#8221; Text=&#8221;Validate value&#8221; OnClick=&#8221;btnValidate_Click&#8221; /&gt;<br />
&lt;asp:Label ID=&#8221;lblResultRegex&#8221; runat=&#8221;server&#8221; Text=&#8221;"&gt;&lt;/asp:Label&gt;&lt;/div&gt;</p>
<p><strong>Asp.net Code Behind</strong>:</p>
<p>using System.Text.RegularExpressions;</p>
<p>protected void btnValidate_Click(object sender, EventArgs e)<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (Regex.IsMatch(txtRegex.Text, @&#8221;^[a-zA-Z0-9_]{3,16}$&#8221;) == true)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lblResultRegex.Text = &#8220;username ok&#8221;;<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lblResultRegex.Text = &#8220;username invalid&#8221;;<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}</p>
<p>Now just run the application an verify the results.</p>
<p>To download a visual studio source code visit <a href="http://dotnetcoderoom.blogspot.com/2008/10/username-regex-validation.html">http://dotnetcoderoom.blogspot.com/2008/10/username-regex-validation.html</a></p>
<br />Posted in Asp.Net, C#, Regex Tagged: Asp.Net, C#, Regex <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=146&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/10/15/username-regex-validation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Read &amp; Write to System Registry data, keys using C#</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/10/10/read-write-to-system-registry-data-keys-using-c-sharp/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/10/10/read-write-to-system-registry-data-keys-using-c-sharp/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 13:05:49 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft Visual Studio .Net]]></category>
		<category><![CDATA[Registry]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=143</guid>
		<description><![CDATA[In this post i am going to explain that how to access the System Registry and how to read and write data to registry. Step 1: First you need to import the below namespaces: using Microsoft.Win32; Step 2: Now create an object of Registry class: RegistryKey regkey; Step 3: Now access the registry and get [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=143&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post i am going to explain that how to access the System Registry and how to read and write data to registry.</p>
<p><strong>Step 1:</strong> First you need to import the below namespaces:<br />
  using Microsoft.Win32;</p>
<p><strong>Step 2:</strong> Now create an object of Registry class:<br />
  RegistryKey regkey;</p>
<p><strong>Step 3:</strong> Now access the registry and get the value of a key</p>
<p>  regkey = Registry.CurrentUser.CreateSubKey(@&#8221;Software\Microsoft\FTP&#8221;);</p>
<p>  if (regkey.GetValue(&#8220;Use PASV&#8221;) == null)<br />
  {<br />
    txtValue.Text = &#8220;No Value Specified&#8221;;<br />
  }</p>
<p>  else<br />
  {<br />
    txtValue.Text = regkey.GetValue(&#8220;Use PASV&#8221;).ToString();<br />
  }</p>
<p>The above code gets the value of the &#8220;Use PASV&#8221; key from the<br />
Registry\CurrentUser\Software\Microsoft\FTP path.</p>
<p><strong>Step 4: </strong>Set the key value<br />
regkey.SetValue(&#8220;Use PASV&#8221;, txtValue.Text);</p>
<br />Posted in C#, Microsoft Visual Studio .Net, Registry Tagged: C#, Microsoft Visual Studio .Net, Registry <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=143&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/10/10/read-write-to-system-registry-data-keys-using-c-sharp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Website Design Guidelines for beginners</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/10/07/website-design-guidelines-for-beginners/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/10/07/website-design-guidelines-for-beginners/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 09:55:39 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Html]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=140</guid>
		<description><![CDATA[This post describes some basis points of website design for beginners. Before start designing of a website keep the below points in mind. 1) Keep the raw file (e.g. psd, ai, cdr) in RGB format. Create the site design with the original dimensions (e.g. for 800&#215;600=780, for 1024, 768=970). 2) Try to keep text and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=140&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post describes some basis points of website design for beginners.</p>
<p>Before start designing of a website keep the below points in mind.</p>
<p>1) Keep the raw file (e.g. psd, ai, cdr) in <span style="font-weight:bold;">RGB</span> format. Create the site design with the <span style="font-weight:bold;">original </span>dimensions (e.g. for 800&#215;600=780, for 1024, 768=970).</p>
<p>2) Try to keep text and images <span style="font-weight:bold;">separate</span>. Avoid <span style="font-weight:bold;">overlapping</span> of separate elements.</p>
<p>3) Keep text content more than image.</p>
<p>4) Always <span style="font-weight:bold;">use web fonts</span> like: Arial, Helvetica, Times New Roman, Courier New / Courier so that design at execution won’t look different from raw file.</p>
<p>5) Put some textual content and <span style="font-weight:bold;">links in bottom</span> of every page (e.g. copyright, sitemap, ).</p>
<p>6) Usage of <span style="font-weight:bold;">Headings</span> is also good practice.</p>
<p>7) Avoid using lot of graphics or images that are hard to load, instead use a <span style="font-weight:bold;">thumbnail</span> to show and a new page (or popup) to view full image.</p>
<p>8) Headline plays a significant role in attracting customers. Hence use catchy phrases for the headline, it&#8217;ll work well.</p>
<p>9) The most important is the content. <span style="font-weight:bold;">Relevant content</span> is the best way to keep the visitors hooked up and more over buy what you are selling. Correct use of words and sentences not only attracts the prospects but also helps the search engines to crawl it easily. Proper content, with relevant use of keywords is a MUST.</p>
<p>10)  Determine the <span style="font-weight:bold;">site navigation</span> and its appearance before start designing. Also keep in mind we must use text as navigation, in case text is not possible images can be used but they must be small in size(kb), so that it wont take time to load.(Refer to <span style="font-weight:bold;">yahoo home page</span>).</p>
<p>11)  User must should know where currently in site he is, show this by a textual bar like <span style="font-weight:bold;">YOU ARE HERE</span></p>
<p>12)  <span style="font-weight:bold;">Avoid using gradient</span> images in html page background, because it conflicts with site content and images at different screen resolutions.</p>
<p>13)  Determine html link style (mouse over, normal) color and size.</p>
<br />Posted in CSS, Html Tagged: CSS, Html <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=140&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/10/07/website-design-guidelines-for-beginners/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get user&#8217;s IP address using asp.net</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/10/03/how-to-get-users-ip-address-using-aspnet/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/10/03/how-to-get-users-ip-address-using-aspnet/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 10:53:46 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=136</guid>
		<description><![CDATA[Many times we need to get the current user&#8217;s / visitor&#8217;s Ip address. Sometimes this is essential for security reasons. We must leg the user&#8217;s IP address in the following situations: 1) where you accept data from user, like guestbook newsletter, search page etc. This gives a plus point to the security of website, as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=136&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many times we need to get the current user&#8217;s / visitor&#8217;s Ip address.</p>
<p>Sometimes this is essential for security reasons.<br />
We must leg the user&#8217;s IP address in the following situations:</p>
<p>1) where you accept data from user, like guestbook newsletter, search page etc. This gives a plus point to the security of website, as you can get the user&#8217;s identity by his IP if he do something wrong with your website.</p>
<p>2) User login pages. Alwayskeep record the logins of website users. Record the datetime and IP of user.</p>
<p>If you want to blok some particular users to use your website then on page load just ckeck the current Ip against database of ip&#8217;s you have created for blacklisting.<br />
Now coming to the point,<br />
<strong>How to get user&#8217;s IP address using asp.net<br />
</strong></p>
<p>HttpContext.Current.Request.UserHostAddress;<br />
or<br />
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];</p>
<p>The above code may return the IP with proxy.</p>
<p>Use the below code to get the IP address of the machine and not the proxy use the following code<br />
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];</p>
<p><span style="font-size:10pt;font-family:'Courier New';color:green;"><br />
</span></p>
<br />Posted in Asp.Net Tagged: Asp.Net <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=136&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/10/03/how-to-get-users-ip-address-using-aspnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Preload images in HTML using JavaScript</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/29/preload-images-in-html-using-javascript/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/29/preload-images-in-html-using-javascript/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 11:59:52 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=132</guid>
		<description><![CDATA[Preloading means loading an object (graphics, text, movie) before showing it to output. A good example is of  preloading in flash files, when you see a loader before displaying the content, and after loading site shows a smooth experience of flow of data. This is mostly used when there is an mouser over images to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=132&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Preloading means loading an object (graphics, text, movie) before showing it to output.</p>
<p>A good example is of  preloading in flash files, when you see a loader before displaying the content, and after loading site shows a smooth experience of flow of data.</p>
<p>This is mostly used when there is an mouser over images to be loaded. If user mouse overs an image and then you loads the new mouse-over image it may take a few seconds to load, which leads to a small blank image over the image area. By pre-loading the image you can show mouseover image instantly without any delay.</p>
<p>In this post I am explaining how to do preaload imags in HTML using JavaScript, without using flash.</p>
<p>We have to use the Head tag of html as this is the one which loads on first page executiution.</p>
<p>&lt;head&gt;<br />
&lt;script type=&#8221;text/JavaScript&#8221;&gt;</p>
<p>if (document.images)<br />
{<br />
pic1= new Image(190,53);<br />
pic1.src=&#8221;images/productSmall.gif&#8221;;</p>
<p>pic2= new Image(190,53);<br />
pic2.src=&#8221;images/storeSmall.gif&#8221;;<br />
}</p>
<p>&lt;/script&gt;<br />
&lt;/head&gt;</p>
<p>The above code lods two images naming productSmall.gif and storeSmall.gif respictively from images directory. It creates a new object of image and assigns it a dimention and a file to load.</p>
<p>The document.imags condition has been used to determine that the browser supports the images or not.</p>
<br />Posted in Html, JavaScript Tagged: Html, JavaScript <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=132&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/29/preload-images-in-html-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Using RequiredFieldValidator with DropdownList Asp.Net</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/29/using-requiredfieldvalidator-with-dropdownlist-aspnet/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/29/using-requiredfieldvalidator-with-dropdownlist-aspnet/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 09:18:00 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Asp.Net Controls]]></category>
		<category><![CDATA[Validation Controls]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=128</guid>
		<description><![CDATA[You may have used RequiredFieldValidator with Text controls, but if you wnat to use it with DropDownList controls, you need to do some little extra work. Here is the trick. Step 1: Create an DropDownList Step 2: Drag and RequiredFieldValidator. Set it&#8217;s ControlToValidate property to the DropDownLis&#8217;s object. Step 3: Fill some items in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=128&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You may have used RequiredFieldValidator with Text controls, but if you wnat to use it with DropDownList controls, you need to do some little extra work. Here is the trick.</p>
<p><strong>Step 1:</strong> Create an DropDownList</p>
<p><strong>Step 2:</strong> Drag and RequiredFieldValidator. Set it&#8217;s ControlToValidate property to the DropDownLis&#8217;s object.</p>
<p><strong>Step 3: </strong>Fill some items in the DropDownList. Add a first item as &#8220;Select&#8221;. This will indicate the user that he should select an option.</p>
<p><strong>Step 4</strong>: Now set the RequiredFieldValidator&#8217;s &#8220;InitialValue&#8221; property to &#8220;Select&#8221;.</p>
<p>Now all of your code should look like this :</p>
<p>&lt;asp:DropDownList ID=&#8221;cmbCountry&#8221; runat=&#8221;server&#8221;&gt;<br />
&lt;asp:ListItem&gt;Select&lt;/asp:ListItem&gt;<br />
&lt;asp:ListItem&gt;India&lt;/asp:ListItem&gt;<br />
&lt;asp:ListItem&gt;USA&lt;/asp:ListItem&gt;<br />
&lt;asp:ListItem&gt;Canada&lt;/asp:ListItem&gt;<br />
&lt;/asp:DropDownList&gt;</p>
<p>&lt;asp:RequiredFieldValidator ID=&#8221;rqCountry&#8221; runat=&#8221;server&#8221; ErrorMessage=&#8221;*&#8221; SetFocusOnError=&#8221;True&#8221; ControlToValidate=&#8221;cmbCountry&#8221; InitialValue=&#8221;Select&#8221;&gt;&lt;/asp:RequiredFieldValidator&gt;</p>
<p>Now you are all set  to go and test it.</p>
<p>To read complete post and source code please visit dotnetcoderoom.blogspot.com</p>
<br />Posted in Asp.Net Tagged: Asp.Net, Asp.Net Controls, Validation Controls <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=128&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/29/using-requiredfieldvalidator-with-dropdownlist-aspnet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Change MS SQL 2005 login password using sql query</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/24/change-ms-sql-2005-login-password-using-sql-query/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/24/change-ms-sql-2005-login-password-using-sql-query/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 10:55:17 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[DataBase]]></category>
		<category><![CDATA[MS SQL]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=125</guid>
		<description><![CDATA[If you want to change the MS Sql 2005 &#8216;s password then just run the following sql query after logging into query anlyzer sp_password &#8216;oldPassword&#8217; , newPassword&#8217; Note Always use strong SQL passwords (i.e. having uppercase characters , lowercase characters, numeric values, special characters) for security purpose, this way it will be difficult to hack, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=125&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to change the MS Sql 2005 &#8216;s password then just run the following sql query after logging into query anlyzer</p>
<p>sp_password &#8216;oldPassword&#8217; , newPassword&#8217;</p>
<p><strong>Note</strong><br />
Always use strong SQL passwords (i.e. having uppercase characters , lowercase characters, numeric values, special characters) for security purpose, this way it will be difficult to hack, hard to guess, hard to crack by brute force attacks.</p>
<br />Posted in DataBase, MS SQL Tagged: DataBase, MS SQL <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=125&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/24/change-ms-sql-2005-login-password-using-sql-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Show line breakes in Asp.net Label</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/17/show-line-breakes-in-aspnet-label/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/17/show-line-breakes-in-aspnet-label/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 10:20:20 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Asp.Net Label]]></category>
		<category><![CDATA[Asp.net Textbox]]></category>
		<category><![CDATA[Html]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=119</guid>
		<description><![CDATA[To show line breakes in a server side asp.net label, you can either use a HTML formatted text or a plain text. HTML formatted text contains &#8220;&#60;br&#62;&#8221; tags so while rendring the control .net framework handles the task to show the proper html formatted text into a Label. Example: lblDescription.Text=&#8221;name &#60;br&#62;description&#8221;; The above code will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=119&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To show line breakes in a server side asp.net label, you can either use a HTML formatted text or a plain text.</p>
<p>HTML formatted text contains &#8220;&lt;br&gt;&#8221; tags so while rendring the control .net framework handles the task to show the proper html formatted text into a Label.</p>
<p><strong>Example:</strong><br />
lblDescription.Text=&#8221;name &lt;br&gt;description&#8221;;<br />
The above code will display a line gap between name and description.<br />
But in case if user inputted data using a non-html enabled textbox then it is a point of problem.</p>
<p>While displaying data, inputted by simple multiline textbox, line breaks looses its state and when the data displayed on a  label it looks like a simple constant text line.  Interestingly if you try to show the same data back in a textbox it will look nice with proper line breaks. But we can&#8217;t use textbox every where because of designing requirements.</p>
<p>To keep the line breaks you must convert the html new line special indicator to HTML break &#8220;&lt;br&gt;&#8221; tag.</p>
<p><strong>Solution:</strong><br />
lblDescription.Text = txtInput.Text.ToString().Replace(Environment.NewLine, &#8220;&lt;br /&gt;&#8221;);</p>
<p>The above code replaces the &#8220;NewLine&#8221; indications to &#8220;&lt;br&gt;&#8221; at run time, and displays the data same as input formatting.</p>
<p>For demo source code visit<br />
<a title="Dotnetcoderoom" href="http://dotnetcoderoom.blogspot.com/2008/09/show-line-breakes-in-aspnet-label.html" target="_blank">http://dotnetcoderoom.blogspot.com/2008/09/show-line-breakes-in-aspnet-label.html</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/119/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/119/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=119&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/17/show-line-breakes-in-aspnet-label/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>What is RSS feed</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/11/what-is-rss-feed/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/11/what-is-rss-feed/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 11:29:51 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=112</guid>
		<description><![CDATA[Really Simple Syndication (RSS) feeds are XML files which are provided by websites so you can view their contents on other website rather than browsing their site. Basically it&#8217;s an information sharing process having some specified content format of text and related links. Example: I have a blog and you want to show the my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=112&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Really Simple Syndication (RSS)</strong> feeds are XML files which are provided by websites so you can view  their contents on other website rather than browsing their site. Basically it&#8217;s an information sharing process having some specified<br />
content format of text and related links.</p>
<p><strong>Example:</strong></p>
<p>I have a blog and you want to show the my Blog&#8217;s content on your website.<br />
So what i have to do is to create a RSS of my blog content and give RSS generation page link to you.<br />
The RSS page will generate an XML based on content I want to write in the file.</p>
<p>You have to consume that XML into your website and show the content.</p>
<p>These days nearly all blog websites provides their own RSS consuming applications, so you don&#8217;t have to bother about it if you are using a public web portal like orkut, WordPress, Blogspot etc.</p>
<p>Wait for a new post for reading and writing RSS applications.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/112/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/112/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=112&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/11/what-is-rss-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Operator + cannot be applied to operands of type string and method group, C# error</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/08/operator-cannot-be-applied-to-operands-of-type-string-and-method-group-c-error/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/08/operator-cannot-be-applied-to-operands-of-type-string-and-method-group-c-error/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 17:48:17 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Datatype Handling]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=109</guid>
		<description><![CDATA[Cause This error comes up when you tries to append two strings with the &#8220;+&#8221; sign. As the + sign in C# is a arithmetical operator so you cannot use this too append two string type values. To use &#8220;+&#8221; the values or variables must be if numeric type. As C# uses doesn&#8217;t supports implicit [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=109&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Cause</strong></p>
<p>This error comes up when you tries to append two strings with the &#8220;+&#8221; sign. As the + sign in C# is a arithmetical operator so you cannot use this too append two string type values. To use &#8220;+&#8221; the values or variables must be if numeric type.</p>
<p>As C# uses doesn&#8217;t supports implicit typecasting, <strong>for string concatenation use &#8220;&amp;&#8221; sign</strong>.<br />
<strong>Example</strong></p>
<p>string varTest = &#8220;&#8221;;<br />
string str1 = &#8220;abc&#8221;;<br />
int str2=21;</p>
<p>varTest = str1 + str2;</p>
<p>The above stqatmet will cause in error stating &#8220;<strong>Operator + cannot be applied to operands of type string and method group</strong>&#8220;. Because we are trying to add a string variable in a numeric variable.</p>
<p>To remove the error you must convert all the numeric (integer) datatype or variables to string.</p>
<p>varTest = str1 &amp; str2.ToString();</p>
<p>The output of the above code will be <strong>abc21</strong></p>
<p><strong>Conclusion</strong><br />
We must convert all values to a uniform datatype before storing them into a variable.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/109/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/109/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=109&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/08/operator-cannot-be-applied-to-operands-of-type-string-and-method-group-c-error/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Send e-mail in ASp.Net 2.0 and onwards in C#</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/06/send-e-mail-in-aspnet-20-and-onwards/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/06/send-e-mail-in-aspnet-20-and-onwards/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 10:25:30 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Send Email using asp.net 2.0]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=103</guid>
		<description><![CDATA[The following code example can be used to send email using Asp.Net in 2.0 and higher versions version. The Namespace of email class is changed to System.Net.Mail from System.Web.Mail. Import the System.Net.Mail Namespace using System.Net.Mail; Code: MailMessage mail = new MailMessage(); mail.From = new MailAddress(&#8220;info@yourDomain.com&#8221;,&#8221;Alert&#8221;); mail.To.Add(&#8220;you@yourdomain.com&#8221;); mail.Subject = &#8220;mail test&#8221;; mail.IsBodyHtml = true; mail.Body = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=103&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following code example can be used to send email using Asp.Net in 2.0 and higher versions version.</p>
<p>The Namespace of email class is changed to System.Net.Mail from System.Web.Mail.</p>
<p><strong>Import the System.Net.Mail Namespace</strong><br />
using System.Net.Mail;</p>
<p><strong>Code:</strong></p>
<p>MailMessage mail = new MailMessage();<br />
mail.From = new MailAddress(&#8220;info@yourDomain.com&#8221;,&#8221;Alert&#8221;);<br />
mail.To.Add(&#8220;you@yourdomain.com&#8221;);<br />
mail.Subject = &#8220;mail test&#8221;;<br />
mail.IsBodyHtml = true;<br />
mail.Body = &#8220;Your message here&#8221;;<br />
SmtpClient smtp = new SmtpClient(&#8220;mail.yourdomain.com&#8221;);<br />
smtp.Credentials = new System.Net.NetworkCredential(&#8220;info@yourdomain.com&#8221;,&#8221;password of this info&#8221;);<br />
smtp.Send(mail);</p>
<p><strong>Note:</strong><br />
The email address specified in the “FROM” field must be valid and it need to be of your domain.<br />
In the SmtpServer the domain name must be same as of your domain on which website is hosted.</p>
<p>For complete source code visit<br />
<a title=".Net Code Room" href="http://dotnetcoderoom.blogspot.com" target="_blank">http://dotnetcoderoom.blogspot.com</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/103/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/103/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=103&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/06/send-e-mail-in-aspnet-20-and-onwards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Send e-mail using Asp.Net 1.1</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/06/send-e-mail-using-aspnet-11/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/06/send-e-mail-using-aspnet-11/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 10:10:11 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Send e-mail in Asp.net]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=99</guid>
		<description><![CDATA[The following code example can be used to send email using Asp.Net in 1.1 version. First import Web.Mail namespace. using System.Web.Mail; Now add this code to your button click event: MailMessage mail = new MailMessage(); String msgText = string.Empty; msgText = &#8220;Message here, you can also use Html tags for Rich Text Formatting.&#60;br&#62;Hi.&#8221;; mail.To = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=99&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following code example can be used to send email using Asp.Net in 1.1 version.</p>
<p><strong>First import Web.Mail namespace.</strong><br />
using System.Web.Mail;</p>
<p><strong>Now add this code to your button click event:</strong></p>
<p>MailMessage mail = new MailMessage();</p>
<p>String msgText = string.Empty;<br />
msgText = &#8220;Message here, you can also use Html tags for Rich Text Formatting.&lt;br&gt;Hi.&#8221;;</p>
<p>mail.To = &#8220;you@yourdomain.com&#8221;;<br />
mail.CC = &#8220;anyEmailAddress, its optional&#8221;;<br />
mail.Bcc = &#8220;anyEmailAddress, its optional&#8221;;<br />
mail.From = @&#8221;"&#8221;Ajay&#8221;" &lt;info@yourdomain.com&gt;&#8221;;<br />
//mail.From = &#8220;info@yourdomain.com&#8221;;<br />
mail.Subject = &#8220;Mail test&#8221;;<br />
mail.BodyFormat = MailFormat.Html;<br />
mail.Body = msgText;<br />
SmtpMail.SmtpServer = &#8220;mail.yourdomain.com&#8221;;</p>
<p>SmtpMail.Send(mail);</p>
<p><strong>Note:</strong></p>
<p>The email address specified in the &#8220;FROM&#8221; field must be valid and it need to be of your domain.<br />
In the SmtpServer the domain name must be same as of your domain on which website is hosted.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/99/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/99/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=99&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/06/send-e-mail-using-aspnet-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Google&#8217;s Web Browser called Google Chrome is launched</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/04/googles-web-browser-called-google-chrome-is-launched/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/04/googles-web-browser-called-google-chrome-is-launched/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 06:08:59 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web Browsers]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=96</guid>
		<description><![CDATA[Yapee. Google has launched it&#8217;s own web browser named Google Chrome. Google Chrome is a very simple and sophisticated browser and very easy yo use. Google Chrome Features: ~ Multiple tabs can be opened in same instance window. ~ Thumbnails of most visited pages. ~ Automatic bookmarks and history search reaults when you type any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=96&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yapee.</p>
<p>Google has launched it&#8217;s own web browser named <strong>Google Chrome</strong>.<br />
Google Chrome is a very simple and sophisticated browser and very easy yo use.</p>
<p><strong>Google Chrome Features</strong>:<br />
~ Multiple tabs can be opened in same instance window.<br />
~ Thumbnails of most visited pages.<br />
~ Automatic bookmarks and history search reaults when you type any URL.<br />
~ Import settings and bookmarks from other web browsers.<br />
~ Application shortcuts<br />
~ Dynamic tabs<br />
~ Crash control<br />
~ Incognito mode<br />
~ Safe browsing<br />
~ Instant bookmarks<br />
~ Simpler downloads</p>
<p>For more features visit <a href="http://www.google.com/chrome/intl/en-GB/features.html" target="_blank">http://www.google.com/chrome/intl/en-GB/features.html</a></p>
<p>So go and give a try to Google Chrome.</p>
<p>Download Google Chrome here <a href="http://www.google.com/chrome/" target="_blank">http://www.google.com/chrome/</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/96/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/96/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=96&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/04/googles-web-browser-called-google-chrome-is-launched/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Rename a table Column in MS SQL</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/09/02/rename-a-table-column-in-ms-sql/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/09/02/rename-a-table-column-in-ms-sql/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 05:37:15 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[DataBase]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[MS SQL Stored Procedures]]></category>
		<category><![CDATA[SQL Cursors]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=93</guid>
		<description><![CDATA[How to rename a MS SQL server database table column name after the table creation?? You can rename a column regardless of it is null or contains any data. We need to use a System stored procedure to rename. Any command with alter keywords won&#8217;t work. Code EXEC sp_rename &#8216;tableName.[oldColumnName]&#8216;, &#8216;newColumnName&#8217;, &#8216;COLUMN&#8217; Example: EXEC sp_rename [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=93&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to rename a MS SQL server database table column name after the table creation??<br />
You can rename a column regardless of it is null or contains any data.</p>
<p>We need to use a System stored procedure to rename. Any command with alter keywords won&#8217;t work.</p>
<p><strong>Code</strong><br />
EXEC sp_rename &#8216;tableName.[oldColumnName]&#8216;, &#8216;newColumnName&#8217;, &#8216;COLUMN&#8217;</p>
<p><strong>Example:</strong><br />
EXEC sp_rename &#8216;Ultra_tblPressRelease.[uShowStatus]&#8216;, &#8216;uShowInA2B&#8217;, &#8216;COLUMN&#8217;</p>
<p>The above line will rename the existing column named <strong>uShowStatus</strong> of table <strong>tblPressRelease </strong>to <strong>uShowInA2B</strong>.</p>
<p>There will be no adverse effect of this procedure on your table data.<br />
But you have to<strong> update all your SQL Cursors</strong> and <strong>Stored Procedures</strong> with the new column name (if any).</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/93/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/93/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=93&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/09/02/rename-a-table-column-in-ms-sql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>ASp.Net 2.0 GridView Delete Button Confirmation pop-up</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/30/aspnet-20-gridview-delete-button-confirmation-pop-up/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/30/aspnet-20-gridview-delete-button-confirmation-pop-up/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 07:34:40 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Ado.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[DataSet]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[MS SQL]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=36</guid>
		<description><![CDATA[While using GridView in asp.net pages wants to confirm the deletion form user. To do this we can take him to another page having GUI to confirm and then delete the record on that page. Instead of doing so much hardwork you can achieve this on the same page with a little bit of extra [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=36&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While using GridView in asp.net pages wants to confirm the deletion form user. To do this we can take him to another page having GUI to confirm and then delete the record on that page.</p>
<p>Instead of doing so much hardwork you can achieve this on the same page with a little bit of extra code.</p>
<p><strong>Workaround</strong></p>
<p>Add a client alert script to the delete button of every row.<br />
In the delete event of GridView delete the record.</p>
<p><strong>Code</strong></p>
<p>==================================================<br />
Page&#8217;s Aspx Design File Begins<br />
==================================================<br />
&lt;asp:GridView ID=&#8221;gvFaq&#8221; runat=&#8221;server&#8221; AutoGenerateColumns=&#8221;False&#8221; CellPadding=&#8221;4&#8243;<br />
ForeColor=&#8221;#333333&#8243; GridLines=&#8221;None&#8221; OnRowDataBound=&#8221;gvFaq_RowDataBound&#8221; OnRowDeleting=&#8221;gvFaq_RowDeleting&#8221;&gt;<br />
&lt;FooterStyle BackColor=&#8221;#5D7B9D&#8221; Font-Bold=&#8221;True&#8221; ForeColor=&#8221;White&#8221; /&gt;<br />
&lt;RowStyle BackColor=&#8221;#F7F6F3&#8243; ForeColor=&#8221;#333333&#8243; /&gt;<br />
&lt;Columns&gt;<br />
&lt;asp:BoundField DataField=&#8221;slno&#8221; HeaderText=&#8221;Sl No.&#8221; /&gt;<br />
&lt;asp:BoundField DataField=&#8221;cHeading&#8221; HeaderText=&#8221;Question&#8221; /&gt;<br />
&lt;asp:BoundField DataField=&#8221;cPosition&#8221; HeaderText=&#8221;Position&#8221; /&gt;<br />
&lt;asp:CommandField HeaderText=&#8221;Manage&#8221; ShowSelectButton=&#8221;True&#8221; /&gt;<br />
&lt;asp:CommandField HeaderText=&#8221;Delete&#8221; ShowDeleteButton=&#8221;True&#8221; /&gt;<br />
&lt;/Columns&gt;<br />
&lt;PagerStyle BackColor=&#8221;#284775&#8243; ForeColor=&#8221;White&#8221; HorizontalAlign=&#8221;Center&#8221; /&gt;<br />
&lt;SelectedRowStyle BackColor=&#8221;#E2DED6&#8243; Font-Bold=&#8221;True&#8221; ForeColor=&#8221;#333333&#8243; /&gt;<br />
&lt;HeaderStyle BackColor=&#8221;#5D7B9D&#8221; Font-Bold=&#8221;True&#8221; ForeColor=&#8221;White&#8221; /&gt;<br />
&lt;EditRowStyle BackColor=&#8221;#999999&#8243; /&gt;<br />
&lt;AlternatingRowStyle BackColor=&#8221;White&#8221; ForeColor=&#8221;#284775&#8243; /&gt;<br />
&lt;/asp:GridView&gt;<br />
==================================================<br />
Page&#8217;s Aspx Design File Ends<br />
==================================================</p>
<p>Database Design FIle<br />
<a href="http://dotnetcoderoom.files.wordpress.com/2008/08/tblfaqsnap.gif"><img class="alignleft size-full wp-image-83" src="http://dotnetcoderoom.files.wordpress.com/2008/08/tblfaqsnap.gif?w=490" alt=""   /></a></p>
<p>==================================================<br />
Code Behind File Begins<br />
==================================================<br />
1) Import Namespaces<br />
using System.Data.SqlClient;</p>
<p>2) Declare global variables which will be used in page<br />
DataSet ds = new DataSet();<br />
SqlDataAdapter da;<br />
SqlConnection myConnection;<br />
String connStr = &#8220;your database connection string goes here&#8221;&#8216;;<br />
String sql = string.Empty;</p>
<p>3) Page Load event<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (Page.IsPostBack == false)<br />
{<br />
fillGridView();<br />
}<br />
}</p>
<p>4) GridView filling method<br />
private void fillGridView()<br />
{</p>
<p>try<br />
{<br />
myConnection = new SqlConnection(connStr);<br />
sql = &#8220;select * from tblFaq order by slno desc&#8221;;</p>
<p>da = new SqlDataAdapter(sql, myConnection);<br />
ds.Clear();<br />
da.Fill(ds, &#8220;tblFaq&#8221;);</p>
<p>gvFaq.DataSource = ds.Tables[0];<br />
Page.DataBind();</p>
<p>}<br />
catch (Exception ex)<br />
{<br />
Response.Write(ex.Message);<br />
}<br />
}</p>
<p>5) In the RowDataBound event add a java script event to the delete cell.<br />
protected void gvFaq_RowDataBound(object sender, GridViewRowEventArgs e)<br />
{<br />
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
e.Row.Cells[4].Attributes.Add(&#8220;onClick&#8221;, &#8220;return confirm(&#8216;Are you sure you want to delete the record?&#8217;);&#8221;);<br />
}<br />
}</p>
<p>6) Handle the RowDeleting event to delete the record of current row.</p>
<p>protected void gvFaq_RowDeleting(object sender, GridViewDeleteEventArgs e)<br />
{<br />
try<br />
{<br />
myConnection = new SqlConnection(connStr);<br />
myConnection.Open();<br />
sql = &#8220;delete from tblFaq where slno = &#8221; + Convert.ToInt32(gvFaq.Rows[e.RowIndex].Cells[0].Text);<br />
SqlCommand oldcom = new SqlCommand(sql, myConnection);<br />
oldcom.ExecuteNonQuery();<br />
myConnection.Close();<br />
fillGridView();<br />
Response.Write(&#8220;Record Deleted&#8221;);<br />
}<br />
catch (Exception ex)<br />
{<br />
lblError.Text = ex.Message;<br />
}<br />
}</p>
<p>==================================================<br />
Code Behind File Ends<br />
==================================================<br />
The output will look like this</p>
<p><a href="http://dotnetcoderoom.files.wordpress.com/2008/08/pop.gif"><img class="alignleft size-full wp-image-86" src="http://dotnetcoderoom.files.wordpress.com/2008/08/pop.gif?w=490" alt=""   /></a></p>
<p><strong>For Source Code visit <a href="http://dotnetcoderoom.blogspot.com/2008/08/aspnet-20-gridview-delete-button.html">http://dotnetcoderoom.blogspot.com/2008/08/aspnet-20-gridview-delete-button.html</a></strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=36&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/30/aspnet-20-gridview-delete-button-confirmation-pop-up/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>

		<media:content url="http://dotnetcoderoom.files.wordpress.com/2008/08/tblfaqsnap.gif" medium="image" />

		<media:content url="http://dotnetcoderoom.files.wordpress.com/2008/08/pop.gif" medium="image" />
	</item>
		<item>
		<title>Show Message Box in Asp.net</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/25/show-message-box-in-aspnet/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/25/show-message-box-in-aspnet/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 10:23:58 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=63</guid>
		<description><![CDATA[It&#8217;s not possible to show an alert message box in asp.net using server side code (like vb.net windows apps, msgbox). But this can be achieved by generating a client side Java Script code in a server-side event. Code Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click showMsg(&#8220;hey there&#8221;, Me) End Sub [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=63&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not possible to show an alert message box in asp.net using server side code (like vb.net windows apps, msgbox).</p>
<p>But this can be achieved by generating a client side Java Script code in a server-side event.</p>
<p><strong>Code</strong></p>
<p>Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click<br />
showMsg(&#8220;hey there&#8221;, Me)<br />
End Sub</p>
<p>Public Sub showMsg(ByVal sMsg As String, ByVal frm As Web.UI.Page)</p>
<p>Dim sb As New System.Text.StringBuilder<br />
Dim oFormObject As System.Web.UI.Control</p>
<p>sMsg = sMsg.Replace(&#8220;&#8216;&#8221;, &#8220;\&#8217;&#8221;)<br />
sMsg = sMsg.Replace(Chr(34), &#8220;\&#8221; &amp; Chr(34))<br />
sMsg = sMsg.Replace(vbCrLf, &#8220;\n&#8221;)<br />
sMsg = &#8220;&lt;script language=javascript&gt;alert(&#8220;&#8221;" &amp; sMsg &amp; &#8220;&#8221;")&lt;/script&gt;&#8221;</p>
<p>sb = New System.Text.StringBuilder<br />
sb.Append(sMsg)</p>
<p>For Each oFormObject In frm.Controls<br />
If TypeOf oFormObject Is HtmlForm Then<br />
Exit For<br />
End If<br />
Next<br />
oFormObject.Controls.AddAt(oFormObject.Controls.Count, New LiteralControl(sb.ToString()))<br />
End Sub</p>
<p><strong>Explanation:</strong></p>
<p>On the button click event i write a JavaScript method to the page, the JavaScript method is displaying the message your pass to the method  showMsg().</p>
<p>Note:<br />
Please don&#8217;t pass special characters as the message, as they will conflict with the special characters of JavaScript and message won&#8217;t come properly.</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/63/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/63/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=63&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/25/show-message-box-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove yellow autocomplete textbox background caused by Google Toolbar in Internet Explorer</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/25/remove-yellow-autocomplete-textbox-backguoud-caused-by-google-toolbar-in-internet-explorer/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/25/remove-yellow-autocomplete-textbox-backguoud-caused-by-google-toolbar-in-internet-explorer/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 07:12:38 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Asp.net Textbox]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Google Toolbar]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=54</guid>
		<description><![CDATA[Hey guys, Recently i ran into this problem, some users of my client&#8217;s website complaint that in some web forms the name and email fields comes have a yellow background which hinders the readability of the field. After getting into depth details of the problem I came to knew that it happens only in Internet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=54&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey guys,</p>
<p>Recently i ran into this problem, some users of my client&#8217;s website complaint that in some web forms the name and email fields comes have a yellow background which hinders the readability of the field.</p>
<p>After getting into depth details of the problem I came to knew that it happens only in Internet Explorer having Google Toolbar installed. In Firefox, Opera, Netscape it works fine.</p>
<p>This is a feature of Google Toolbar that it automatically highlights the fields (e.g. name, email etc.) in the yellow background color which facilitate the user to autocomplete the specified field.</p>
<p>Using some server-side and client side tweaks you can restrict the field to become autocomplete but Google Toolbar will still show the yellow background. The Google Toolbar feature overrides nearly all the server-side as well as client-side tweaks for the Name and Email fields.</p>
<p><strong>Workaround:</strong></p>
<p>To avoid the field&#8217;s autocomplete:</p>
<p>You can set the AutoCompleteType property in the Html tag of Textbox like:</p>
<p>&lt;asp:TextBox ID=&#8221;txtemail&#8221; runat=&#8221;server&#8221; AutoCompleteType=&#8221;Disabled&#8221; Width=&#8221;219px&#8221;&gt;&lt;/asp:TextBox&gt;</p>
<p>Some enumerations for the AutoCompleteType property are :</p>
<p>BusinessCity &#8211; City in the business category</p>
<p>BusinessCountryRegion &#8211; Country/region in the business category</p>
<p>BusinessFax &#8211; Fax number in the business category</p>
<p>BusinessPhone &#8211; Phone number in the business category</p>
<p>BusinessState &#8211; State in the business category</p>
<p>BusinessStreetAddress &#8211; Street address  in the business category</p>
<p>BusinessUrl &#8211; Web site URL in the business category</p>
<p>BusinessZipCode &#8211; ZIP code in the business category</p>
<p>Cellular &#8211; Phone number in the mobile-phone category</p>
<p>Company &#8211; Business name in the business category</p>
<p>Department &#8211; Department in the business category</p>
<p><strong>Disabled &#8211; AutoComplete feature is disabled </strong></p>
<p>DisplayName &#8211; Name to display in the user category</p>
<p>Email &#8211; E-mail in the user category</p>
<p>FirstName &#8211; First name in the user category</p>
<p>Gender &#8211; Gender in the user category</p>
<p>HomeCity &#8211; Home city in the user category</p>
<p>HomeCountryRegion &#8211; Home country/region in the user category</p>
<p>HomeFax &#8211; Fax number in the user category</p>
<p>Homepage &#8211; Web site URL in the user category</p>
<p>HomePhone &#8211; Phone number in the user category</p>
<p>HomeState &#8211; Home state in the user category</p>
<p>HomeStreetAddress &#8211; Home street in the user category</p>
<p>HomeZipCode &#8211; ZIP code in the user category</p>
<p>JobTitle &#8211; Job title in the user category</p>
<p>LastName &#8211; Last name in the user category</p>
<p>MiddleName &#8211; Middle name in the user category</p>
<p><strong>None &#8211; No category specified </strong></p>
<p>Notes &#8211; Extra information in the form</p>
<p>Office &#8211; Office location in the business category</p>
<p>Pager &#8211; Phone number in the pager category</p>
<p>Search &#8211; Keywords in the search category</p>
<p>Please note the difference between <strong>None </strong>and <strong>Disabled</strong> enumerations.</p>
<p>But setting the AutoCompleteType property will only direct browser to not to give options for autocomplete, it doesn&#8217;t removers yellow background.</p>
<p><strong>Remove Yellow background</strong></p>
<p>Any code used to set the background color of textbox will fail in following conditions (regardless of run time or design time):</p>
<p>a) Specifying BackColor</p>
<p>b) Specifying background-color in CSS or Style attribute.</p>
<p><strong>The one and only perfect way to do is :</strong></p>
<p><strong>a)</strong> Specify a CSS class for the textbox, e.g.</p>
<p>.txtNameStyle</p>
<p>{</p>
<p>font-size:12px;</p>
<p>height:13px;</p>
<p>border-style:none;</p>
<p>background-color: #666666 !important;</p>
<p>color:#ffffff;</p>
<p>}</p>
<p><strong>b) </strong>Now declare the text box control so that it looks like this :</p>
<p>&lt;asp:TextBox ID=&#8221;txtName&#8221; runat=&#8221;server&#8221; CssClass=&#8221;txtNameStyle&#8221; Width=&#8221;219px&#8221;&gt;&lt;/asp:TextBox&gt;</p>
<p><strong>Note:</strong></p>
<p>The <strong></strong>if the background is <strong>!important</strong> in Css-Style, the input is not considered by Google Toolbar. That&#8217;s all what we need.</p>
<p>Now the last step is to just test the page into Internet Explorer.</p>
<p>That&#8217;s all for this post, hope you will like it.<br />
Please leave a comment for any help.</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=54&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/25/remove-yellow-autocomplete-textbox-backguoud-caused-by-google-toolbar-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Update database data using SQL Cursors based on conditions</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/22/update-database-data-using-sql-cursors-based-on-conditions/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/22/update-database-data-using-sql-cursors-based-on-conditions/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 07:25:15 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Ado.Net]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[SQL Cursors]]></category>
		<category><![CDATA[SQL Injection]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[Sql database cursors]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=51</guid>
		<description><![CDATA[Recently one of my MSSQL database got SQL Injection attacks. Hacker put some JavaScript code in all row data to get hits on his website (which is apparently blocked, and soon my site will also be got banned if it keep happening for a long time). Because the database has a huge amount of data, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=51&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently one of my MSSQL database got SQL Injection attacks.<br />
Hacker put some JavaScript code in all row data to get hits on his website (which is apparently blocked, and soon my site will also be got banned if it keep happening for a long time).</p>
<p>Because the database has a huge amount of data, i can&#8217;t update table data using ExecuteNonQuery commands as it will result in a great overload on database and network resources.</p>
<p>So I decided to make something logical which is fast and logical way to handle this situation, and at last i ended up with writing a cursor.</p>
<p>This cursor finds a specific string and replaces it with null.</p>
<p><strong>Scenario:</strong></p>
<p>Create a table with sample data</p>
<p>create table tblDataUpdateTest<br />
(<br />
slno int identity(1,1),<br />
cName varchar(50),<br />
cRemarks varchar(50),<br />
)</p>
<p>insert into tblDataUpdateTest (cName, cRemarks) values (&#8216;name1&#8242;,&#8217;some text here BADCODE&#8217;)<br />
insert into tblDataUpdateTest (cName, cRemarks) values (&#8216;name2&#8242;,&#8217;raBADCODEhul&#8217;)<br />
insert into tblDataUpdateTest (cName, cRemarks) values (&#8216;name3&#8242;,&#8217;dj BADCODEis devil&#8217;)</p>
<p>select * from tblDataUpdateTest</p>
<hr /><strong>Create Cursor to update database table</strong></p>
<p>Declare @@counter int<br />
set @@counter=0<br />
Declare @@slno int<br />
Declare @@cRemarks varchar(100)</p>
<p>Declare tmepTbl cursor<br />
For<br />
Select slno,cRemarks from tblDataUpdateTest</p>
<p>Open tmepTbl    /* Opening the cursor */</p>
<p>fetch next from tmepTbl<br />
into @@slno,@@cRemarks</p>
<p>while @@fetch_Status-1<br />
begin</p>
<p>Update tblDataUpdateTest<br />
set cRemarks = Replace(@@cRemarks,&#8217;BADCODE&#8217;,&#8221;)<br />
where slno = @@slno</p>
<p>fetch next from tmepTbl<br />
into @@slno, @@cRemarks</p>
<p>set @@counter=@@counter+1<br />
end<br />
close tmepTbl<br />
Deallocate tmepTbl<br />
<strong><br />
Conclusion:</strong><br />
By running this cursor all the occurrences of BADCODE will be eliminated from the specified table.</p>
<p><strong>Note:</strong><br />
I used word BADCODE here but in my actual data it was a java script tag which was creating all the problem.</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a><a href="http://dotnetcoderoom.blogspot.com/" target="_blank"> </a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/51/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/51/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=51&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/22/update-database-data-using-sql-cursors-based-on-conditions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Change fore color of control using Java Script</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/12/change-fore-color-of-control-using-java-script/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/12/change-fore-color-of-control-using-java-script/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 06:14:30 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=37</guid>
		<description><![CDATA[Many times we need to set the fore color or back color of controls (e.g. label, button etc). This can be achieved using CSS (supposing all of you know that) also but we can also do it using Java Script. This is a simple java script trick so you can use it with html controls [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=37&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many times we need to set the fore color or back color of controls (e.g. label, button etc).</p>
<p>This can be achieved using CSS (supposing all of you know that) also but we can also do it using Java Script.</p>
<p>This is a simple java script trick so you can use it with html controls as well as asp.net server controls.</p>
<p>Here is an example for doing this :</p>
<p><strong>Code:</strong></p>
<p>&lt;a href=&#8221;contact.aspx&#8221; class=&#8221;mainMenuNormalStyle&#8221; onmouseover=&#8221;style.color=&#8217;#FFB537&#8242;;&#8221;<br />
onmouseout=&#8221;style.color=&#8217;#6D6E71&#8242;&#8221;&gt;CONTACT&lt;/a&gt;</p>
<p>&lt;a href=&#8221;contact.aspx&#8221; class=&#8221;mainMenuNormalStyle&#8221; onmouseover=&#8221;style.backgroundcolor=&#8217;#FFB537&#8242;;&#8221;<br />
onmouseout=&#8221;style.backgroundcolor=&#8217;#6D6E71&#8242;&#8221;&gt;CONTACT&lt;/a&gt;</p>
<p>In the above code example i set the value of style collection&#8217;s color property on the <strong>&#8220;onmouseover&#8221;</strong> event and reversed on <strong>&#8220;onmouseout&#8221;</strong> event<br />
For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=37&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/12/change-fore-color-of-control-using-java-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>XML Serialization in .Net Framework (Write Xml from Dataset)</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/05/xml-serialization-in-net-framework-write-xml-from-dataset/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/05/xml-serialization-in-net-framework-write-xml-from-dataset/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 09:32:39 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Ado.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[DataSet]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=30</guid>
		<description><![CDATA[WHAT IS SERIALIZATION ? Serialization is converting an object to a format in which it can be saved (exported) as file or a physical medium. A simple and basic example would be, if we create an XML from a Dataset it is called Serialization. CODE: try { DataSet ds = new DataSet(); SqlDataAdapter da; SqlConnection [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=30&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight:bold;color:#003366;">WHAT IS SERIALIZATION ?</span><br />
Serialization is converting an object to a format in which it can be saved (exported) as file or a physical medium. A simple and basic example would be, if we create an XML from a Dataset it is called Serialization.</p>
<p><span style="font-weight:bold;color:#003366;">CODE:</span><br />
try<br />
{<br />
DataSet ds = new DataSet();<br />
SqlDataAdapter da;<br />
SqlConnection myConnection;<br />
String connStr = ConfigurationManager.ConnectionStrings["DatabaseConnectionString1"].ToString();</p>
<p>SqlConnection myConnection = new SqlConnection(connStr);<br />
String sql = &#8220;select * from tblCategory&#8221;;<br />
da = new SqlDataAdapter(sql, myConnection);<br />
ds.Clear();<br />
da.Fill(ds, &#8220;tblCategory&#8221;);<br />
ds.WriteXml(Server.MapPath(&#8220;~/xmls/info.xml&#8221;));<br />
}<br />
catch (Exception ex)<br />
{<br />
Response.Write(ex.Message);<br />
}</p>
<p>The above code will write an <span style="font-weight:bold;">XML</span> file called info.xml from a <span style="font-weight:bold;">Dataset</span> called &#8220;ds&#8221; into xmls folder in root of website.</p>
<p><span style="font-weight:bold;color:#003366;">Options</span><br />
Alternatively we can use some advanced options to format the data which is being written.</p>
<p>ds.WriteXml(Server.MapPath(&#8220;~/xmls/info.xml&#8221;, <span style="font-weight:bold;">XmlWriteMode.WriteSchema</span>);</p>
<p>Some options are. Some of the attributes available in Microsoft .Net Framework are as follows:</p>
<p>♣ <span style="color:#ff9933;">XmlWriteMode.DiffGram</span> — Writes the entire DataSet as a DiffGram.<br />
♣ <span style="color:#ff9933;">XmlWriteMode.IgnoreSchema</span> — Writes the current contents of the DataSet as XML data, without an XML Schema Definition language (XSD) schema.<br />
♣ <span style="color:#ff9933;">XmlWriteMode.WriteSchema</span> — Writes the current contents of the DataSet as XML data with the relational structure as inline XSD schema.<br />
For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=30&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/05/xml-serialization-in-net-framework-write-xml-from-dataset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Add meta tags dynamically to a page having a master page in Asp.Net</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/05/add-meta-tags-to-master-page-dynamically-from-content-page-in-aspnet/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/05/add-meta-tags-to-master-page-dynamically-from-content-page-in-aspnet/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 09:30:55 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Master Pages]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=28</guid>
		<description><![CDATA[As a master page provides a common layout to all pages, and &#60;head&#62; tag is included in the master page itself instead of content page.  So one questing comes how to add different meta tags to all different pages (or dynamically generate meat tags) . This post describes adding a meta tag in an dynamic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=28&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As a master page provides a common layout to all pages, and &lt;head&gt; tag is included in the master page itself instead of content page.  So one questing comes how to add different meta tags to all different pages (or dynamically generate meat tags) .</p>
<p>This post describes adding a meta tag in an dynamic page with dynamically generated content. This code can be used if you want to add meta tag to a page which is using Master pages.</p>
<p>Two approaches can be taken for this, one is using .net framework&#8217;s features, and second is by playing with &#8220;ContentPlaceHold&#8221;.</p>
<p><strong>Approach 1 : Using .net framework&#8217;s features to add meta tags</strong></p>
<p>Add the code below in page_load event of the content page.</p>
<p>Dim metaDescription As New HtmlMeta()<br />
metaDescription.Name = &#8220;metaTagHeading (example: keywords, description)&#8221;<br />
metaDescription.Content = &#8220;A description or content of meta tag here&#8221;<br />
Me.Header.Controls.Add(metaDescription)</p>
<hr /><strong>Approach 2 : Playing with &#8220;ContentPlaceHold&#8221;.</strong></p>
<p><strong>Step1</strong></p>
<p>Put one content place holder in your master page in HEAD section, like::</p>
<p>&lt;head id=&#8221;Head1&#8243; runat=&#8221;server&#8221;&gt;<br />
&lt;asp:ContentPlaceHolder runat=&#8221;server&#8221; id=&#8221;ContentHeaders&#8221;&gt;&lt;/asp:ContentPlaceHolder&gt;<br />
&lt;/head&gt;</p>
<p><strong>Step2</strong></p>
<p>Now in the content (child) page, put this code:</p>
<p>&lt;asp:Content ID=&#8221;Content2&#8243; ContentPlaceHolderID=&#8221;ContentHeaders&#8221; runat=&#8221;server&#8221;&gt;<br />
&lt;TITLE&gt;&lt;%=pageTitle%&gt;&lt;/TITLE&gt;<br />
&lt;META name=&#8221;keywords&#8221; content=&#8221;&lt;%=varKeywords%&gt;&#8221;&gt;<br />
&lt;META name=&#8221;description&#8221; content=&#8221;&lt;%=varDescription%&gt;&#8221;&gt;<br />
&lt;/asp:Content&gt;</p>
<p><strong>Step3</strong><br />
In content page&#8217;s vb or cs file code:</p>
<p>Declare variables as below in the global declaration section (not in page load)</p>
<p>Protected pageTitle As String = &#8220;&#8221;<br />
Protected varKeywords As String = &#8220;&#8221;<br />
Protected varDescription As String = &#8220;&#8221;</p>
<p><strong>Step4</strong><br />
Fill values in page_load event:</p>
<p>pageTitle = &#8220;Your Meta Tag &#8220;<br />
varKeywords = &#8220;Your Meta Tag &#8220;<br />
varDescription = &#8220;Your Meta Tag &#8220;</p>
<p>**End of article**</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=28&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/05/add-meta-tags-to-master-page-dynamically-from-content-page-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Disable the right click on a web page</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/05/disable-the-right-click-on-a-web-page/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/05/disable-the-right-click-on-a-web-page/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 09:28:22 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=26</guid>
		<description><![CDATA[Some website has right-click disabled so that user cant copy paste using mouse, or cant save images contained into webpage. Copy paste this code &#60;body oncontextmenu=&#8221;return false;&#8221;&#62; Html page content here &#60;/body&#62; **End of article** For more articles updates and sourcecodes please visit dotnetcoderoom<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=26&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some website has right-click disabled so that user cant copy paste using mouse, or cant save images contained into webpage.</p>
<p>Copy paste this code</p>
<p>&lt;body oncontextmenu=&#8221;return false;&#8221;&gt;<br />
Html page content here<br />
&lt;/body&gt;</p>
<p>**End of article**</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=26&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/05/disable-the-right-click-on-a-web-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Rotate a Label Text</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/05/rotate-a-label-text/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/05/rotate-a-label-text/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 09:24:37 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=24</guid>
		<description><![CDATA[Display Vertically and horizontally rotated text in a server side label ASP.NET or in a HTML control &#60;asp:Label id=&#8221;lblTotate&#8221; style=&#8221;writing-mode:tb-rl&#8221; runat=&#8221;server&#8221;&#62;your text here&#60;/asp:Label&#62; For more reference: http://www.w3.org/TR/2001/WD-css3-text-20010517/ http://msdn.microsoft.com/en-us/library/ms531187.aspx **End of article** For more articles updates and sourcecodes please visit dotnetcoderoom<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=24&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Display Vertically and horizontally rotated text in a server side label ASP.NET or in a HTML control</p>
<p>&lt;asp:Label id=&#8221;lblTotate&#8221; style=&#8221;writing-mode:tb-rl&#8221; runat=&#8221;server&#8221;&gt;your text here&lt;/asp:Label&gt;</p>
<p>For more reference:</p>
<p><a href="http://www.w3.org/TR/2001/WD-css3-text-20010517/">http://www.w3.org/TR/2001/WD-css3-text-20010517/</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms531187.aspx">http://msdn.microsoft.com/en-us/library/ms531187.aspx</a><br />
**End of article**</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=24&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/05/rotate-a-label-text/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Read CSV into an Array</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/05/read-csv-into-an-array/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/05/read-csv-into-an-array/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 09:22:43 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Ado.Net]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=22</guid>
		<description><![CDATA[Many times we have .csv or .xls files and we need to insert data into database or manipulate it. Dim reader As Microsoft.VisualBasic.FileIO.TextFieldParser reader = My.Computer.FileSystem.OpenTextFieldParser _ (&#8220;C:\Temp\test.csv&#8221;) reader.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited reader.Delimiters = New String() {&#8220;,&#8221;} Dim currentRow As String() While Not reader.EndOfData Try currentRow = reader.ReadFields() Dim currentField As String For Each currentField In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=22&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many times we have .csv or .xls files and we need to insert data into database or manipulate it.</p>
<p>Dim reader As Microsoft.VisualBasic.FileIO.TextFieldParser<br />
reader = My.Computer.FileSystem.OpenTextFieldParser _<br />
(&#8220;C:\Temp\test.csv&#8221;)<br />
reader.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited<br />
reader.Delimiters = New String() {&#8220;,&#8221;}<br />
Dim currentRow As String()<br />
While Not reader.EndOfData<br />
Try<br />
currentRow = reader.ReadFields()<br />
Dim currentField As String<br />
For Each currentField In currentRow<br />
MsgBox(currentField)<br />
Next<br />
Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException<br />
MsgBox(&#8220;Line &#8221; &amp; ex.Message &amp; _<br />
&#8220;is not valid and will be skipped.&#8221;)<br />
End Try<br />
End While</p>
<p>**End of article**</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=22&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/05/read-csv-into-an-array/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Update Dataset data back to Database</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/05/update-dataset-data-back-to-database/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/05/update-dataset-data-back-to-database/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 09:00:17 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Ado.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[DataSet]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[Microsoft Visual Studio .Net]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=20</guid>
		<description><![CDATA[This post explains how to insert, update, and delete data in a Database using Dataset. The DataSet can be considered an in-memory cache of data retrieved from a database. The DataSet consists of a collection of tables, relationships, and constraints. Firstly, we have to fill data into a DataSet from Database. Secondly, when the DataSet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=20&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post explains how to insert, update, and delete data in a Database using Dataset.</p>
<p>The DataSet can be considered an in-memory cache of data retrieved from a database. The DataSet consists of a collection of tables, relationships, and constraints.</p>
<p>Firstly, we have to fill data into a DataSet from Database.<br />
Secondly, when the DataSet is loaded, you can modify the data, and the DataSet will keep track of the changes made bu user.</p>
<p>The Add method of DataTable accepts either an array of the expected data columns, or a DataRow.</p>
<p>(Please note that all code is in c# language)</p>
<p><span style="font-weight:bold;">Step 1: Create a new Connection and SqlDataAdapter</span><br />
SqlConnection myConnection = new SqlConnection(&#8220;connectionStringGoesHere&#8221;);<br />
SqlDataAdapter mySqlDataAdapter = new SqlDataAdapter(&#8220;Select * from tblNews&#8221;, myConnection);<br />
DataSet myDataSet = new DataSet();<br />
DataRow myDataRow;</p>
<p><span style="font-weight:bold;">Step 2: Create SqlCommandBuilder</span>(The SqlDataAdapter does not automatically generate the Transact-SQL statements required to match changes made to a DataSet with SQL Server. But, you can create a SqlCommandBuilder object to automatically generate Transact-SQL statements for single-table updates.)<br />
SqlCommandBuilder mySqlCommandBuilder = new SqlCommandBuilder(mySqlDataAdapter);</p>
<p>// Set the MissingSchemaAction property to AddWithKey because Fill will not cause primary<br />
// key &amp; unique key information to be retrieved unless AddWithKey is specified.<br />
mySqlDataAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;</p>
<p>mySqlDataAdapter.Fill(myDataSet, &#8220;tblNews&#8221;);</p>
<p><span style="font-weight:bold;">Step 3: Add rows to DataTable</span></p>
<p>myDataRow = myDataSet.Tables["tblNews"].NewRow();<br />
myDataRow["cNewsId"] = &#8220;NewID&#8221;;<br />
myDataRow["cHeading"] = &#8220;New Heading&#8221;;<br />
myDataRow["cContent"] = &#8220;Content here&#8221;;</p>
<p>myDataSet.Tables["tblNews"].Rows.Add(myDataRow);</p>
<p><span style="font-weight:bold;">Step 4: Editing Row Data</span><br />
We can change the data in a DataRow by accessing the DataRow. Use the index of the row in the RowsCollection accessed through the Rows property:</p>
<p>myDataSet.Tables["tblNews"].Rows[0]["cHeading"]=&#8221;Abc&#8221;;</p>
<p>Access a specific row by specifying the Primary Key value:</p>
<p>DataRow myDataRow1 = myDataSet.Tables["tblNews"].Rows.Find(&#8220;124&#8243;);<br />
myDataRow1["cHeading"]=&#8221;Abc&#8221;;</p>
<p>Here &#8220;124&#8243; is the value of the Primary Key &#8220;cHeading&#8221; in the &#8220;tblNews&#8221; table.</p>
<p><span style="font-weight:bold;">Step 5: Deleting a record</span><br />
Use Delete method to delete a Row. All changes are done in dataset until you don&#8217;t explicitly update DataSet data to the Database. Use RejectChanges method of DataSet to reverse all changes made to DataSet.</p>
<p>myDataSet.Tables["tblNews"].Rows[0].Delete();</p>
<p><span style="font-weight:bold;">Note:</span> The original and new values are maintained in the row. The RowChanging event allows you to access both original and new values to decide whether you want the edit to proceed.</p>
<p>SqlCommandBuilder mySqlCommandBuilder = new SqlCommandBuilder(mySqlDataAdapter);</p>
<p><span style="font-weight:bold;">Step 6: Finally Update DataBase</span><br />
To submit the data from the DataSet into the database, use dataAdapter&#8217;s Update method.</p>
<p>mySqlDataAdapter.Update(myDataSet, &#8220;tblNews&#8221;);</p>
<p>A Visual Studio Solution code sample will be coming soon&#8230;&#8230;</p>
<p>**End of article**</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=20&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/05/update-dataset-data-back-to-database/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
		<item>
		<title>Show default Text in Email TextField</title>
		<link>http://dotnetcoderoom.wordpress.com/2008/08/05/show-default-text-in-email-textfield/</link>
		<comments>http://dotnetcoderoom.wordpress.com/2008/08/05/show-default-text-in-email-textfield/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 08:56:37 +0000</pubDate>
		<dc:creator>dotnetcoderoom</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://dotnetcoderoom.wordpress.com/?p=14</guid>
		<description><![CDATA[Show default Text in Email Field. Like on form load show &#8220;enter email id&#8221; in email field. On click clear this text. on mouse out with nothing entered show again this into textbox. Code: &#60;body&#62;&#60;input type=&#8221;text&#8221; name=&#8221;email&#8221; value=&#8221;Your e-mail adress&#8221; onfocus=&#8221;if(this.value==&#8217;Your e-mail adress&#8217;) this.value=&#8221;&#8221; onblur=&#8221;if(this.value==&#8221; ) this.value=&#8217;Your e-mail adress&#8217;;&#8221; /&#62; **End of article** For more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=14&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Show default Text in Email Field.<br />
Like on form load show &#8220;enter email id&#8221; in email field.<br />
On click clear this text.<br />
on mouse out with nothing entered show again this into textbox.</p>
<p><span style="font-weight:bold;">Code:</span><br />
&lt;body&gt;&lt;input type=&#8221;text&#8221; name=&#8221;email&#8221; value=&#8221;Your e-mail adress&#8221; onfocus=&#8221;if(this.value==&#8217;Your e-mail adress&#8217;) this.value=&#8221;&#8221; onblur=&#8221;if(this.value==&#8221; ) this.value=&#8217;Your e-mail adress&#8217;;&#8221; /&gt;<br />
**End of article**</p>
<p>For more articles updates and sourcecodes please visit <a href="http://dotnetcoderoom.blogspot.com/" target="_blank">dotnetcoderoom</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetcoderoom.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetcoderoom.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetcoderoom.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetcoderoom.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetcoderoom.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetcoderoom.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetcoderoom.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetcoderoom.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetcoderoom.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetcoderoom.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetcoderoom.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetcoderoom.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetcoderoom.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetcoderoom.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetcoderoom.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetcoderoom.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetcoderoom.wordpress.com&amp;blog=4084251&amp;post=14&amp;subd=dotnetcoderoom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetcoderoom.wordpress.com/2008/08/05/show-default-text-in-email-textfield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8124ad47498ca0d93365bdda5666e0b?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">dotnetcoderoom</media:title>
		</media:content>
	</item>
	</channel>
</rss>
