e.g. I have a form with a ListView
that is in edit mode.
Something happens so that the table the Listview is using is no longer available.
I just want to be able to close the window if the user hits 'save'.
In Page_Load
, I check if the table is available, if not, I call RegisterClientScriptBlock(type,name,"window.close()").
However, processing still occurs, and it goes to ListView1_ItemUpdating event
.
In Page_Load
, if the table doesn't exist, I can call Response.End to stop processing, however, the window still stays up since the script never registered.
Any way to stop processing and close the window without having to put a custom IsTableValid()
check in all of my methods?