karthik

karthik

  • NA
  • 2
  • 0

Capturing Javascript.Window.Prompt values in ASP,NET

Feb 16 2006 11:08 AM

i have this section of code in my ASP.NET web application

string promptBox = "<script language= 'javascript'>"+ "window.prompt('" + "Enter a Valid IP" + "')" + "</script>";

Page.RegisterStartupScript("IP selection",promptBox);

I can't figure a way to capture the value entered by the user in the prompt into my ASP.NET application. I basically want to store this value in a string and access it within my code-behind.

Thanx,
KV


Answers (2)