I need a simple messagebox in asp.net, I tried the following code.
Me.Page.ClientScript.RegisterStartupScript(Me.GetType(), "clientScript","<script>javascript:alert('Guest already associated with
another event');</script>")
but I had no luck. Actually I have a dropdownlist which is in a updatepanel it should throw an error message via a MessageBox. I don't know why javascript not working. Is there any other way by which we could show an simple error message in MessageBox.
See this user control which will help you MessageBox Usercontrol with ASP.net
use this simple way
and in your aspx file use this code to alert a message
Easier:
Or:
0 is the number of buttons (0 is 1, 1 is 2...)
try: