This topic is locked

Response.Write with no action

4/26/2008 6:50:06 PM
ASPRunnerPro General questions
Y
yairilan author

Hi,

Sorry for the ignorance - But how can I use this code without any action after click on "Cancel" or "ok" and by that using it only for the text message?

Response.Write "<script>if (confirm('My Message)) window.location = 'XXXXX'; else window.location = 'YYYYY';</script>"


What I mean is to write something where I located the XXX and YYY that won't do any action.

Tx bery much,

Yair

J
Jane 4/28/2008

Yair,
use simple alert() if you don't want to add any actions:

Response.Write "<script>alert('My Message');</script>"