<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Inserting database data using parameters from TextBox controls in a FormView with the ASP.NET SqlDataSource control</title>
	<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/</link>
	<description>Quality ASP.NET/C#/SQL Server tutorials, examples, videos and advice</description>
	<pubDate>Fri, 10 Sep 2010 17:39:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: chris young</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-286</link>
		<dc:creator>chris young</dc:creator>
		<pubDate>Mon, 21 Jun 2010 04:55:54 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-286</guid>
		<description>Ted,

thank you so much for publishing this.  I spent 2 days scouring the web for a basic tutorial on how to make a basic web page that posts back the informatin to a database.  

Your webpage and download saved me.

Thanks again,
Chris</description>
		<content:encoded><![CDATA[<p>Ted,</p>
<p>thank you so much for publishing this.  I spent 2 days scouring the web for a basic tutorial on how to make a basic web page that posts back the informatin to a database.  </p>
<p>Your webpage and download saved me.</p>
<p>Thanks again,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-283</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sun, 06 Jun 2010 22:42:36 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-283</guid>
		<description>Thanks for your excellent example. 
One may add the following code to the routine FormView1_Inserted to handle the errors:
            if (e.Exception == null)
            {
                Response.Redirect("home.aspx");
            }else{
                Response.Write(e.Exception.Message);
                e.ExceptionHandled = true;
            }</description>
		<content:encoded><![CDATA[<p>Thanks for your excellent example.<br />
One may add the following code to the routine FormView1_Inserted to handle the errors:<br />
            if (e.Exception == null)<br />
            {<br />
                Response.Redirect(&#8221;home.aspx&#8221;);<br />
            }else{<br />
                Response.Write(e.Exception.Message);<br />
                e.ExceptionHandled = true;<br />
            }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alicia</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-272</link>
		<dc:creator>Alicia</dc:creator>
		<pubDate>Sun, 28 Mar 2010 02:27:18 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-272</guid>
		<description>i have looked for so long for this and finally i can smile.</description>
		<content:encoded><![CDATA[<p>i have looked for so long for this and finally i can smile.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hannes</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-257</link>
		<dc:creator>Hannes</dc:creator>
		<pubDate>Mon, 18 Jan 2010 21:54:20 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-257</guid>
		<description>There is no sound on the Video about using textbox data and store it into a SQL DB. I would like to view it.</description>
		<content:encoded><![CDATA[<p>There is no sound on the Video about using textbox data and store it into a SQL DB. I would like to view it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ted</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-194</link>
		<dc:creator>ted</dc:creator>
		<pubDate>Sat, 19 Sep 2009 20:09:52 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-194</guid>
		<description>If you are getting this error "Must declare the scalar variable @last_name" or something similar it is because you are trying to use a variable in your SqlDataSource SQL statement without having a parameter created for it.  You have to remember to create  parameters in your SqlDataSource control.  In this example, take a look at the source code to see how I created InsertParameters for each of the variables in my Insert SQL statement.</description>
		<content:encoded><![CDATA[<p>If you are getting this error &#8220;Must declare the scalar variable @last_name&#8221; or something similar it is because you are trying to use a variable in your SqlDataSource SQL statement without having a parameter created for it.  You have to remember to create  parameters in your SqlDataSource control.  In this example, take a look at the source code to see how I created InsertParameters for each of the variables in my Insert SQL statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitin</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-185</link>
		<dc:creator>nitin</dc:creator>
		<pubDate>Fri, 11 Sep 2009 10:46:20 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-185</guid>
		<description>Thanks a lot. Its very helpful.</description>
		<content:encoded><![CDATA[<p>Thanks a lot. Its very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: narayan</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-167</link>
		<dc:creator>narayan</dc:creator>
		<pubDate>Thu, 13 Aug 2009 07:34:14 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-167</guid>
		<description>i want to insert userid,username,usertext from table user,name,data
in table data 
so how it is possible</description>
		<content:encoded><![CDATA[<p>i want to insert userid,username,usertext from table user,name,data<br />
in table data<br />
so how it is possible</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eoin Callan</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-161</link>
		<dc:creator>Eoin Callan</dc:creator>
		<pubDate>Tue, 04 Aug 2009 21:43:57 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-161</guid>
		<description>I just spent hours trying to find something as helpful as the write-up here and yet I still needed to go a step further so I'm posting this comment in case others are looking for a way to run a parameterized insert query using visual studio and a textbox control.  Add a sqldatasource control to your web form and in the properties pane click on the elipse next to the (Query) reference in the InsertQuery property.  In the "Command and Parameter Editor" that pops up, select "Control" from the drop down list under the "Parameter Source:" heading, then you can select which control you want to use from the drop down list under the "ControlID:" heading...

Thanks again for this write up!</description>
		<content:encoded><![CDATA[<p>I just spent hours trying to find something as helpful as the write-up here and yet I still needed to go a step further so I&#8217;m posting this comment in case others are looking for a way to run a parameterized insert query using visual studio and a textbox control.  Add a sqldatasource control to your web form and in the properties pane click on the elipse next to the (Query) reference in the InsertQuery property.  In the &#8220;Command and Parameter Editor&#8221; that pops up, select &#8220;Control&#8221; from the drop down list under the &#8220;Parameter Source:&#8221; heading, then you can select which control you want to use from the drop down list under the &#8220;ControlID:&#8221; heading&#8230;</p>
<p>Thanks again for this write up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-80</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sat, 02 May 2009 19:07:26 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-80</guid>
		<description>I did the tutorial in ASP.NET 2.0 /w Oracle 10g, and the only difference is that in the query, instead of '@' you should put ':'

I put this here, so other people could figure it out.

BTW thanks for the tutorial, it helped me do my homework :)</description>
		<content:encoded><![CDATA[<p>I did the tutorial in ASP.NET 2.0 /w Oracle 10g, and the only difference is that in the query, instead of &#8216;@&#8217; you should put &#8216;:&#8217;</p>
<p>I put this here, so other people could figure it out.</p>
<p>BTW thanks for the tutorial, it helped me do my homework <img src='http://www.csharpuniversity.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Loggenberg</title>
		<link>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-73</link>
		<dc:creator>Marius Loggenberg</dc:creator>
		<pubDate>Tue, 21 Apr 2009 05:31:15 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/03/inserting-database-data-using-parameters-from-textbox-controls-with-the-aspnet-sqldatasource-control/#comment-73</guid>
		<description>Hi, thanks for the help in this regard. I am new to this world Microsoft Development. I am still one of the old assembler mainframe CICS, IMS, CICS guys that spent the last 20 years managing large installations and I am now developing applications for people that have not learnt the basics about managing people (Performance Management, Career Planning, Succession Planning and so on) . I really battled to get my head around the basics, but I am there, my first application to be out soon.
Again, thank you!</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the help in this regard. I am new to this world Microsoft Development. I am still one of the old assembler mainframe CICS, IMS, CICS guys that spent the last 20 years managing large installations and I am now developing applications for people that have not learnt the basics about managing people (Performance Management, Career Planning, Succession Planning and so on) . I really battled to get my head around the basics, but I am there, my first application to be out soon.<br />
Again, thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
