<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"><channel><title>[How Do I:] Pass Information From One Page to Another Using a Query String</title><link>http://asp.net</link><pubDate>Tue, 10 Mar 2009 07:35:05 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:] Pass Information From One Page to Another Using a Query String</description><language>en</language><atom:link href="http://asp.net/rss/comments/33500" rel="self" type="application/rss+xml" /><item><title>Comment Posted by abelanet</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Thu, 26 Jun 2008 19:30:23 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005861</guid><description><![CDATA[ <p>Very good video - explained in a very understandable way. Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/abelanet.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by j.shafee</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Fri, 27 Jun 2008 05:16:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005862</guid><description><![CDATA[ <p>This is too cool!Thanks Chris Pels!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/j.shafee.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by uwspstar</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Fri, 27 Jun 2008 09:40:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005863</guid><description><![CDATA[ <p>very nice video</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/uwspstar.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by zmb94</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Fri, 27 Jun 2008 14:43:52 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005864</guid><description><![CDATA[ <p>The C# vesion isn&#39;t available.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/zmb94.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kemalemin</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Sun, 29 Jun 2008 01:44:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005865</guid><description><![CDATA[ <p>Very basic and irrelevant video! at least it is not something that requires first page publishing on ASP.NET website. Building querystrings is something that every single person who is involved in web programming learns the very first thing. </p> <p>The video should instead concantrate &#160;</p> <p>1) Security and Validation of querystrings</p> <p>2) The limits and limitations of querystrings.</p> <p>3) When and when not to use querystrings</p> <p>4) comparison between page.transfer, previouspage. and other methods of retrieving form information and transferring to other target pages.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kemalemin.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Nezdet</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Tue, 01 Jul 2008 12:56:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005866</guid><description><![CDATA[ <p>Nice video Chris!</p> <p>Iam about to create a serachpage for my project. And Iam about to use querystring to send over searchinformation to the samepage (By samepage I mean, the results will be shown in the searchpage)</p> <p>Do you recomend us to use the alternative that you showed on the vide </p> <p>OR</p> <p>Should we change the Form-tags Method=&quot;get&quot; </p> <p>Which one should you prefer, and why? </p> <p>(My querystring picks upp all the unnecessary strings if i put the &lt;form method=get&gt;, it get&#39;s a bit dirty-querystring)</p> <p>Hope you can answer this!!</p> <p>THANKS</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Nezdet.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rhiana</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Tue, 01 Jul 2008 23:08:17 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005867</guid><description><![CDATA[ <p>@kemalemin: Please don&#39;t front urself</p> <p>These are tutorials, it&#39;s suppose to be basic...</p> <p>Nice Video Chris Pels, I&#39;ve learned a lot from u</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/rhiana.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by DMAsuncion</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Wed, 02 Jul 2008 02:45:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005868</guid><description><![CDATA[ <p>Thanks a lot, God Bless..</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/DMAsuncion.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shailatlas</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Thu, 03 Jul 2008 03:31:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005869</guid><description><![CDATA[ <p>Hello Chris,</p> <p>Can you please tell me what is the software you use to record the session ?</p> <p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/shailatlas.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sfrandys</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Thu, 03 Jul 2008 14:55:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005870</guid><description><![CDATA[ <p>The link that is to be the C# version contains the VB version. &#160;Could this please be changed? &#160;Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/sfrandys.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by chaoslegion05</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Thu, 10 Jul 2008 10:04:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005871</guid><description><![CDATA[ <p>The C# link contains the VB code!</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/chaoslegion05.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tclonyem</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Thu, 10 Jul 2008 11:36:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005879</guid><description><![CDATA[ <p>Below, I&#39;ve written the C# code for both code files:</p> <p>1) Default.aspx.cs</p> <p>namespace ASPQueryString</p> <p>{</p> <p> &#160; &#160;public partial class _Default : System.Web.UI.Page</p> <p> &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160;protected void Page_Load(object sender, EventArgs e)</p> <p> &#160; &#160; &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160;}</p> <p> &#160; &#160; &#160; &#160;protected void btnSubmit_Click(object sender, EventArgs e) </p> <p> &#160; &#160; &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160; &#160; string targetURL;</p> <p> &#160; &#160; &#160; &#160; &#160; targetURL = &quot;Target1.aspx?&quot;;</p> <p> &#160; &#160; &#160; &#160; &#160; targetURL += &quot;CustID=&quot; + Server.UrlEncode(txtCustomerId.Text.Trim());</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;targetURL += &quot;&amp;CustName=&quot; + Server.UrlEncode(txtCustomerName.Text.Trim());</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;targetURL += &quot;&amp;ProdID=&quot; + Server.UrlEncode(txtProductID.Text.Trim());</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;targetURL += &quot;&amp;ProdDesc=&quot; + Server.UrlEncode(txtProductDescription.Text.Trim());</p> <p> &#160; &#160; &#160; &#160; &#160;Response.Redirect(targetURL);</p> <p> &#160; &#160; &#160; &#160;}</p> <p> &#160; &#160;}</p> <p>} &#160; </p> <p>2) Target1.aspx.cs</p> <p>namespace ASPQueryString</p> <p>{</p> <p> &#160; &#160;public partial class Target1 : System.Web.UI.Page</p> <p> &#160; &#160;{</p> <p> &#160; &#160; &#160;protected void Page_Load(object sender, EventArgs e)</p> <p> &#160; &#160; &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160; if ((Request.QueryString[&quot;CustID&quot;] != null))</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;labCustID.Text = Request.QueryString[&quot;CustID&quot;].ToString();</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;}</p> <p> &#160; &#160; &#160; &#160; if ((Request.QueryString[&quot;CustName&quot;] != null))</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; labCustName.Text = Request.QueryString[1].ToString();</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;}</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;if ((Request.QueryString[&quot;ProdID&quot;] != null))</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;labProdID.Text = Request.QueryString[&quot;ProdID&quot;].ToString();</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;}</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;if ((Request.QueryString[&quot;ProdDesc&quot;] != null))</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;labProdDesc.Text = Request.QueryString[3].ToString();</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;}</p> <p> &#160; &#160; &#160; &#160;}</p> <p> &#160; &#160;}</p> <p>} &#160;</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/tclonyem.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ngonka2003</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Tue, 15 Jul 2008 05:13:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005880</guid><description><![CDATA[ <p>Merci pour cette demonstration tres bien present&#233;e. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ngonka2003.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by asater</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Fri, 22 Aug 2008 06:40:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005881</guid><description><![CDATA[ <p>Very nice video</p> <p>Thank you </p> <p>keep it coming </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/asater.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bsvnhll</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Thu, 28 Aug 2008 06:06:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005882</guid><description><![CDATA[ <p>this could have been more usefull</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/bsvnhll.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cyrussullivan</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Sat, 13 Sep 2008 15:38:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005883</guid><description><![CDATA[ <p>I am trying to figure out how to bind a query string to a form view item inserted event so that when i hit the insert button i will be taken to a page displaying the inserted data. So far I cant find a tutorial that says how to do that.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/cyrussullivan.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by anisurrahman</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Tue, 14 Oct 2008 16:56:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005884</guid><description><![CDATA[ <p>Thank you very much...</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/anisurrahman.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by agoyal</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Wed, 15 Oct 2008 04:25:04 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005872</guid><description><![CDATA[ <p>This is a very helpful video tutorial.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/agoyal.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ccgilson</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Fri, 07 Nov 2008 08:13:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005874</guid><description><![CDATA[ <p>Very clear and helpful, but for me the video wastes too much time with setting up. The tutorial&#39;s title is: &#39;How Do I: Pass Information From One Page to Another Using a Query String&#39; and not &#39;How Do I: Place basic controls into an HTML page, name them, position them and then pass Information From One Page to Another Using a Query String&#39;</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ccgilson.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djafer</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Wed, 12 Nov 2008 08:14:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005875</guid><description><![CDATA[ <p>thanx</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/djafer.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djibril_chimere_DIAW</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Sun, 30 Nov 2008 12:13:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005876</guid><description><![CDATA[ <p>Thanks! J&#235;r&#235;j&#235;f !</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/djibril_chimere_DIAW.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Hamza_zarar</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Mon, 01 Dec 2008 04:24:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005877</guid><description><![CDATA[ <p>very nice video :)</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Hamza_zarar.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mdmk</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Thu, 22 Jan 2009 07:44:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005878</guid><description><![CDATA[ <p>Its Really wonderfull!!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mdmk.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bohunt</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Fri, 13 Feb 2009 17:36:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005885</guid><description><![CDATA[ <p>Nice video.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/bohunt.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Nilesh810</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-pass-information-from-one-page-to-another-using-a-query-string</link><pubDate>Tue, 10 Mar 2009 07:35:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005886</guid><description><![CDATA[ <p>I have two tables pre_enquiry &amp; enquiry ,enquiryno is primary key of pre_enquiry table,username is also stored in it.In enquiry webform if i enter username then related enquiryno. should be autofilled in textbox ,&amp; delete the record from pre_enquiry table</p><p>I have done following</p><p>public partial class EnquiryForm : System.Web.UI.Page</p><p>{</p><p>    SqlConnection cn,cn1;</p><p>    SqlCommand cmd;</p><p>   </p><p>    //DataTable dt;</p><p>    protected void Page_Load(object sender, EventArgs e)</p><p>    {</p><p>       // if (!IsPostBack)</p><p>        //{</p><p>           // cn = new SqlConnection(ConfigurationManager.ConnectionStrings[&quot;BruserConnectionString2&quot;].ConnectionString);</p><p>           // cmd = new SqlCommand(&quot;select EnquiryNo from Pre_Enquiry where(Uname=&quot; + TextBox1.Text + &quot;)&quot;);</p><p>           // cn.Open();</p><p>           // tr=cmd.ExecuteReader();</p><p>           // while (tr.Read) </p><p>           // {</p><p>             //   int i = tr[&quot;EnquiryNo&quot;];</p><p>            //}</p><p>           // tr.Close();</p><p>            //cn.Close();</p><p>        //}</p><p>    }</p><p>    protected void Button2_Click(object sender, EventArgs e)</p><p>    {</p><p>    //    cn = new SqlConnection(ConfigurationManager.ConnectionStrings[&quot;BruserConnectionString2&quot;].ConnectionString);</p><p>    //    TxtEnqNo.Text = Convert.ToString(cmd = new SqlCommand(&quot;select EnquiryNo from Pre_Enquiry Where(Uname=&quot; + TextBox1.Text + &quot;);&quot;, cn));</p><p>    //    //TxtEnqNo.Text = Convert.ToString(&quot;EnquiryNo&quot;);</p><p>    //    cn.Open();</p><p>    //    cmd.ExecuteNonQuery();</p><p>    //    cn.Close();</p><p>    }</p><p></p><p>     protected void Button1_Click(object sender, EventArgs e)</p><p>    {</p><p>        cn = new SqlConnection(ConfigurationManager.ConnectionStrings[&quot;BruserConnectionString2&quot;].ConnectionString);</p><p>        //cmd = new SqlCommand(&quot;select EnquiryNo.,enqDate,Uname,BranhName,TelNo from Pre_Enquiry&quot;);</p><p>        //cmd = new SqlCommand(&quot;Insert into enquiry values(&#39;&quot; + DropDownList1.SelectedItem.Text + &quot;&#39;,&#39;&quot; + DropDownList2.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TxtEnqNo.Text=&quot;select EnquiryNo from Pre_Enquiry where (Uname=&quot;+TextBox1.Text+&quot;)&quot; + &quot;&#39;,&#39;&quot; + DropDownList3.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TextBox1.Text + &quot;&#39;,&#39;&quot; + TextBox2.Text + &quot;&#39;,&#39;&quot; + Convert.ToInt32(TextBox3.Text) + &quot;&#39;,&#39;&quot; + Convert.ToInt32(TextBox4.Text) + &quot;&#39;,&#39;&quot; + Convert.ToInt32(TextBox5.Text) + &quot;&#39;,&#39;&quot; + DropDownList4.SelectedItem.Text + &quot;/&quot; + DropDownList6.SelectedItem.Text + &quot;/&quot; + DropDownList7.SelectedItem.Text + &quot;&#39;,&#39;&quot; + DropDownList5.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TextBox6.Text + &quot;&#39;,&#39;&quot; + TextBox8.Text + &quot;&#39;,&#39;&quot; + RadioButtonList2.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TextBox9.Text + &quot;&#39;,&#39;&quot; + RadioButtonList3.SelectedItem.Text + &quot;&#39;,&#39;&quot; + RadioButtonList4.SelectedItem.Text + &quot;&#39;,&#39;&quot; + RadioButtonList5.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TextBox7.Text + &quot;&#39;);&quot;, cn);</p><p>        cmd = new SqlCommand(&quot;Insert into enquiry values(&#39;&quot; + DropDownList1.SelectedItem.Text + &quot;&#39;,&#39;&quot; + DropDownList2.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TxtEnqNo.Text + &quot;&#39;,&#39;&quot; + DropDownList3.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TextBox1.Text + &quot;&#39;,&#39;&quot; + TextBox2.Text + &quot;&#39;,&#39;&quot; + Convert.ToInt32(TextBox3.Text) + &quot;&#39;,&#39;&quot; + Convert.ToInt32(TextBox4.Text) + &quot;&#39;,&#39;&quot; + Convert.ToInt32(TextBox5.Text) + &quot;&#39;,&#39;&quot; + DropDownList4.SelectedItem.Text + &quot;/&quot; + DropDownList6.SelectedItem.Text + &quot;/&quot; + DropDownList7.SelectedItem.Text + &quot;&#39;,&#39;&quot; + DropDownList5.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TextBox6.Text + &quot;&#39;,&#39;&quot; + TextBox8.Text + &quot;&#39;,&#39;&quot; + RadioButtonList2.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TextBox9.Text + &quot;&#39;,&#39;&quot; + RadioButtonList3.SelectedItem.Text + &quot;&#39;,&#39;&quot; + RadioButtonList4.SelectedItem.Text + &quot;&#39;,&#39;&quot; + RadioButtonList5.SelectedItem.Text + &quot;&#39;,&#39;&quot; + TextBox7.Text + &quot;&#39;);&quot;, cn);</p><p>        cn.Open();</p><p>        cmd.ExecuteNonQuery();</p><p>        cn.Close();</p><p>    }</p><p>    protected void TextBox1_TextChanged(object sender, EventArgs e)</p><p>    {   </p><p>        //dt=new DataTable(&quot;Pre_Enquiry&quot;);</p><p>        //tr = new DataTableReader(dt);</p><p>       // cmd=new SqlCommand(&quot;select EnquiryNo from Pre_Enquiry where(Uname=&quot;+TextBox1.Text+&quot;)&quot;);</p><p>         int i;</p><p>         cn1 = new SqlConnection(ConfigurationManager.ConnectionStrings[&quot;BruserConnectionString2&quot;].ConnectionString);</p><p>         cmd = new SqlCommand(&quot;select EnquiryNo from Pre_Enquiry where(Uname=@uname);&quot;, cn1);</p><p>            cn1.Open();</p><p>            SqlDataReader tr;</p><p>            tr=cmd.ExecuteReader();</p><p>            while (tr.Read()) </p><p>            {</p><p>                i = Convert.ToInt32(tr[&quot;EnquiryNo&quot;]);</p><p>                TxtEnqNo.Text = Convert.ToString(i);</p><p>                //TxtEnqNo.Text=cmd.Parameters.Add(&quot;@EnquiryNo&quot;).Value;</p><p>            }</p><p>            tr.Close();</p><p>            cn1.Close();</p><p>    }</p><p>}</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Nilesh810.jpg?forceidenticon=false&amp;dt=635051412000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>