what I am doing now is on the edit mode if the selection clicked is = Add row I am setting a public Boolean var to true then in the update cmd I check for that var to be either true or false and based on that I am doing something BUT
IN my edit cmd I have
If CType(e.Item.Cells(1).Controls(1), LinkButton).Text = "Add New" Then
Addrow = True
Response.Write(Addrow clicked)
End If
Then in my update command I am doing:
Response.Write(Addrow)
If Addrow = True Then
Response.Write("True")
ElseIf Addrow = False Then
Response.Write("False")
End If
I know I can simplify that saying If addrow then but!!!!
It always sets itself to false EVEN if I click on
add row which is suppose to set the public var to true....
WHY what am I doing wrong here?