L
lostdante via DotNetMonster.com
Hi
I have a function that calls a webservice which then populates a dataset.
Dependent on the row count of the dataset my app either populates the page
with the dataset content or pops up a java message box. This all works fine.
What I now want to do is catch the value from the confirmation message and
trigger either a new popup or pass back to the app.
I've tested the javascript in an html page and it works fine, i'm just not
sure if you can evaluate the javascript using the registerscript block
function. The code looks like...
Dim alertscript = "<script language=JavaScript>"
alertscript = alertscript + " var fRet; "
alertscript = alertscript + " fRet = confirm('first message in here')
;"
alertscript = alertscript + " If (fRet) { "
alertscript = alertscript + " alert('second message');}"
alertscript = alertscript + " </script" + ">"
If Not IsClientScriptBlockRegistered("confirm") Then
RegisterClientScriptBlock("confirm", alertscript)
End If
any ideas/ advice
Thanks
I have a function that calls a webservice which then populates a dataset.
Dependent on the row count of the dataset my app either populates the page
with the dataset content or pops up a java message box. This all works fine.
What I now want to do is catch the value from the confirmation message and
trigger either a new popup or pass back to the app.
I've tested the javascript in an html page and it works fine, i'm just not
sure if you can evaluate the javascript using the registerscript block
function. The code looks like...
Dim alertscript = "<script language=JavaScript>"
alertscript = alertscript + " var fRet; "
alertscript = alertscript + " fRet = confirm('first message in here')
;"
alertscript = alertscript + " If (fRet) { "
alertscript = alertscript + " alert('second message');}"
alertscript = alertscript + " </script" + ">"
If Not IsClientScriptBlockRegistered("confirm") Then
RegisterClientScriptBlock("confirm", alertscript)
End If
any ideas/ advice
Thanks