I did try this example and works perfectly, even when I apply it to our real production environment.
The ONLY error is when we have more than one GridView on same page, I do not know how to specify to the IsRowModified Function, which GridView r belongs to:
Protected
Function IsRowModified(ByVal r As GridViewRow) AsBoolean (r is a row on gridview # 1 or GridView # 2 ?)
Dim .......
currentID = Convert.ToInt32(GridView1.DataKeys(0).Value)
currentTitleOfCourtesy = CType(r.FindControl("TitleOfCourtesyTextBox"), TextBox).Text
I am sure there is an easy way to fix it, but i can't find it.
Can somebody help me please !!
BTW
I can execute the page but when I click the update button, I get this error.........
Server Error in '/Web' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.