April 16th, 2004, 03:35 PM
ASP.NET/VB Message Box
I was looking a long time for a way to display a message box in ASP.NET/VB but i cant. SO can someone please tell me how i can display a message box using VB. I really need to know
Thanks in advace
April 19th, 2004, 08:59 AM
if u r using asp.net try this out
then type this code
hope this solve u'r problem
April 21st, 2004, 10:41 PM
Response.Write("<script>alert('Your password has been changed.')</script>")
You can put this into a procedure in a code-behind module for a page eg. in a button click event.
April 22nd, 2004, 10:07 AM
actually 1st thing is that u need to add reference
project menu -> add reference - > .net tab - >
in coding part (.vb) type
and finally in button click try the code.
u will surely get a message box. But this has few limitations.
November 5th, 2014, 11:16 PM
'Add a scriptmanager to the ASP.Net Page
<asp:scriptmanager id="ScriptManager1" runat="server" />
Dim sMsg As String = "My Message"
ScriptManager.RegisterStartupScript(Page, Page.GetType, Guid.NewGuid().ToString(), "alert('" & sMsg & "')", True)
Originally Posted by Ramihg