<?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>Shaan-Share Your Ideas About Asp.net</title>
	<atom:link href="http://gowrishaan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gowrishaan.wordpress.com</link>
	<description>Post Your ASP.NET queries To My Blog</description>
	<lastBuildDate>Sat, 23 May 2009 07:25:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gowrishaan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Shaan-Share Your Ideas About Asp.net</title>
		<link>http://gowrishaan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gowrishaan.wordpress.com/osd.xml" title="Shaan-Share Your Ideas About Asp.net" />
	<atom:link rel='hub' href='http://gowrishaan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to add the New DLL(user created) File in our application</title>
		<link>http://gowrishaan.wordpress.com/2009/05/23/how-to-add-the-new-dlluser-created-file-in-our-application/</link>
		<comments>http://gowrishaan.wordpress.com/2009/05/23/how-to-add-the-new-dlluser-created-file-in-our-application/#comments</comments>
		<pubDate>Sat, 23 May 2009 07:25:50 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[class(.cs) and DLL]]></category>
		<category><![CDATA[Add the DLL]]></category>
		<category><![CDATA[DLL in asp.net]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/?p=108</guid>
		<description><![CDATA[In this session we can discuss about the how to add the user created DLL from your application, We already discuss the how to convert the class (.cs) to DLL, after create the DLL you have a problem how to add your DLL in to the required application, Its very simple………….. How to make the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=108&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000;">In this session we can discuss about the how to add the user created DLL from your application, We already discuss the how to convert the class (.cs) to DLL, after create the DLL you have a problem how to add your DLL in to the required application, Its very simple…………..</span></p>
<p><span style="color:#ff0000;"><a title="How to make the class(.cs) to DLL" href="http://gowrishaan.wordpress.com/2009/05/22/how-to-make-class-cs-file-into-dll/">How to make the class(.cs) to DLL</a></span></p>
<p><span style="color:#0000ff;">First you have to add the DLL in your application</span></p>
<p><span style="color:#ff0000;">Clik  website-&gt;Add reference-&gt;choose browse tab(</span><span style="color:#000000;">you can access the path where you save the DLL</span>)</p>
<p><span style="color:#000000;">That it you will add your DLL in your application… next we have to discuss how to access the DLL method in your app..</span></p>
<p><span style="color:#000000;">First add the namespace of the DLL</span> <strong> </strong><span style="color:#ff0000;">using classdll;</span></p>
<p><span style="color:#000000;">Second declare the DLL class inside or outside the page load</span></p>
<p><span style="color:#ff0000;">Class1 callcls=new Class1();</span></p>
<p>Third using the class object call the method..</p>
<p><span style="color:#ff0000;">Long var=callcls.Add(12);//<span style="color:#000000;">Add will be one of the method will used in your DLL</span><br />
</span></p>
<p><span style="color:#ff0000;">Response.Write(value);</span></p>
<p>Ok that fine now you can create the DLL file and Add the DLL into your application then access the DLL method also, I hope you will enjoy this session…..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=108&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/05/23/how-to-add-the-new-dlluser-created-file-in-our-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>How to make class(.cs) file into DLL</title>
		<link>http://gowrishaan.wordpress.com/2009/05/22/how-to-make-class-cs-file-into-dll/</link>
		<comments>http://gowrishaan.wordpress.com/2009/05/22/how-to-make-class-cs-file-into-dll/#comments</comments>
		<pubDate>Fri, 22 May 2009 07:52:29 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[class(.cs) and DLL]]></category>
		<category><![CDATA[class(.cs) to dll]]></category>
		<category><![CDATA[DLL]]></category>
		<category><![CDATA[how to create dll]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/?p=101</guid>
		<description><![CDATA[Hi guys this session we have to discuss how to create the DLL (Dynamic link libraries) file from class (.cs), for this I was search and find out the solution it was quite easy to understand, first why we are using DLL instead class (.cs) , the only reason is security when we convert .cs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=101&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000;">Hi guys this session we have to discuss how to create the DLL (Dynamic link libraries) file from class (.cs), for this I was search and find out the solution it was quite easy to understand, first why we are using DLL instead class (.cs) , the only reason is security when we convert .cs file to dll no one can see through your coding….</span></p>
<p><span style="color:#0000ff;">How to make class(.cs) file into dll</span></p>
<p>1. <span style="color:#800000;">In Microsoft visual studio file-&gt;new-&gt;project</span><br />
2. <span style="color:#800000;">choose project type as c# and template will be class libraries</span><br />
3.<span style="color:#800000;"> the project name was classdll</span><br />
4.<span style="color:#008000;"> <span style="color:#800080;">check the classdll location in your hard disk, there is one folder name was  bin-&gt;debug-&gt; here only your class file will convert into dll</span></span><br />
5.<span style="color:#800080;">your file name was class1.cs</span><br />
6.<span style="color:#800080;">first add your libraries whatever you want</span><br />
7. <span style="color:#333399;">it show the error (missing assembly reference) you have to add the some libraries move to<br />
Project-&gt;addreference-&gt;.net(tab) add your dll files…</span></p>
<p>8. <span style="color:#333399;">your class file will be</span><br />
<strong><span style="color:#ff0000;"> namespace classdll<br />
{<br />
public class Class1<br />
{<br />
}<br />
}<br />
</span>A</strong>bove like this<br />
9.<span style="color:#333399;">you can placed your .cs coding in the class1 method</span><br />
<span style="color:#ff0000;">public class Class1<br />
{<br />
public long Add(long val1)//don’t give the static method<br />
{<br />
return val1;<br />
}<br />
}</span></p>
<p><span style="color:#333399;">Now you have to check the file have error or not,if any error not found just run the class file..the dll file will be created in the bin folder…</span></p>
<p><span style="color:#333399;">Above are the procedure to create the class(.cs) file into DLL, I hope you will enjoy this session…..</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=101&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/05/22/how-to-make-class-cs-file-into-dll/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>Calling postback event from Javascript</title>
		<link>http://gowrishaan.wordpress.com/2009/05/20/calling-postback-event-from-javascript/</link>
		<comments>http://gowrishaan.wordpress.com/2009/05/20/calling-postback-event-from-javascript/#comments</comments>
		<pubDate>Wed, 20 May 2009 13:14:19 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[Ajax in Asp.net]]></category>
		<category><![CDATA[JavaScript in ASP.NET]]></category>
		<category><![CDATA[Calling postback from javascript]]></category>
		<category><![CDATA[dopostback]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/?p=78</guid>
		<description><![CDATA[Hello Everyone in this Session we can discuss about the calling the postback from java script , In asp.net For every control there is lot of option is there, for example in my program label is there and html textbox is there when I change the content of text box(keyup) have to change the content [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=78&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000;">Hello Everyone in this Session we can discuss about the calling the postback from java script , In asp.net For every control there is lot of option is there, for example in my program label is there and html textbox is there when I change the content of text box(keyup) have to change the content of label, When change the content in textbox calling a javascript file from that it will fire the postback event</span></p>
<p><span style="color:#0000ff;">In Java Script</span></p>
<p><span style="color:#800000;">&lt;script language=&#8221;javascript&#8221;&gt;<br />
</span></p>
<p><span style="color:#800000;">function call_scrpt()<br />
{</span></p>
<p><span style="color:#800000;">__doPostBack(&#8220;&lt;%=lbt.ClientID %&gt;&#8221;);<br />
}<br />
&lt;/script&gt;</span></p>
<p><span style="color:#000000;">The lbt is the id of the label will placed in the updatepanel…. doPostBack will get the id and moved to codebehind page.</span><br />
<span style="color:#0000ff;">Design Page</span></p>
<p><span style="color:#800000;">&lt;asp:ScriptManager ID=&#8221;ScriptManager1&#8243;  runat=&#8221;server&#8221;&gt;</span></p>
<p><span style="color:#800000;">&lt;/asp:ScriptManager&gt;</span></p>
<p><span style="color:#800000;">&lt;asp:UpdatePanel ID=&#8221;UpdatePanel1&#8243; runat=&#8221;server&#8221;&gt;</span></p>
<p><span style="color:#800000;">&lt;ContentTemplate&gt;</span></p>
<p><span style="color:#800000;">&lt;asp:Label ID=&#8221;lbt&#8221; Text=&#8221;Intial Text&#8221; runat=&#8221;server&#8221; /&gt;</span></p>
<p><span style="color:#800000;">&lt;/ContentTemplate&gt;</span></p>
<p><span style="color:#800000;">&lt;/asp:UpdatePanel&gt;</span></p>
<p><span style="color:#800000;">&lt;input type=&#8221;text&#8221;  id=&#8221;t1&#8243;  value=&#8221;gowri&#8221;  onkeyup=&#8221;JavaScript:call_scrpt();&#8221;  /&gt;</span></p>
<p><span style="color:#000000;"> In Html input call the java script file during the  onkeyup function……</span></p>
<p><span style="color:#0000ff;">Code behind:</span><br />
<span style="color:#800000;">if (ScriptManager1.IsInAsyncPostBack)<br />
{<br />
lbt.Text = &#8220;ajax is working&#8221;;<br />
}</span><br />
<span style="color:#000000;">Above coding will be placed in the page load, I hope this will help you for postback option in javascript.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=78&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/05/20/calling-postback-event-from-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Display The Data in Asp.net</title>
		<link>http://gowrishaan.wordpress.com/2009/05/15/how-to-display-the-data-in-asp-net/</link>
		<comments>http://gowrishaan.wordpress.com/2009/05/15/how-to-display-the-data-in-asp-net/#comments</comments>
		<pubDate>Fri, 15 May 2009 05:57:58 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[database display in Asp.net]]></category>
		<category><![CDATA[display the data]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/?p=89</guid>
		<description><![CDATA[Hi Guys in this session we can discuss about the how to display the data (data from database), it was quite easy to get the data for that declare the sqlconnection, sqldatareader and sqlcommand. In sqlconnection declare the connection string. In sqlcommand we can declare the sql command, the sqlcommand execute by the help of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=89&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi Guys in this session we can discuss about the how to display the data (data from database), it was quite easy to get the data for that declare the sqlconnection, sqldatareader and sqlcommand. In sqlconnection declare the connection string. In sqlcommand we can declare the sql command, the sqlcommand execute by the help of sqldatareader.</p>
<p><span style="color:#0000ff;"><strong>Header file</strong></span></p>
<p>Before going to that first declare the header file, because we can access the sql.</p>
<p><span style="color:#800000;"><strong>using System.Data.SqlClient;</strong></span></p>
<p>Now we are going to example program to explain how to display the data from database. For example we have country table in that country short name and full name there, if u click the short name in dropdownlist box the corresponding full will be appear in the another label</p>
<p><span style="color:#0000ff;"><strong>Coding in Design Page</strong></span></p>
<p><span style="color:#800000;"><strong>&lt;asp:DropDownList ID=&#8221;DropDownList1&#8243; runat=&#8221;server&#8221; AutoPostBack=&#8221;True&#8221; DataSourceID=&#8221;SqlDataSource1&#8243; DataTextField=&#8221;shortname&#8221; DataValueField=&#8221;shortname&#8221;&gt;</strong><strong>&lt;/asp:DropDownList&gt;</strong></span></p>
<p><span style="color:#008080;"><strong>&lt;asp:SqlDataSource ID=&#8221;SqlDataSource1&#8243; runat=&#8221;server&#8221; ConnectionString=&#8221;&lt;%$ ConnectionStrings:signquickonline %&gt;&#8221;SelectCommand=&#8221;SELECT [shortname], [fullname] FROM [countries]&#8220;&gt;&lt;/asp:SqlDataSource&gt;</strong></span></p>
<p><span style="color:#000080;"><strong>&lt;asp:GridView ID=&#8221;GridView1&#8243; runat=&#8221;server&#8221;&gt;&lt;/asp:GridView&gt;</strong></span></p>
<p><span style="color:#000080;"><strong>&lt;asp:Label ID=&#8221;ldisplay&#8221; runat=&#8221;server&#8221; /&gt;;</strong></span></p>
<p><span style="color:#0000ff;"><strong>In Code behind</strong></span></p>
<p><span style="color:#800000;"><strong>SqlConnection mycn = new SqlConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["signquickonline"].ConnectionString);</strong></span></p>
<p><span style="color:#800000;"><strong>SqlDataReader dataReader = null;</strong></span></p>
<p><span style="color:#800000;"><strong>mycn.Open();</strong></span></p>
<p><span style="color:#800000;"><strong>SqlCommand cmd = new SqlCommand();</strong></span></p>
<p><span style="color:#800000;"><strong>cmd.CommandText = (&#8220;SELECT [fullname] FROM [sign].[dbo].[countries] where [shortname]=&#8217;&#8221; + DropDownList1.SelectedValue.ToString() +&#8221;&#8216;&#8221;);</strong></span></p>
<p><span style="color:#800000;"><strong>cmd.Connection = mycn;</strong></span></p>
<p><span style="color:#800000;"><strong>dataReader = cmd.ExecuteReader();</strong></span></p>
<p><span style="color:#800000;"><strong>if (dataReader.HasRows) 									  {													      while (dataReader.Read())</strong></span></p>
<p><span style="color:#800000;"><strong>{</strong></span></p>
<p><span style="color:#800000;"><strong>ldisplay.Text = dataReader["fullname"].ToString();</strong></span></p>
<p><span style="color:#800000;"><strong>}</strong></span></p>
<p><span style="color:#800000;"><strong>}</strong></span></p>
<p>Place the coding in the page load event. here have the single output we can display in the label. Suppose we have multiple set of output what we can do?  But still there is a chance declare the datalist or gridview in design page and access the datatable and datarow in the coding page.</p>
<p><span style="color:#0000ff;"><strong>Samplecoding</strong></span></p>
<p>Add the gridview in design page</p>
<p>In Code behind</p>
<p>After execute the command(dataReader = cmd.ExecuteReader();)</p>
<p>Declare the datatable and datarow</p>
<p><span style="color:#800000;"><strong>DataTable objDT = new DataTable(&#8220;RVI&#8221;);</strong></span></p>
<p><span style="color:#800000;"><strong>objDT.Columns.Add(new DataColumn(&#8220;name&#8221;, typeof(String)));</strong></span></p>
<p><span style="color:#800000;"><strong>DataRow objDR;</strong></span></p>
<p><span style="color:#800000;"><strong>if (dataReader.HasRows)</strong></span></p>
<p><span style="color:#800000;"><strong>{</strong></span></p>
<p><span style="color:#800000;"><strong>while (dataReader.Read())</strong></span></p>
<p><span style="color:#800000;"><strong>{</strong></span></p>
<p><span style="color:#800000;"><strong>objDR = objDT.NewRow();</strong></span></p>
<p><span style="color:#800000;"><strong>objDR["name"] = dataReader["fullname"].ToString();</strong></span></p>
<p><span style="color:#800000;"><strong>objDT.Rows.Add(objDR);</strong></span></p>
<p><span style="color:#800000;"><strong>GridView1.DataSource = objDT.DefaultView;</strong></span></p>
<p><span style="color:#800000;"><strong>GridView1.DataBind();</strong></span></p>
<p><span style="color:#800000;"><strong>}</strong></span></p>
<p><span style="color:#800000;"><strong>}</strong></span></p>
<p>I hope you will enjoy this session.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=89&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/05/15/how-to-display-the-data-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>How To insert the data in sql server from Asp.net</title>
		<link>http://gowrishaan.wordpress.com/2009/05/12/how-to-insert-the-data-in-sql-server-from-asp-net/</link>
		<comments>http://gowrishaan.wordpress.com/2009/05/12/how-to-insert-the-data-in-sql-server-from-asp-net/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:47:17 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[Asp.net]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/?p=79</guid>
		<description><![CDATA[Hello guys sorry for the long days, in this session we can discuss about the how to insert the data in sql server using Asp.net. In sql server: The table name will be materials_details in that two fields are there first one was sign_material_id and Sign_material_name. In asp.net Declare the two textbox and one button [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=79&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello guys sorry for the long days, in this session we can discuss about the how to insert the data in sql server using Asp.net.<br />
<b><font color="#0000FF">In sql server:</font></b><br />
 The table name will be materials_details in that two fields are there first one was sign_material_id and Sign_material_name.<br />
<b><font color="#0000FF">In asp.net</font></b><br />
Declare the two textbox and one button when u click the button the value will be insert into the text box.<br />
      <strong>&lt;asp:TextBox ID=&quot;tid&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;<br />
&lt;asp:TextBox ID=&quot;tname&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:Button ID=&quot;clkbutton&quot; OnClick=&quot;btn_clicked&quot; runat=&quot;server&quot;<br />
Text=&quot;click here&quot; /&gt;</strong><br />
When u click the button the corresponding method will be fire,in that btn_clicked method you call the sqldatasource insert process</p>
<p><b><font color="#0000FF">For example</font></b></p>
<p><strong>protected void btn_clicked(object sender, EventArgs e)<br />
    {<br />
        inser_data.Insert();<br />
    }</strong></p>
<p>The insert_data was name of the sqldatasource name in that datasource u have to give the connection string and what type command you have to perform like insert or update.here we can insert the data so you can use the insertcommand<br />
In that you write your insert command same as sql server and below you choose the insertparameter in that above textbox name will be control id and the name will be given to insert command.</p>
<p><b><font color="#0000FF">sqldatasource</font></b></p>
<p><strong>&lt;asp:SqlDataSource ID=&quot;inser_data&quot; runat=&quot;server&quot; ConnectionString=&quot;&lt;%$ ConnectionStrings:con1 %&gt;&quot;  InsertCommand=&quot;INSERT INTO [materials_details] ([sign_material_id],[sign_material_name]) VALUES (@id,@nme)&quot; &gt;<br />
  &lt;InsertParameters&gt;<br />
  &lt;asp:ControlParameter ControlID=&quot;tid&quot; Type=&quot;String&quot; Name=&quot;id&quot; /&gt;<br />
  &lt;asp:ControlParameter ControlID=&quot;tname&quot; Type=&quot;String&quot; Name=&quot;nme&quot;  /&gt;<br />
  &lt;/InsertParameters&gt;<br />
  &lt;/asp:SqlDataSource&gt;</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=79&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/05/12/how-to-insert-the-data-in-sql-server-from-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>sleep/wait in javascript</title>
		<link>http://gowrishaan.wordpress.com/2009/04/24/sleepwait-in-javascript/</link>
		<comments>http://gowrishaan.wordpress.com/2009/04/24/sleepwait-in-javascript/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 12:27:45 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[JavaScript in ASP.NET]]></category>
		<category><![CDATA[sleep method in javascript]]></category>
		<category><![CDATA[wait method in javascript]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/2009/04/24/sleepwait-in-javascript/</guid>
		<description><![CDATA[In this session we can discuss about the sleep or wait in javascript, In generally no sleep or wait method are there but we set a timer when the time expire the function will be executed. Using setTimeout method we can proceed the sleep or wait process. Sample Coding: In design page You just declare [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=72&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this session we can discuss about the sleep or wait in javascript, In generally no sleep or wait method are there but we set a timer when the time expire the function will be executed. Using setTimeout method we can proceed the sleep or wait process.<br />
<b><font color="#0000FF">Sample Coding:</font></b></p>
<p>In design page<br />
You just declare the button, when the button clicked alert box will appear after some time only.<br />
<b>&lt;asp:Button ID=&quot;Button1&quot; Text=&quot;Clck&quot;  runat=&quot;server&quot; OnClientClick=&quot;JavaScript:txtchnge();&quot; /&gt;</b><br />If you click the button, that will fire the javascript function.<br /> <br />
<b><font color="#0000FF">JavaScript</font></b></p>
<p><b>function txtchnge()<br />
  { <br />
    setTimeout(&#8220;alert(&#8216;hello&#8217;)&#8221;,5000);<br />
  }<br /></b><br />
When the javascript function fired after few time alert box will appear, I hope you will enjoy this session.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=72&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/04/24/sleepwait-in-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>ValidatorCallout Extender in Ajax ASP.NET</title>
		<link>http://gowrishaan.wordpress.com/2009/04/23/validatorcallout-extender-in-ajax-aspnet/</link>
		<comments>http://gowrishaan.wordpress.com/2009/04/23/validatorcallout-extender-in-ajax-aspnet/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 10:51:51 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[Ajax in Asp.net]]></category>
		<category><![CDATA[validator in ajax asp.net]]></category>
		<category><![CDATA[ValidatorCallout Extender]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/?p=66</guid>
		<description><![CDATA[In this session we discuss about the validation in ajax asp.net, In my blog we already discuss about the validator in Asp.net, now we discuss about how to implement the Asp.net validator to ajax. In ajax we have ValidatorCalloutExtender used for enhances the functionality of existing ASP.NET validators. Sample coding: &#60;asp:TextBox ID=&#34;name&#34; runat=&#34;server&#34; /&#62; &#60;asp:RequiredFieldValidator [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=66&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this session we discuss about the validation in ajax asp.net, In my blog we already discuss about the validator in Asp.net, now we discuss about how to implement the Asp.net validator to ajax. In ajax we have ValidatorCalloutExtender used for enhances the functionality of existing ASP.NET validators.<br />
<b><font color="#0000FF">Sample coding:</font></b><br />
<b>&lt;asp:TextBox ID=&quot;name&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RequiredFieldValidator ID=&quot;rname&quot; ControlToValidate=&quot;name&quot; runat=&quot;server&quot; ValidationGroup=&quot;fg&quot; Display=&quot;None&quot; ErrorMessage=&quot;enter the name&quot; /&gt;<br />
&lt;ajaxToolkit:ValidatorCalloutExtender ID=&quot;ajid&quot; TargetControlID=&quot;rname&quot; runat=&quot;server&quot; /&gt; </b><br />
Here validatorcallout targertcontrol id will take the id of requirefieldvalidator and display will be none<br />
<b>&lt;asp:TextBox ID=&quot;email&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RegularExpressionValidator ID=&quot;em1&quot; ControlToValidate=&quot;email&quot; ErrorMessage=&quot;Enter the correct email&quot; Display=&quot;None&quot; ValidationGroup=&quot;fg&quot; runat=&quot;server&quot; ValidationExpression=&quot;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&quot;/&gt;<br />
&lt;ajaxToolkit:ValidatorCalloutExtender ID=&quot;ajem&quot; TargetControlID=&quot;em1&quot; runat=&quot;server&quot; /&gt;</b><br />
Set the id of regularexpressionvalidator to target id of validatorcallout.<br />
<b>&lt;asp:Button ID=&quot;bt&quot; Text=&quot;click here&quot; runat=&quot;server&quot; ValidationGroup=&quot;fg&quot; /&gt;</b><br />
That’s it! Now you are going to validate your form with ajax validator.<br />
I hope you will enjoy this session if you want to know some oyher validation in ASP.NET <a href="http://gowrishaan.wordpress.com/2009/04/22/aspnet-validator-controls/" title="aspnet-validator-controls"> click here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=66&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/04/23/validatorcallout-extender-in-ajax-aspnet/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Call Javascript in ASP.NET</title>
		<link>http://gowrishaan.wordpress.com/2009/04/23/how-to-call-javascript-in-aspnet/</link>
		<comments>http://gowrishaan.wordpress.com/2009/04/23/how-to-call-javascript-in-aspnet/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 07:34:28 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[JavaScript in ASP.NET]]></category>
		<category><![CDATA[call the javascript]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/?p=58</guid>
		<description><![CDATA[In this session we discuss about the how to call the JavaScript when I click the button in Asp.net application. JavaScript was designed to add interactivity to HTML pages. In our application I have a button and label, during button click the label text will change and alert will display using the JavaScript, how it’s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=58&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this session we discuss about the how to call the JavaScript when I click the button in Asp.net application. JavaScript was designed to add interactivity to HTML pages. In our application I have a button and label, during button click the label text will change and alert will display using the JavaScript, how it’s possible in Asp.net, generally script tag can be placed head or body section in your html coding.<br />
<b><font color="#0000FF">JavaScript:</font></b><br />
<b>&lt;script type=&quot;text/javascript&quot;&gt;<br />
function btclk()<br />
{<br />
alert(&quot;button clicked&quot;);<br />
} <br />
&lt;/script&gt;</b><br />Above coding will be placed in head tag, whenever btclk() function triggered the alert box will appear.<br />
<b><font color="#0000FF">Design Page:</font></b><br />
<b>&lt;asp:Label ID=&quot;lbl&quot; runat=&quot;server&quot; /&gt; <br />
&lt;asp:Button ID=&quot;bt&quot; runat=&quot;server&quot; Text=&quot;click here&quot; OnClick=&quot;bt_cked&quot; OnClientClick=&quot;javascript:btclk();&quot;  /&gt;</b><br />
onclick will be call the  code behind method and onclientclick method call the JavaScript method.<br />
<b><font color="#0000FF">Code Behind;</font></b><br />
protected void bt_cked(object obj, EventArgs e)<br />
    {<br />
        lbl.Text = &#8220;U Click Your Button&#8221;;<br />
    }<br />
This is very simple coding to understand how to call the javaScript function.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=58&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/04/23/how-to-call-javascript-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET Validator Controls</title>
		<link>http://gowrishaan.wordpress.com/2009/04/22/aspnet-validator-controls/</link>
		<comments>http://gowrishaan.wordpress.com/2009/04/22/aspnet-validator-controls/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:45:07 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[ASP.NET Validator Controls]]></category>
		<category><![CDATA[validation in asp.net]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/2009/04/22/aspnet-validator-controls/</guid>
		<description><![CDATA[In this post we can discuss about the ASP.NET validator, generally validation will be used for when you are filling the form, compare to other language ASP.NET very simplify in validation function. Below list is important validator in ASP.NET. 1. RequiredFieldValidator 2. RegularExpressionValidator 3. CompareValidator 4. RangeValidator RequiredFieldValidator It will check the whether the user [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=55&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post we can discuss about the ASP.NET validator, generally validation will be used for when you are filling the form, compare to other language ASP.NET very simplify in validation function. Below list is important validator in ASP.NET.<br />
<b>1.	RequiredFieldValidator</b><br />
<b>2.	RegularExpressionValidator</b><br />
<b>3.	CompareValidator</b><br />
<b>4.	RangeValidator</b></p>
<p><b>RequiredFieldValidator</b><br />
 It will check the whether the user give the input value or not.<br />
<b>&lt;asp:TextBox ID=&quot;tnme&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RequiredFieldValidator ID=&quot;r1&quot; ControlToValidate=&quot;tnme&quot; runat=&quot;server&quot; ErrorMessage=&quot;Enter the name&quot; ValidationGroup=&quot;grp&quot; Display=&quot;Dynamic&quot; /&gt;</b> <br />
In a single form we use multiple textbox for that we make a group, you have to assign the group name.</p>
<p><b>RegularExpressionValidator</b><br />
It will check the user input will correct format like postal code, phone number and email id etc.<br />
<b>&lt;asp:TextBox ID=&quot;email&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RegularExpressionValidator ID=&quot;r3&quot; ControlToValidate=&quot;email&quot; runat=&quot;server&quot; ValidationGroup=&quot;grp&quot; Display=&quot;Dynamic&quot; ErrorMessage=&quot;Enter the valid Email&quot; ValidationExpression=&quot;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&quot; /&gt;</b> <br /> <br />
<b>Note :</b>validation expression will your choice, you can choose postal code, phone number and email id etc.</p>
<p><b>CompareValidator</b><br />
The compare validator will be used for when the user fill the password and conform password box, it will show the confirmation of password match or not.<br />
<b>&lt;asp:CompareValidator ID=&quot;cv&quot; ControlToCompare=&quot;tp&quot; ControlToValidate=&quot;tcp&quot; ErrorMessage=&quot;your password and confirm password not match&quot; Display=&quot;Dynamic&quot; runat=&quot;server&quot; /&gt;</b></p>
<p><b>RangeValidator</b><br />
The rangevalidator will be check the user input value within the range.<br />
<b>&lt;asp:RangeValidator ID=&quot;rtenum&quot; ControlToValidate=&quot;tenum&quot; MinimumValue=&quot;1&quot; MaximumValue=&quot;9&quot; ErrorMessage=&quot;enter the number 1 to 9&quot; runat=&quot;server&quot; Type=&quot;Integer&quot; /&gt;</b><br />
<b>Note:</b>In rangevalidator you have to specify the type of the range.</p>
<p><b>Sample Coding</b></p>
<p>&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;UserName&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;asp:TextBox ID=&quot;tnme&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RequiredFieldValidator ID=&quot;r1&quot; ControlToValidate=&quot;tnme&quot; runat=&quot;server&quot; ErrorMessage=&quot;Enter the name&quot; ValidationGroup=&quot;grp&quot; Display=&quot;Dynamic&quot; /&gt; <br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Email&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;asp:TextBox ID=&quot;email&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RequiredFieldValidator ID=&quot;r2&quot; ControlToValidate=&quot;email&quot; runat=&quot;server&quot; ErrorMessage=&quot;Enter the email&quot; ValidationGroup=&quot;grp&quot; Display=&quot;Dynamic&quot; /&gt;<br />
&lt;asp:RegularExpressionValidator ID=&quot;r3&quot; ControlToValidate=&quot;email&quot; runat=&quot;server&quot; ValidationGroup=&quot;grp&quot; Display=&quot;Dynamic&quot; ErrorMessage=&quot;Enter the valid Email&quot; ValidationExpression=&quot;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&quot; /&gt; <br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Password&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;asp:TextBox ID=&quot;tp&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RequiredFieldValidator ID=&quot;prf&quot; ControlToValidate=&quot;tp&quot; ErrorMessage=&quot;Enter the password&quot; ValidationGroup=&quot;grp&quot; Display=&quot;Dynamic&quot; runat=&quot;server&quot; /&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Confirm Password&lt;/td&gt; <br />
&lt;td&gt;<br />
&lt;asp:TextBox ID=&quot;tcp&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RequiredFieldValidator ID=&quot;cprf&quot; ControlToValidate=&quot;tcp&quot; ValidationGroup=&quot;grp&quot; ErrorMessage=&quot;enter the confirm password&quot; Display=&quot;Dynamic&quot; runat=&quot;server&quot; /&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Enter the number&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;asp:TextBox ID=&quot;tenum&quot; runat=&quot;server&quot; /&gt;<br />
&lt;asp:RangeValidator ID=&quot;rtenum&quot; ControlToValidate=&quot;tenum&quot; MinimumValue=&quot;1&quot; MaximumValue=&quot;9&quot; ErrorMessage=&quot;enter the number 1 to 9&quot; runat=&quot;server&quot; Type=&quot;Integer&quot; /&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />&lt;tr&gt;<br />
&lt;td colspan=&quot;2&quot;&gt;<br />
&lt;asp:CompareValidator ID=&quot;cv&quot; ControlToCompare=&quot;tp&quot; ControlToValidate=&quot;tcp&quot; ErrorMessage=&quot;your password and confirm password not match&quot; Display=&quot;Dynamic&quot; runat=&quot;server&quot; /&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;asp:Button ID=&quot;bt&quot; runat=&quot;server&quot;  ValidationGroup=&quot;grp&quot; Text=&quot;submit&quot; /&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
I hope you will enjoy this session if you want to know validation in ajax <a href="http://gowrishaan.wordpress.com/2009/04/23/validatorcallout-extender-in-ajax-aspnet/" title="validatorcallout-extender-in-ajax-aspnet"> click here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=55&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/04/22/aspnet-validator-controls/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
		<item>
		<title>ConformButtonExtender in Asp.net Ajax</title>
		<link>http://gowrishaan.wordpress.com/2009/04/22/conformbuttonextender-in-aspnet-ajax/</link>
		<comments>http://gowrishaan.wordpress.com/2009/04/22/conformbuttonextender-in-aspnet-ajax/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 12:09:16 +0000</pubDate>
		<dc:creator>Gowri Shankar</dc:creator>
				<category><![CDATA[Ajax in Asp.net]]></category>
		<category><![CDATA[conformbuttonextender in ajax]]></category>

		<guid isPermaLink="false">http://gowrishaan.wordpress.com/2009/04/22/conformbuttonextender-in-aspnet-ajax/</guid>
		<description><![CDATA[Here we can discuss about the confirm button extender in ajax toolkit and it’s been an introduction for using toolkit. First we want known about the confirm button action, in java script we use the alert message box it`s like when we click the button the message box will appear. For example: In my application [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=53&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Here we can discuss about the confirm button extender in ajax toolkit and it’s been an introduction for using toolkit. First we want known about the confirm button action, in java script we use the alert message box it`s like when we click the button the message box will appear.<br />
<b>For example:</b><br />
      In my application one link button is there if I click the link button the page navigate to the another page, during that time I need a one alert box the message will be whether you want to navigate or not let see the sample coding.<br />
<b>Sample Coding</b></p>
<p><b>&lt;asp:LinkButton ID=&quot;bt1&quot; Text=&quot;navigation&quot; PostBackUrl=&quot;~/Default.aspx&quot; runat=&quot;server&quot; /&gt;</b><br />
First we declare the link button if u click the button page will be redirect into default page,now we implement the ajax toolkit confirmbutton action.<br />
<b>ajaxtoolkit confirmbutton extender</b></p>
<p><b>&lt;ajaxToolkit:ConfirmButtonExtender ID=&quot;cc2&quot; ConfirmText=&quot;are you want to navigate&quot; TargetControlID=&quot;bt1&quot; runat=&quot;server&quot; /&gt;</b><br /> Above are the coding to include the confirmbutton, I hope it will give you clear idea about ajaxtoolkit confirmbutton extender.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gowrishaan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gowrishaan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gowrishaan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gowrishaan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gowrishaan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gowrishaan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gowrishaan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gowrishaan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gowrishaan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gowrishaan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gowrishaan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gowrishaan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gowrishaan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gowrishaan.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gowrishaan.wordpress.com&amp;blog=7394961&amp;post=53&amp;subd=gowrishaan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gowrishaan.wordpress.com/2009/04/22/conformbuttonextender-in-aspnet-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e3c0016fd2fb44b2e53ff11a59c77f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gowrishaan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
