Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to show a message box in asp.net

how to show a message box in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rmesh
    wrote on last edited by
    #1

    hi i need to show a message box in asp.net how to do it?

    _ M T 3 Replies Last reply
    0
    • R Rmesh

      hi i need to show a message box in asp.net how to do it?

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      you can use javascript laert for this purpose.

      Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • R Rmesh

        hi i need to show a message box in asp.net how to do it?

        M Offline
        M Offline
        mohd imran abdul aziz
        wrote on last edited by
        #3

        if you r using visual studio 2005 . add referance of system.windows.form then use messagebox.show("");

        regards imran khan

        1 Reply Last reply
        0
        • R Rmesh

          hi i need to show a message box in asp.net how to do it?

          T Offline
          T Offline
          tonsum
          wrote on last edited by
          #4

          Write the following code in a class file(.vb or .cs) and the from the application call classname.CreateMessageAlert(Me,"Please Login","clientScript") Public Class ClsMsgBox Public Shared Sub CreateMessageAlert(ByVal aspxPage As System.Web.UI.Page, ByVal strMessage As String, ByVal strKey As String) Dim strScript As String = "" strScript &= "alert(""" & strMessage & """);" strScript &= "" If (Not aspxPage.IsStartupScriptRegistered(strKey)) Then aspxPage.RegisterStartupScript(strKey, strScript) End If End Sub End Class Happy Programming!!! Tonmoy Roy

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups