Re: Getting data from javascript

From: Jon (jonspivey_at_NOCRAPTHANKStiscali.co.uk)
Date: 02/10/04


Date: Tue, 10 Feb 2004 21:39:13 -0000

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" <anonymous@discussions.microsoft.com> wrote in message
news:AC40D69E-DC65-4D81-8903-5BE32C4B2C13@microsoft.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?
>