Results 1 to 2 of 2

Thread: Message box

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    21

    Message box

    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:
    1. Public Sub CreateMessageAlert(ByVal senderpage As System.Web.UI.Page, ByVal alertMsg As String, ByVal alertKey As String)
    2.         Dim strScript As String
    3.         strScript = "<script language=JavaScript>confirm('" + alertMsg + "')</script>"
    4.         If Not (senderpage.IsStartupScriptRegistered(alertKey)) Then
    5.             senderpage.RegisterStartupScript(alertKey, strScript)
    6.         End If
    7.     End Sub

    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim alertmessage As String
    3.         alertmessage = "Please select Folder before going to delete"
    4.         Me.CreateMessageAlert(Me, alertmessage, "alertKey")
    5.           End Sub
    Last edited by Wokawidget; Sep 20th, 2005 at 03:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width