If a user is, for example, adding a new Employee to the pubs database, and wants to "cancel out" of the addition of this new employee, what do I need in the cancel button's event handler?
Can you not have it simply post the page without putting anything in the event handler?
------------------------------------------------------------------------------------------------------------------------
"I am not young enough to know everything."
Oscar Wilde (1854-1900)
I figured it out...I just kept the Request.QueryString value in a hidden label, then if the user cancels, all I have to do is repost the page. May need to use the state view instead since that won't call another trip to the db...thanks!
If it is a datagrid then you can set to EditItemIndex = -1
to cancel the edit mode and return the grid back to normal.
Bind your datagrid after the Cancel_button event where you would set the datagrid.edititemindex to -1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.