Javascript server side

  • Thread starter lostdante via DotNetMonster.com
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,058
Latest member
QQXCharlot

Latest Threads

Top