I have a page containing a text box and a button, when the user clicks the submit button, I want to display a message based on the bool value.
I researched stackoverflow and tried the code in these questions: Displaying and redirecting an Asp.net Web form
But that did not work. I have the following code:
ClientScript.RegisterStartupScript(this.GetType(),"", "alert('message')", true);
What code do I need to display a warning message?
Theomax Feb 20 2018-12-12T00: 00Z
source share