I'm using VS2008 and .net 3.5. I have a gridview with edit and delete enabled. I have a message that pops up on the delete click that asks the client if they really want to delete this record, but I can't find the syntax to retrieve the result of the confirm message. My code is listed below:
strMsg = "Are you sure you want to delete this?"
ScriptManager.RegisterStartupScript(UpdatePanel2, UpdatePanel2.GetType(), "clientScript", "confirm('" + strMsg + "')", True)
I have been surfing the net for two days to find an answer to this or to recode differently, but my problem is that most of the code examples out there are in C not vb. Can anyone point me to a website that I can find an answer to this or tell me how to get the result from the above code.
Thanks
Cathy
strMsg = "Are you sure you want to delete this?"
ScriptManager.RegisterStartupScript(UpdatePanel2, UpdatePanel2.GetType(), "clientScript", "confirm('" + strMsg + "')", True)
I have been surfing the net for two days to find an answer to this or to recode differently, but my problem is that most of the code examples out there are in C not vb. Can anyone point me to a website that I can find an answer to this or tell me how to get the result from the above code.
Thanks
Cathy