how can i create a alert popup message in vb?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



how can i create a alert popup message in vb?



how can i create a popup alert message in vb when my button is click. ?



your help is much appreciated!



here is my page load code looks like:


Imports System.Net.Mail
Imports System.IO
Imports System.Text
Public Class locker
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Request.IsAuthenticated Then
WelcomeBackMessage.Text = "Welcome back!"


AuthenticatedMessagePanel.Visible = True
AnonymousMessagePanel.Visible = True
Else
AuthenticatedMessagePanel.Visible = False
AnonymousMessagePanel.Visible = True
End If

Dim ident As FormsIdentity = CType(User.Identity, FormsIdentity)
Dim authTicket As FormsAuthenticationTicket = ident.Ticket
WelcomeBackMessage.Text = "Welcome, " & User.Identity.Name & "!"

End Sub


Protected Sub send_Click(sender As Object, e As EventArgs) Handles send.Click
<<<<----------popup message coded here------------>>>>>>>>>
End Sub
End Class





You can refer this this link
– शेखर
Sep 29 '14 at 10:10





i just want my popup message shows "congratulations" as simple as that. just a starter in vb.net
– Patrick Lopez
Sep 29 '14 at 10:15





There is noting like pop-up in asp.net. You need to write in response stream for that.
– शेखर
Sep 29 '14 at 10:19





MsgBox(msg, , title)
– Aru
Sep 29 '14 at 10:24




2 Answers
2



If you want to pop-up the message box, just add this to the button code:


onclientclick="javascript:alert('Congratulations!');"



Or in the code behind:


Response.Write("<script language=""javascript"">alert('Congratulations!');</script>")





Tnx @AsTi! it works!!!!
– Patrick Lopez
Sep 30 '14 at 2:56





Hey @AsTi! i do have a question.. is it ever possible to insert image to the popup message???
– Patrick Lopez
Oct 14 '14 at 8:09


Response.Write("<SCRIPT LANGUAGE=""JavaScript""> alert('Complete');</script>")






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard