<?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>Tech Ahead</title>
	<atom:link href="http://techahead.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techahead.wordpress.com</link>
	<description>feel the passion of technologies here!</description>
	<lastBuildDate>Thu, 26 Jan 2012 14:06:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='techahead.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tech Ahead</title>
		<link>http://techahead.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://techahead.wordpress.com/osd.xml" title="Tech Ahead" />
	<atom:link rel='hub' href='http://techahead.wordpress.com/?pushpress=hub'/>
		<item>
		<title>MySQL: How to reset AUTO_INCREMENT value of a table</title>
		<link>http://techahead.wordpress.com/2010/10/01/mysql-how-to-reset-auto_increment-value-of-a-table/</link>
		<comments>http://techahead.wordpress.com/2010/10/01/mysql-how-to-reset-auto_increment-value-of-a-table/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 09:25:17 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[AUTO_INCREMENT]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rows]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/?p=221</guid>
		<description><![CDATA[In mysql, to reset value of an AUTO_INCREMENT column in a table, use following query, ALTER TABLE tablename AUTO_INCREMENT = 1<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=221&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In mysql, to reset value of an AUTO_INCREMENT column in a table, use following query,</p>
<p style="padding-left:30px;"><strong>ALTER TABLE tablename AUTO_INCREMENT = 1</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=221&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2010/10/01/mysql-how-to-reset-auto_increment-value-of-a-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>
	</item>
		<item>
		<title>Poll: What is Your Preferred Browser?</title>
		<link>http://techahead.wordpress.com/2010/02/13/poll-what-is-your-preferred-browser/</link>
		<comments>http://techahead.wordpress.com/2010/02/13/poll-what-is-your-preferred-browser/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 14:31:31 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[Poll]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[opera]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/?p=212</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=212&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<a href="http://polldaddy.com/poll/2694863">Take Our Poll</a>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=212&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2010/02/13/poll-what-is-your-preferred-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET &#8211; Function to Fill Month, Date and Year Dropdown lists</title>
		<link>http://techahead.wordpress.com/2010/02/13/asp-net-function-to-fill-month-date-and-year-dropdown-lists/</link>
		<comments>http://techahead.wordpress.com/2010/02/13/asp-net-function-to-fill-month-date-and-year-dropdown-lists/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 13:46:20 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[asp.net 3.5]]></category>
		<category><![CDATA[birth date]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[dropdown]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[lists]]></category>
		<category><![CDATA[month]]></category>
		<category><![CDATA[yera]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/?p=196</guid>
		<description><![CDATA[Recently I was developing an application where I required to display three drop-down lists Month, Date and Year for accepting users Date of Birth. I have created three functions which will fill these three drop-down list. I have used ASP.NET 3.5 (c#) to create this example application, download it and use those functions in your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=196&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I was developing an application where I required to display three drop-down lists Month, Date and Year for accepting users Date of Birth. I have created three functions which will fill these three drop-down list. I have used <strong>ASP.NET 3.5 (c#) </strong>to create this example application, download it and use those functions in your application.</p>
<p><img class="alignnone size-full wp-image-205" title="ASP.NET – Function to Fill Month, Date and Year Dropdown lists" src="http://techahead.files.wordpress.com/2010/02/birth-date-drop-down-lists.jpg?w=500" alt=""   /></p>
<p>Though I asked my client to add a calendar control instead but he was not ready, so I have created these functions to easily fill these drop-down lists.</p>
<p>Let me know if you have any difficulty or problem in using these functions in your application.</p>
<h3><a title="Download Demo Application" href="http://cid-9e5547502c371bbc.skydrive.live.com/self.aspx/Public/techAhead/asp-net-function-to-fill-month-date-and-year-dropdown-lists/BithDate-Dropdown.zip" target="_blank">Download Demo Application</a></h3>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=196&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2010/02/13/asp-net-function-to-fill-month-date-and-year-dropdown-lists/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2010/02/birth-date-drop-down-lists.jpg" medium="image">
			<media:title type="html">ASP.NET – Function to Fill Month, Date and Year Dropdown lists</media:title>
		</media:content>
	</item>
		<item>
		<title>.NET &#8211; Translate color in .net from HTML colors</title>
		<link>http://techahead.wordpress.com/2009/08/11/net-translate-color-in-net-from-html-colors/</link>
		<comments>http://techahead.wordpress.com/2009/08/11/net-translate-color-in-net-from-html-colors/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 14:06:56 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[html colors]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/?p=209</guid>
		<description><![CDATA[I got to know about a new function using which we can get colors from HEX color in .net as below: lblMyLabel.ForeColor = System.Drawing.ColorTranslator.FromHtml("#FF6633"); I have used it for Label control, whereas you can use it in the same way for other controls. This is really helpful function for me, I thought it may be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=209&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got to know about a new function using which we can get colors from HEX color in .net as below:</p>
<pre>lblMyLabel.ForeColor =  System.Drawing.ColorTranslator.FromHtml("#FF6633");</pre>
<p>I have used it for Label control, whereas you can use it in the same way for other controls. This is really helpful function for me, I thought it may be useful for other too, so sharing it here <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=209&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2009/08/11/net-translate-color-in-net-from-html-colors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Chrome &#8211; StumbleUpon submit and stumbling buttons</title>
		<link>http://techahead.wordpress.com/2009/07/11/google-chrome-stumbleupon-submit-and-stumbling-button/</link>
		<comments>http://techahead.wordpress.com/2009/07/11/google-chrome-stumbleupon-submit-and-stumbling-button/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 20:36:05 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[stumbleupon]]></category>
		<category><![CDATA[stumbleupon toolbar]]></category>
		<category><![CDATA[toobar]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/?p=168</guid>
		<description><![CDATA[This is for all of you (including me) who want a StumbleUpon toolbar in Google Chrome. I am big fan of StumbleUpon, I spent hours on clicking that small stumble button in firefox. Firefox is awesome but Chrome is faster. StumbleUpon recently made a virtual toolbar for Chrome, but that&#8217;s not enough for a stumbleupon [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=168&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is for all of you (including me) who want a StumbleUpon toolbar in Google Chrome. I am big fan of StumbleUpon, I spent hours on clicking that small stumble button in firefox. Firefox is awesome but Chrome is faster.</p>
<p>StumbleUpon recently made a virtual toolbar for Chrome, but that&#8217;s not enough for a stumbleupon addict like me, because going on thier ite again and again to stumble is time consuming rather than a small stumble button on your browser window. So I just applied some simple tricks (may be you aware with those) and its done. Basically I need two things from StumbleUpon for chrome, which are</p>
<ul>
<li>A button in the bookmark bar with which I can stumble and</li>
<li>another button in the bookmark bar with which I can submit the website (which I am viewing currently) to StumbleUpon.</li>
</ul>
<p>I have achieved both of these. StumbleUpon provides a url code <a href="http://www.stumbleupon.com/s/#1vH77R/www.physicsgames.net/game/Demolition_City.html/">http://www.stumbleupon.com/s/</a> when you enter this url in browser, it will search and display a new website. To start stumbling in chrome just add a new page to bookmark bar, by right clicking on bookmark bar and sleect &#8220;Add Page&#8221; option. Then in the Name type anything (I typed &#8220;Stumble&#8221;) you like and in the next URL field enter <a href="http://www.stumbleupon.com/s/#1vH77R/www.physicsgames.net/game/Demolition_City.html/">http://www.stumbleupon.com/s/</a> URL, click OK to save and you&#8217;re done. Now click this button again and again and StumbleUpon will suggest new websites.</p>
<p>Now the next is submit current website to StumbleUpon, to achieve this add a new page in the bookmark bar (same as above) Type name (Submit to Stumble) and in th URL field type following javascript code,</p>
<p><span style="color:#3366ff;">javascript:document.location.href=&#8217;http://www.stumbleupon.com/s/&#8217;</span></p>
<p><span style="color:#3366ff;">+document.location.href;</span></p>
<p>(<em>Type the above code in single line, I have divide it to fit in my blog&#8217;s content area</em>)</p>
<p>Suppose you&#8217;re visiting the http://www.google.com/ then just click <strong>Submit to Stumble</strong> in button bookmark bar and StumleUpon will open the submit interface for you <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This works for me, very well. I am waiting for StumbleUpon toolbar from StumbleUpon developers, but till then not worries, I have the two button which I use mostly. Take your time guyz. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=168&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2009/07/11/google-chrome-stumbleupon-submit-and-stumbling-button/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET &#8211; How to send email in asp.net 2.0</title>
		<link>http://techahead.wordpress.com/2009/06/20/asp-net-how-to-send-email-in-asp-net-2-0/</link>
		<comments>http://techahead.wordpress.com/2009/06/20/asp-net-how-to-send-email-in-asp-net-2-0/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 13:49:18 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[asp.net 2.0]]></category>
		<category><![CDATA[asp.net mail]]></category>
		<category><![CDATA[send email]]></category>
		<category><![CDATA[system.net]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/?p=161</guid>
		<description><![CDATA[Emails are the important part of any web application to make an interaction between website and end users. I got many queries from my friends for “How to send emails in ASP.NET”, so I have created a sample email sending application in asp.net to give you an idea about email sending in asp.net. So take [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=161&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Emails are the important part of any web application to make an interaction between website and end users. I got many queries from my friends for “How to send emails in ASP.NET”, so I have created a sample email sending application in asp.net to give you an idea about email sending in asp.net. So take a look at the how to make an application which will send emails.</p>
<p>First of all setup your mail server settings in <strong>web.config</strong> file, so that you’ll need not to define the mail server settings every time in code. In the web.config file define the <strong>&lt;system.net&gt;</strong> tag to define the mail server settings as below:</p>
<p><span style="color:#0000ff;">&lt;!&#8211;Mail Server&#8211;&gt;</span></p>
<p><span style="color:#0000ff;">&lt;system.net&gt;<br />
&lt;mailSettings&gt;<br />
&lt;smtp deliveryMethod=&#8221;Network&#8221;&gt;<br />
&lt;network host=&#8221;your host name&#8221; port=&#8221;25&#8243; userName=&#8221;" password=&#8221;" defaultCredentials=&#8221;false&#8221;/&gt;<br />
&lt;/smtp&gt;<br />
&lt;/mailSettings&gt;<br />
&lt;/system.net&gt;</span></p>
<p>In the above settings change your host name in <strong>&lt;network&gt;</strong> tag. Port number usually default 25, but it depends on your mail server settings, add you username and password for mail server.</p>
<p>After setting up your mail server settings in web.config file, create a page from where you want to send emails. I have created default.aspx page from where I’ll send emails. In this page I have created a sample interface for sending emails, with some common fields, from, to, subject, and body of email with a Send Mail button. On click of the button I am executing the following code.</p>
<p><span style="color:#0000ff;">if (sendMail(txtfrom.Text, txtto.Text, txtsubject.Text, txtbody.Text))<br />
{<br />
lblmsg.Text = &#8220;Mail Sent&#8221;;<br />
}<br />
else<br />
{<br />
lblmsg.Text = &#8220;Some error has been occured, please try again!&#8221;;<br />
}</span></p>
<p>In the above code I am executing a <strong>sendmail </strong>function in if condition, sendmail function returns a bool type (<strong>true or false</strong>) value. If emails sent successfully then it will return true else return false. On the basis of that bool value returned by the sendmail function I am displaying the error message if email sending is failed. Sendmail function is defined in this default.aspx file, just download the sample app below and look by yourself, if have any problem please comment below.</p>
<p>This is a simple mail sending application with minimal options you can also use CC, BCC, attachments etc, just explore more options from this (<a href="http://www.systemnetmail.com/" target="_blank">http://www.systemnetmail.com/</a>) site which is specially made for describing the email sending method and function in ASP.NET 2.0.</p>
<p><strong>Download the sample application here</strong>: <a href="http://cid-9e5547502c371bbc.skydrive.live.com/self.aspx/Public/techAhead/how-to-send-email-in-asp.net/sendemail.zip" target="_blank">DOWNLOAD</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=161&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2009/06/20/asp-net-how-to-send-email-in-asp-net-2-0/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>
	</item>
		<item>
		<title>Fun &#8211; website development hip-hop style</title>
		<link>http://techahead.wordpress.com/2009/06/16/fun-website-development-hip-hop-style/</link>
		<comments>http://techahead.wordpress.com/2009/06/16/fun-website-development-hip-hop-style/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 16:51:28 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[hip-hop]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[website development]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/?p=155</guid>
		<description><![CDATA[Introduction Hi, I found this video while surfing on YouTube and its pretty interesting, will tell you all the basic concept of developing a website in today’s world. Watch and listen it carefully (lyrics are included below). Have fun Lyrics Your site design is the first thing people see it should be reflective of you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=155&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Hi, I found this video while surfing on YouTube and its pretty interesting, will tell you all the basic concept of developing a website in today’s world. Watch and listen it carefully (lyrics are included below). Have fun <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/a0qMe7Z3EYg?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span>
<h2>Lyrics</h2>
<blockquote><p>Your site design is the first thing people see<br />
it should be reflective of you and the industry<br />
easy to look at with a nice navigation<br />
when you can’t find what you want it causes frustration<br />
a clear Call to action to increase the temptation<br />
use appealing graphics they create motivation<br />
if you have animation<br />
use with moderation<br />
cause search engines can’t index the information<br />
display the logos of all your associations<br />
highlight your contact info that’s an obligation<br />
create a clean design you can use some decoration<br />
but to try to prevent any client hesitation<br />
every page that they click should provide and explanation<br />
should be easy to understand like having a conversation<br />
when you design the style go ahead and use your imagination<br />
but make sure you use correct color combinations<br />
do some investigation, look at other organizations<br />
but don’t duplicate or you might face a litigation<br />
design done, congratulations but it’s time to start construction<br />
follow these instructions when you move into production<br />
your Photoshop functions then slice that design<br />
do your layout with div’s make sure that it’s aligned<br />
please don’t use tables even though they work fine<br />
when it come to indexing they give searches a hard time<br />
make it easy for the spiders to crawl what you provide<br />
remove font type, font color and font size<br />
no background colors, keep your coding real neat,<br />
tag your look and feel on a separate style sheet<br />
better results with xml and css<br />
now you making progress, a lil closer to success<br />
describe your doctype so the browser can relate<br />
make sure you do it great or it won’t validate<br />
check in all browsers, I do it directly<br />
gotta make sure that it renders correctly<br />
some use IE, some others use Flock<br />
some use AOL, I use Firefox<br />
title everything including links and images<br />
don’t use italics, use emphasis<br />
don’t use bold, please use strong<br />
if you use bold that’s old and wrong<br />
when you use CSS, you page will load quicker<br />
client satisfied like they eating on a snicker<br />
they stuck on your page like you made it with a sticker<br />
and then they convert now that’s the real kicker<br />
make you a lil richer, your site a lil slicker<br />
design and code right man I hope you get the picture<br />
what I’m telling you is true man it should be a scripture<br />
if it’s built right you’ll be the pick of the litter<br />
everyone will want to follow you like twitter<br />
competition will get bitter and you’ll shine like glitter<br />
if you trying to grow your company will get bigger<br />
design and code right man can you get with it<span style="font-size:x-small;"><span style="font-family:Arial;"><br />
</span></span></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=155&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2009/06/16/fun-website-development-hip-hop-style/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>
	</item>
		<item>
		<title>Fun – Wedding In SQL Style</title>
		<link>http://techahead.wordpress.com/2008/09/22/fun-%e2%80%93-wedding-in-sql-style/</link>
		<comments>http://techahead.wordpress.com/2008/09/22/fun-%e2%80%93-wedding-in-sql-style/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 09:44:20 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/2008/09/22/fun-%e2%80%93-wedding-in-sql-style/</guid>
		<description><![CDATA[Introduction Smile please, hey guys I received this query through email from one of my friend. It looks great and funny; I am sharing it with you. Dedicated to all techies Wedding Sql Query CREATE PROCEDURE MyMarriage BrideGroom Male (25), Bride Female (22) AS BEGIN SELECT Bride FROM India_Brides WHERE FatherInLaw = ‘Millionaire’ AND Count(Car) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=149&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Smile please, hey guys I received this query through email from one of my friend. It looks great and funny; I am sharing it with you. Dedicated to all techies <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Wedding Sql Query</h2>
<p><span style="color:#0000ff;">CREATE PROCEDURE MyMarriage<br />
BrideGroom Male (25),<br />
Bride Female (22)<br />
AS<br />
BEGIN<br />
SELECT Bride FROM India_Brides<br />
WHERE FatherInLaw = ‘Millionaire’<br />
AND Count(Car) &gt; 20   AND HouseStatus=’ThreeStoreyed’<br />
AND BrideEduStatus IN (B.TECH ,BE ,Degree ,MCA ,MBA)<br />
AND HavingBrothers = NULL<br />
AND Sisters = NULL<br />
SELECT Gold, Cash, Car, BankBalance FROM FatherInLaw<br />
UPDATE MyBankAccout SET MyBal = (MyBal + FatherInLawBal)<br />
UPDATE MyLocker SET MyLockerContents = (MyLockerContents + FatherInLawGold)<br />
INSERT INTO MyCarShed VALUES (’BMW’)<br />
END<br />
GO</span></p>
<h2>Then the wife writes the below query:</h2>
<p><span style="color:#0000ff;">DROP Husband;<br />
COMMIT;</span></p>
<p><strong>Have a nice &amp; smiley day!</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=149&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2008/09/22/fun-%e2%80%93-wedding-in-sql-style/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL – Step By Step Installation of SQL Server 2008</title>
		<link>http://techahead.wordpress.com/2008/09/22/sql-%e2%80%93-step-by-step-installation-of-sql-server-2008/</link>
		<comments>http://techahead.wordpress.com/2008/09/22/sql-%e2%80%93-step-by-step-installation-of-sql-server-2008/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 09:43:51 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/2008/09/22/sql-%e2%80%93-step-by-step-installation-of-sql-server-2008/</guid>
		<description><![CDATA[Step by step installation of Microsoft SQL server 2008. read more &#124; digg story<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=148&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Step by step installation of Microsoft SQL server 2008.</p>
<p><a href="http://blog.techsvr.com/?p=69">read more</a> | <a href="http://digg.com/programming/SQL_n_Step_By_Step_Installation_of_SQL_Server_2008">digg story</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=148&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2008/09/22/sql-%e2%80%93-step-by-step-installation-of-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET – Connecting asp.net to mysql database</title>
		<link>http://techahead.wordpress.com/2008/09/13/aspnet-connecting-aspnet-to-mysql-database/</link>
		<comments>http://techahead.wordpress.com/2008/09/13/aspnet-connecting-aspnet-to-mysql-database/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 13:04:48 +0000</pubDate>
		<dc:creator>Prashant Pandey</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://techahead.wordpress.com/2008/09/13/aspnet-%e2%80%93-connecting-aspnet-to-mysql-database/</guid>
		<description><![CDATA[Introduction MySQL is the most scalable and widely used database server on web. Mostly applications I have seen are using mysql as a database server due to its fast speed (I suppose), and easy to use features, and the most important thing is its open source. You need not to take any license for it, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=139&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Introduction</h3>
<p>MySQL is the most scalable and widely used database server on web. Mostly applications I have seen are using mysql as a database server due to its fast speed (I suppose), and easy to use features, and the most important thing is its open source. You need not to take any license for it, its totally FREE and also easy to setup. In this article we’ll learn how to connect mysql database with asp.net.</p>
<h3>Why to connect asp.net with mySql</h3>
<p>The question is why to connect mysql with asp.net if we already having a giant sql with asp.net. So the answer is “As I am an asp.net developer, mostly I worked with SQL, but as the popularity of mysql, force me to just give a try to mysql. So I am curious to know that can we connect mysql with asp.net. To get answer of my curiosity I installed wapserver (which contains php, mysql and apache) it in my system, and found that mysql is almost same as sql and easy to use.</p>
<p>One feature which I have noticed about mysql and its best according to me and in comparison of SQL is FULLTEXT searching in mysql. FULLTEXT searching is quite easy and fast in mysql than SQL server. In mysql just create a FULLTEXT type index and here you are ready to use it, whereas in SQL you have to create FULLTEXT by populating it which will take too much time if you have around 4lakh records in your table. In mysql it’s a matter of just 10-15 seconds. Just create FULLTEXT index and you are ready to search your table.</p>
<p>I am not saying that due to some of the easy to use features of mysql, you need to move from sql to mysql. Both are right in their area’s, SQL Server is also a very good database server which is mostly used in many large software’s, in data ware houses etc. You can’t ignore SQL. I am also not going to work with mySql for always. But the point is if you are a web developer you should be aware with latest in market, and I thought let’s try to connect mysql with asp.net.</p>
<h3>How to install mysql and how to create a table?</h3>
<p>As we are going to connect mysql server with asp.net, first we need a mysql database. To install mysql I have used wapserver which is a package of php, mysql server and apache server , downloaded the latest version of WAMP Server from <a title="Wampserver" href="http://www.wampserver.com" target="_blank">http://www.wampserver.com</a> and install it.</p>
<p>Normally IIS Server is installed in ASP.NET developers PC’s, so, make user that if your IIS is running the stop IIS server because mysql uses apache (apache will be installed by wapserver setup) server to run, And what I seen is IIS and Apache will not able to run simultaneously. So better to stop IIS Server</p>
<p>Then open your browser and type <em>http://localhost/phpmyadmin/</em> and press enter. It will open the phpmyadmin interface which we use to interact with mysql server. It looks like as below;</p>
<p><img class="alignnone size-full wp-image-176" title="http://localhost/phpmyadmin/ " src="http://techahead.files.wordpress.com/2008/09/1.png?w=500" alt=""   /></p>
<p>After opening it create a database, using the Create new database, Enter your database name and click create button.</p>
<p><img class="alignnone size-full wp-image-177" title="Create a new database" src="http://techahead.files.wordpress.com/2008/09/2.png?w=500" alt=""   /></p>
<p>Above action will create a database and give you a information message something like below:</p>
<p><img class="alignnone size-full wp-image-178" title="List of databases" src="http://techahead.files.wordpress.com/2008/09/3.png?w=500&#038;h=162" alt="" width="500" height="162" /></p>
<p>Now create tables in your database using the “Operations” tab given in the top navigation bar</p>
<p><img class="alignnone size-full wp-image-179" title="Database tools in PhpMyAdmin" src="http://techahead.files.wordpress.com/2008/09/4.png?w=500" alt=""   /></p>
<p>Clicking the “Operations” tab will open the interface like below, enter the table-name and the number of fields you would like to have in the table. My table name is “users” and it will contain two columns “Id” and “Name”, click “Go” button after entering the name and fields.</p>
<p><img class="alignnone size-full wp-image-180" title="Create a new table in new database" src="http://techahead.files.wordpress.com/2008/09/5.png?w=500" alt=""   /></p>
<p>Interface like below will open. Enter the field name and select the proper data type you want.</p>
<p><img class="alignnone size-full wp-image-181" title="Add columns into table" src="http://techahead.files.wordpress.com/2008/09/6.png?w=500" alt=""   /></p>
<p>In SQL we have Identity type of columns, here in mysql we have the same ting but with different name, they are called as “auto_increment” columns, in the above interface when you scroll your browser horizontally you’ll get the following filed ”Extra”, select the “auto_increment” option from the Extra field. Then select the primary key radio button, because in mysql a table can only have 1 auto_increment column and it must be your primary key.</p>
<p><img class="alignnone size-full wp-image-182" title="Auto-increament in mysql" src="http://techahead.files.wordpress.com/2008/09/8.png?w=500" alt=""   /></p>
<p>After filling all the details properly click on save, this will create your database table named “users”</p>
<p>To insert record in your table click o the Insert tab in the top navigation bar. Which opens an interface for entering records, enter 4-5 records in your table.</p>
<p><img class="alignnone size-full wp-image-183" title="Insert values in the table" src="http://techahead.files.wordpress.com/2008/09/9.png?w=500" alt=""   /></p>
<p>So, we have created a mysql table. Now we have to fetch data from this table in asp.net application.</p>
<p><strong>What we need to connect asp.net with mysql</strong></p>
<p>As we know Microsoft is not providing support for connecting to a mysql database server in Visual Studio .NET. But I personally want to appeal Microsoft to provide embedded (as they are providing for sql) support for mysql in .net framework.</p>
<p>So To connect ASP.NET with mySql you need some external DLL which I have downloaded from a website (don’t remember the site name may be its mysql’s official site) and the DLL size is around 300KB which contains all methods that are used to connect mysql and asp.net. You can download latest mysql-.net connector DLL from here: <a title="Download MySQL Connector/Net" href="http://dev.mysql.com/downloads/connector/net/" target="_blank">http://dev.mysql.com/downloads/connector/net/</a> .</p>
<p>As I said it’s only 300KB, so I think including a 300KB DLL will not affect very much to your application.</p>
<p>MySQL connection methods are almost same like SQL connection methods. Just you have to put MySQL prefix in place of SQL (<em>for example: SqlConnection, MySqlConnection and SqlDataAdapter is MySqlDataAdapter</em>).</p>
<p><strong>Steps of connecting mysql with asp.net</strong></p>
<p>Follow the following steps to accomplish our task;</p>
<p><em>Here I am making connection string on click of a button. Normally in ASP.NET 2.0 we create the connection string in web.config file. So don’t worries it’s same, as we are creating the ConnectionStrings for sql in web.config, same method will be applied for mysql also. Create the connection string in web.config and then fetch and connect it using MySqlConnection class.</em></p>
<ol>
<li>Download latest MySQL connector DLL for .NET from here <a title="Download MySQL Connector/Net" href="http://dev.mysql.com/downloads/connector/net/" target="_blank">http://dev.mysql.com/downloads/connector/net/</a>.</li>
<li>Include the DLL in your application, under <em>Bin </em>folder. As I have done below</li>
</ol>
<p>Right click on solution explorer of your project and click on “Add Reference”.</p>
<p><img class="alignnone size-full wp-image-184" title="Add refrence from solution explorer in .net" src="http://techahead.files.wordpress.com/2008/09/10.png?w=500" alt=""   /></p>
<p>“Add Refrence” option will open the following dialog box, sleek the MySQL DLL and click OK</p>
<p><img class="alignnone size-full wp-image-185" title="Add Refrence Dialog Box" src="http://techahead.files.wordpress.com/2008/09/11.png?w=500" alt=""   /></p>
<p>Then you’ll notice bin folder is added in your application with mysql DLL</p>
<p><img class="alignnone size-full wp-image-186" title="DLL added to bin folder" src="http://techahead.files.wordpress.com/2008/09/12.png?w=500" alt=""   /></p>
<p>Then after include this in your web page code behind file, as I have done below.</p>
<p style="padding-left:30px;">3.  Including DLL in our code to use.</p>
<pre>using MySql.Data;
using MySql.Data.MySqlClient;
</pre>
<p>I am demonstrating it here in ASP.NET (C#), But almost everything is same in VB, just little bit syntax difference.</p>
<p>After including the DLL in your code, make connection as done below.</p>
<p style="padding-left:30px;">4. Making connection</p>
<pre>MySqlConnection mysqlCon = new MySqlConnection("server=localhost; user; password=; database=qs_dev;");</pre>
<p>Using above code you can connect a mysql database with asp.net; put your server name, user id, password and database name. In my example I am fetching data from a table and displaying it in a asp.net grid view control. After making connection, now we are going to fetch the data from mysql table and will store that database in the dataset and bind it with grid view.</p>
<p style="padding-left:30px;">5. Executing the query using MySQLDataAdater to get the data from      database</p>
<pre>MySqlDataAdapter mysqlAdap = new MySqlDataAdapter("SELECT Id, Name FROM users", mysqlCon);
</pre>
<p style="padding-left:30px;">6. Creating dataset object and filling that database with data</p>
<pre>DataSet ds = new DataSet();mysqlAdap.Fill(ds, "users");
</pre>
<p>7. Binding dataset with grid view (my grid view name is grvGrid)</p>
<pre>grvGrid.DataSource = ds.Tables["users"];
grvGrid.DataBind();
</pre>
<p>After following all the above given steps, run your application and you are connected and ready to use your data stored in mysql. In mySql most of the queries are same as SQL queries, but still there are many differences in syntax and the ay of using them. But by googling you can get the proper syntax of mysql.</p>
<p>In my demo application I have two buttons</p>
<ol>
<li>Execute MySql</li>
<li>Clear data from grid view</li>
</ol>
<p>1<sup>st</sup> button will fill the data in the grid view and 2<sup>nd</sup> will clear the data from grid view. Now you can make use of mySql connection according to your application needs. You can download the example from here and if having any trouble in understanding the example the let me know via commenting here on this article.</p>
<h3>Download</h3>
<p><a href="http://cid-9e5547502c371bbc.skydrive.live.com/self.aspx/Public/techAhead/Connecting%5E_asp%5E_dot%5E_net%5E_to%5E_mysql%5E_database/mySqlConnection%5E_CSharp.zip"><img class="alignnone size-full wp-image-187" title="Download Demo Application" src="http://techahead.files.wordpress.com/2008/09/14.png?w=500" alt=""   /></a></p>
<p>This is all about the connecting mysql with asp.net, it’s quite long but half knowledge is always leads to big errors. I have tried my best to explain all things, if you face any problem in understanding this example, just leave your comment here.</p>
<p>Thanks <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techahead.wordpress.com/139/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techahead.wordpress.com/139/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techahead.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techahead.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techahead.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techahead.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techahead.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techahead.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techahead.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techahead.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techahead.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techahead.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techahead.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techahead.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techahead.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techahead.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techahead.wordpress.com&amp;blog=1790377&amp;post=139&amp;subd=techahead&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techahead.wordpress.com/2008/09/13/aspnet-connecting-aspnet-to-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80580a16e84d6095d55ca83e0743b90c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantvictory</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/1.png" medium="image">
			<media:title type="html">http://localhost/phpmyadmin/ </media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/2.png" medium="image">
			<media:title type="html">Create a new database</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/3.png" medium="image">
			<media:title type="html">List of databases</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/4.png" medium="image">
			<media:title type="html">Database tools in PhpMyAdmin</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/5.png" medium="image">
			<media:title type="html">Create a new table in new database</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/6.png" medium="image">
			<media:title type="html">Add columns into table</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/8.png" medium="image">
			<media:title type="html">Auto-increament in mysql</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/9.png" medium="image">
			<media:title type="html">Insert values in the table</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/10.png" medium="image">
			<media:title type="html">Add refrence from solution explorer in .net</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/11.png" medium="image">
			<media:title type="html">Add Refrence Dialog Box</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/12.png" medium="image">
			<media:title type="html">DLL added to bin folder</media:title>
		</media:content>

		<media:content url="http://techahead.files.wordpress.com/2008/09/14.png" medium="image">
			<media:title type="html">Download Demo Application</media:title>
		</media:content>
	</item>
	</channel>
</rss>
