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. MsgBox() Function

MsgBox() Function

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-netsysadmintools
2 Posts 2 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.
  • W Offline
    W Offline
    wilf57
    wrote on last edited by
    #1

    Is it right, that the MsgBox() function from asp.net 2.0 cannot be used to show a messageBox in the browser? It only works well on development systems, where server and browser are on the same system? If yes: sorry for my naivity. :-O, :-)) Plz treat this post seriously. PS. I know how to display on the browser, but I thought MsgBox() does this functionality for us per hidden script, like viewstate for example.

    C 1 Reply Last reply
    0
    • W wilf57

      Is it right, that the MsgBox() function from asp.net 2.0 cannot be used to show a messageBox in the browser? It only works well on development systems, where server and browser are on the same system? If yes: sorry for my naivity. :-O, :-)) Plz treat this post seriously. PS. I know how to display on the browser, but I thought MsgBox() does this functionality for us per hidden script, like viewstate for example.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      wilf57 wrote:

      MsgBox() function from asp.net 2.0

      There is no such thing. MsgBox is a hangover from VB6, in VB.NET, in WinForms. It has nothing to do with ASP.NET.

      wilf57 wrote:

      It only works well on development systems, where server and browser are on the same system?

      Correct, because it runs on the server. You can't do stuff like that in C# or VB.NET and have them appear on the client. You need instead to use the alert function, which is a javascript API and thus can run on the client ( so you need to inject javascript into your page, so it appears on the client )

      wilf57 wrote:

      but I thought MsgBox() does this functionality for us per hidden script

      No.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      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