I am attempting to create a "Do you really want to cancel" type button in my ASP.NET web page. I have created the code below. When I step through the code, it seems to work fine. It uses the logic and determines which button was pushed and applies the logic.
I would like for the page to remain the same ("no action taken") when the "cancel" button is pressed.
Any help would be greatly appreciated.
When I press the "cancel button" it gives me an error when it trys to exit the "ABORT" subroutine. "A runtime error has occured, do you wish to debug?" "Line 2 Error: Syntax Error"
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
5 <html xmlns="http://www.w3.org/1999/xhtml
Dim RETVAL As Integer
RETVAL = MsgBox("ARE YOU SURE YOU WANT TO ABORT TEST?", 1, "ABORT TEST")
If RETVAL = 2 Then