in javascript, store the string in a hidden form field and access it via
REquest.Form.
There's no tie between the javascript onClick and the server-side
handler...you need to write your own (hence the hidden form field)
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Amelyan" <ba******@wi.rr.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Button btn = new Button();
btn.Attributes.Add("onClick", "prompt(\"Enter name\")");
btn.Click += new EventHandler(this.ProcessName);
How do I access string returned by javascript prompt function from inside
of my ProcessName postback event handler?