veerabhadra
October 12th, 2006, 03:11 AM
How to use return value of javacript alert function when we use in C# by RegisterStartupScript.
This is my code:
string scriptString = "<script language='javascript'>" +
"confirm("are u sure to book this?");</script>";
Page.RegisterStartupScript("ScriptString ", scriptString );
I want to use return value of that alert i.e i user click yes iwant to do something. if No some other thing
can i use that return value:if yes how to use that?Is ther modifications in the to scriptString use the return value?
This is my code:
string scriptString = "<script language='javascript'>" +
"confirm("are u sure to book this?");</script>";
Page.RegisterStartupScript("ScriptString ", scriptString );
I want to use return value of that alert i.e i user click yes iwant to do something. if No some other thing
can i use that return value:if yes how to use that?Is ther modifications in the to scriptString use the return value?