<?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: Updating database data using parameters from TextBox controls in a FormView with the ASP.NET SqlDataSource control</title>
	<link>http://www.csharpuniversity.com/2009/02/09/updating-database-data-using-parameters-from-textbox-controls-in-a-formview-with-the-aspnet-sqldatasource-control/</link>
	<description>Quality ASP.NET/C#/SQL Server tutorials, examples, videos and advice</description>
	<pubDate>Sat, 19 May 2012 16:03:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Scott</title>
		<link>http://www.csharpuniversity.com/2009/02/09/updating-database-data-using-parameters-from-textbox-controls-in-a-formview-with-the-aspnet-sqldatasource-control/#comment-232</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 22 Dec 2009 09:22:52 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/09/updating-database-data-using-parameters-from-textbox-controls-in-a-formview-with-the-aspnet-sqldatasource-control/#comment-232</guid>
		<description>It won't let me post Line 21.  It's the first line of the form tag that includes the OnItemUpdated event.</description>
		<content:encoded><![CDATA[<p>It won&#8217;t let me post Line 21.  It&#8217;s the first line of the form tag that includes the OnItemUpdated event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.csharpuniversity.com/2009/02/09/updating-database-data-using-parameters-from-textbox-controls-in-a-formview-with-the-aspnet-sqldatasource-control/#comment-231</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 22 Dec 2009 09:19:35 +0000</pubDate>
		<guid>http://www.csharpuniversity.com/2009/02/09/updating-database-data-using-parameters-from-textbox-controls-in-a-formview-with-the-aspnet-sqldatasource-control/#comment-231</guid>
		<description>I used this on my form:
OnItemUpdated="FormView_UpdateTask"


And this in the head:

Sub FormView_UpdateTask(sender As Object, e As FormViewUpdatedEventArgs)
    
    Response.Redirect("weblog.aspx")
   
End Sub



I'm getting this error:
Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: BC31143: Method 'Public Sub FormView_UpdateTask(sender As Object, e As System.Web.UI.WebControls.FormViewUpdatedEventArgs)' does not have a signature compatible with delegate 'Delegate Sub EventHandler(Of System.Web.UI.WebControls.ListViewUpdatedEventArgs)(sender As Object, e As System.Web.UI.WebControls.ListViewUpdatedEventArgs)'.

Source Error:
Line 19: 
Line 20: Task List
Line 21: 

======================================

It's similar to what you did, only I used a code snippet I found quite a while ago. It's worked very well for "OnItemInserted" events. But I can't seem to get it to work when modifying it for "OnItemUpdated" events.  Can you see what I've done wrong?</description>
		<content:encoded><![CDATA[<p>I used this on my form:<br />
OnItemUpdated=&#8221;FormView_UpdateTask&#8221;</p>
<p>And this in the head:</p>
<p>Sub FormView_UpdateTask(sender As Object, e As FormViewUpdatedEventArgs)</p>
<p>    Response.Redirect(&#8221;weblog.aspx&#8221;)</p>
<p>End Sub</p>
<p>I&#8217;m getting this error:<br />
Compilation Error<br />
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. </p>
<p>Compiler Error Message: BC31143: Method &#8216;Public Sub FormView_UpdateTask(sender As Object, e As System.Web.UI.WebControls.FormViewUpdatedEventArgs)&#8217; does not have a signature compatible with delegate &#8216;Delegate Sub EventHandler(Of System.Web.UI.WebControls.ListViewUpdatedEventArgs)(sender As Object, e As System.Web.UI.WebControls.ListViewUpdatedEventArgs)&#8217;.</p>
<p>Source Error:<br />
Line 19:<br />
Line 20: Task List<br />
Line 21: </p>
<p>======================================</p>
<p>It&#8217;s similar to what you did, only I used a code snippet I found quite a while ago. It&#8217;s worked very well for &#8220;OnItemInserted&#8221; events. But I can&#8217;t seem to get it to work when modifying it for &#8220;OnItemUpdated&#8221; events.  Can you see what I&#8217;ve done wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

