Message Box for Web-Application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?R3JlZw==?=

    Message Box for Web-Application

    Is there an equivelant message box (such as in a Windows Application) I can
    use for a Web Application? I've found some examples of JavaScript message
    boxes, but I would rather use something that's built in instead, such as
    messagebox.show (used in VB.Net), if it exists?

    I'd like to be able to respond to Yes, No, Cancel, etc events as well and
    have it shown in Modal as well.

    If there isn't, does anyone know of a simple way to achieve it?
  • sloan

    #2
    Re: Message Box for Web-Application


    You understand that asp.net.....at the end of the day.....is just a very
    fancy (and very nice) way to push html (and optionally javascript code) to
    the browser.

    There is no such thing as MessageBox.Show on web application.
    (I'm speaking in general terms here, for you nay sayers....)

    Silverlight one of the things that allows C# code to run inside the browser,
    but I'm fairly certain that isn't what you're asking.

    ..........

    At the end of the day, the browser is going to be sent html/javascript code
    that is displayed (or ran) on the browser.

    ............... .....

    Check telerik.com if you want "very nice" messages boxes already done for
    you. (This cost$, fyi).




    "Greg" <AccessVBAnet@n ewsgroups.nospa mwrote in message
    news:901F969A-2A44-4815-969A-D9B772A77EEA@mi crosoft.com...
    Is there an equivelant message box (such as in a Windows Application) I
    can
    use for a Web Application? I've found some examples of JavaScript message
    boxes, but I would rather use something that's built in instead, such as
    messagebox.show (used in VB.Net), if it exists?
    >
    I'd like to be able to respond to Yes, No, Cancel, etc events as well and
    have it shown in Modal as well.
    >
    If there isn't, does anyone know of a simple way to achieve it?

    Comment

    • Ignacio Machin ( .NET/ C# MVP )

      #3
      Re: Message Box for Web-Application

      On Oct 13, 1:14 pm, Greg <AccessVBA...@n ewsgroups.nospa mwrote:
      Is there an equivelant message box (such as in a Windows Application) I can
      use for a Web Application? I've found some examples of JavaScript message
      boxes, but I would rather use something that's built in instead, such as
      messagebox.show (used in VB.Net), if it exists?
      >
      I'd like to be able to respond to Yes, No, Cancel, etc events as well and
      have it shown in Modal as well.
      >
      If there isn't, does anyone know of a simple way to achieve it?
      There is nothing like that in asp.net , you can use the simplest
      form , an Alert . For something fancier you can implement your own (or
      find one). You could for example similuate it by using a DIV centered,
      the rest of the page will be unavailable using a silk control? (I do
      no really remember the name of the control) Then you can create the
      buttons you need as well as handle the clicks as you want back in the
      server.

      I'm pretty sure something like this should exist already.

      Comment

      • Mark Rae [MVP]

        #4
        Re: Message Box for Web-Application

        "Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin @gmail.comwrote in
        message
        news:6013cefa-a52c-4945-8ad4-d8c656e30253@j2 2g2000hsf.googl egroups.com...
        There is nothing like that in asp.net , you can use the simplest
        form , an alert().
        This, plus the related return() method which supports basic Yes/No
        functionality, handles pretty much everything needed in ASP.NET
        For something fancier you can implement your own (or
        find one). You could for example similuate it by using a DIV centered,
        the rest of the page will be unavailable using a silk control? (I do
        no really remember the name of the control) Then you can create the
        buttons you need as well as handle the clicks as you want back in the
        server.
        I'm pretty sure something like this should exist already.



        --
        Mark Rae
        ASP.NET MVP


        Comment

        Working...