Hi,
you might be able to do something like this
if(window.confirm('are you sure you want to do this?')){
document.images['img'].src='Page.aspx?answer=yes';}
else{
document.images['img'].src='Page.aspx?answer=no';}
<img src="shim.gif" width=1 height=1 name="img">
Basically you're sending back either yes or no in the querystring to
Page.aspx without needing a server roundtrip.
Jon
"Dave" <an*******@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
Is it possible to grab data from a javascript prompt window that is called
from within a webform page with C# as the behind code? I know how to
activate the prompt window by calling a routine from an html button in my
webform. But I want to be able to send the reply back to the server. In
other words, is it possible to create a popup or prompt window that can send
data to the server?