Hello,
I'm using this code to pop up a confirm msg:
lblMsg.Text = "<SCRIPT language = 'javascript'>doSubmit = confirm('Warning: This file already exists !');</script>"
I want to get back the result (ok or cancel) on code-behind side. I tried to replace doSubmit with
window.document.Form1.MyLbl.value
where MyLbl is an ASP.Net label or an HtmlInputText but in both cases, the result is undefined.
I absolutely need to get the value on VB side as I don't know how to code what follows the pop up msg in Javascript.
Can you help me ?
I'm using this code to pop up a confirm msg:
lblMsg.Text = "<SCRIPT language = 'javascript'>doSubmit = confirm('Warning: This file already exists !');</script>"
I want to get back the result (ok or cancel) on code-behind side. I tried to replace doSubmit with
window.document.Form1.MyLbl.value
where MyLbl is an ASP.Net label or an HtmlInputText but in both cases, the result is undefined.
I absolutely need to get the value on VB side as I don't know how to code what follows the pop up msg in Javascript.
Can you help me ?