Dim message As String = "This is not a valid selection"
Dim sb As New System.Text.StringBuilder()
sb.Append("<script type = 'text/javascript'>")
sb.Append("window.onload=function(){")
sb.Append("alert('")
sb.Append(message)
sb.Append("')};")
sb.Append("</script>")
ClientScript.RegisterClientScriptBlock(Me.GetType(), "alert", sb.ToString())
I have this message box when I user selects an option from a dropdownlist
When this message box fires, my webpage automatically goes back to the top of the page.
How can I stop this? I'd like to be able to keep the webpage in the same position when the message box fires.
Thanks
...
Go to the complete details ...