EDN Admin
Well-known member
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
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