Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
Show Messagebox in VB.Net web application
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
rachayita jaiswal
11y
2.9k
1
Reply
I want to show message box on button click event in VB.Net web application , my code is -
Public Sub MessageBox(ByVal msg As String)
Dim lbl As New Label
lbl.Text = "<script language='javascript'>" & Environment.NewLine & _
"window.alert('" + msg + "')</script>"
Page.Controls.Add(lbl)
'End Sub
<asp:Button ID="btnGenerateReport" CssClass="Button100x25" runat="server" Text="View Report" />
Protected Sub btnGenerateReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnGenerateReport.Click
MessageBox("test message")
getreportdata() // this is a function through which i am getting data in my crystel report
End Sub
i want before uploading data my message box should display. But through this code i am not able to.
Please help me.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Microsoft.jet.oledb.4.0 is not registered in the local
Dynamic Function using MySql and VB.Net