hi all,
i have a question
i want to display a message box in web page using asp.net
but the remaining problem , i want to run asp.net procedure when the user press ok button
and another procedure when the user press cancel button
where can i add this condition
VB Code:
Public Sub CreateMessageAlert(ByVal senderpage As System.Web.UI.Page, ByVal alertMsg As String, ByVal alertKey As String) Dim strScript As String strScript = "<script language=JavaScript>confirm('" + alertMsg + "')</script>" If Not (senderpage.IsStartupScriptRegistered(alertKey)) Then senderpage.RegisterStartupScript(alertKey, strScript) End If End Sub
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim alertmessage As String alertmessage = "Please select Folder before going to delete" Me.CreateMessageAlert(Me, alertmessage, "alertKey") End Sub


Reply With Quote
