asp, c# and java - simple question

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi all
In my web solution i need to ask the user and record what the user presses. I have made a small messagebox using java-script. How can i record what the user clicks?
<font size=2>private void ASPNET_AnswerBox(string message)
{
string temp = "<SCRIPT>n"
+ "confirm("" + message + "")n"
+ "</SCRIPT>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "errorMsg", temp);
}</font>
<font size=2>I know i have to change my method to return bool, but i cant figure out how to record what the user clicks.</font>
<font size=2></font> 
<font size=2>Thanks. </font>

View the full article
 
Back
Top