{"id":855,"date":"2011-06-09T15:10:05","date_gmt":"2011-06-09T19:10:05","guid":{"rendered":"http:\/\/www.iowawebnet.com\/ein\/?p=855"},"modified":"2011-06-09T15:10:05","modified_gmt":"2011-06-09T19:10:05","slug":"net-formgridview-update-command-property","status":"publish","type":"post","link":"https:\/\/www.iowawebnet.com\/ein\/2011\/06\/net-formgridview-update-command-property\/","title":{"rendered":".NET Form\/GridView Update Command Property"},"content":{"rendered":"<p><a rel=\"attachment wp-att-856\" href=\"http:\/\/www.iowawebnet.com\/ein\/?attachment_id=856\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-856\" title=\"ScreenShot032\" src=\"http:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot032.gif\" alt=\"\" width=\"658\" height=\"177\" srcset=\"https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot032.gif 658w, https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot032-300x80.gif 300w\" sizes=\"(max-width: 658px) 100vw, 658px\" \/><\/a><\/p>\n<p>Insert this code right below &lt;!DOCTYPE html PUBLIC &#8220;&#8230;..&#8221;&gt; tag:<\/p>\n<blockquote><p>Sub UpdateMessage(ByVal source As Object, ByVal e As SqlDataSourceStatusEventArgs)<br \/>\nIf e.AffectedRows &gt; 0 Then<br \/>\n&#8216; Perform any additional processing,<br \/>\n&#8216; such as setting a status label after the operation.<br \/>\nLabel1.Text = &#8220;- Information updated successfully!&#8221;<br \/>\nElse<br \/>\nLabel1.Text = &#8220;No data updated!&#8221;<br \/>\nEnd If<br \/>\nEnd Sub &#8216;UpdateMessage<\/p><\/blockquote>\n<p>Insert this into the right after update command<\/p>\n<blockquote><p>OnUpdated=&#8221;UpdateMessage&#8221;<\/p><\/blockquote>\n<p><a rel=\"attachment wp-att-865\" href=\"http:\/\/www.iowawebnet.com\/ein\/?attachment_id=865\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-865\" title=\"ScreenShot033\" src=\"http:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot033.gif\" alt=\"\" width=\"588\" height=\"130\" srcset=\"https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot033.gif 588w, https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot033-300x66.gif 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/a><\/p>\n<p>Information source: <a target=\"_blank\" href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.web.ui.webcontrols.sqldatasource.updatecommand.aspx\">msdn.microsof.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Insert this code right below &lt;!DOCTYPE html PUBLIC &#8220;&#8230;..&#8221;&gt; tag: Sub UpdateMessage(ByVal source As Object, ByVal e As SqlDataSourceStatusEventArgs) If e.AffectedRows &gt; 0 Then &#8216; Perform any additional processing, &#8216; such as setting a status label after the operation. Label1.Text = &#8220;- Information updated successfully!&#8221; Else Label1.Text = &#8220;No data updated!&#8221; End If End Sub [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,16],"tags":[19,27,42],"class_list":["post-855","post","type-post","status-publish","format-standard","hentry","category-applications","category-net","tag-asp-net","tag-form-validation","tag-gridview"],"_links":{"self":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/855"}],"collection":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/comments?post=855"}],"version-history":[{"count":14,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/855\/revisions"}],"predecessor-version":[{"id":881,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/855\/revisions\/881"}],"wp:attachment":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/media?parent=855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/categories?post=855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/tags?post=855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}