message boxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike P

    #1

    message boxes

    Is it possible to bring up a message box or a new window from within an
    ASP.NET C# script?


    Any help would be really appreciated.


    Cheers,

    Mike




    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Eliyahu Goldin

    #2
    Re: message boxes

    No. A simple client-side Java script can be used for that.

    Eliyahu

    "Mike P" <mrp@telcoelect ronics.co.uk> wrote in message
    news:epboG26SDH A.3144@tk2msftn gp13.phx.gbl...[color=blue]
    > Is it possible to bring up a message box or a new window from within an
    > ASP.NET C# script?
    >
    >
    > Any help would be really appreciated.
    >
    >
    > Cheers,
    >
    > Mike
    >
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]


    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: message boxes

      Mike,

      ASP.NET code is not script, it is actual compiled code that runs on the
      server. Because it runs on the server, you can not pop up a message box
      using the regular call to MessageBox. Instead, you will have to inject the
      script code into the response that will make a call to the alert method on
      the window object that is exposed to Javascript.

      Hope this helps.


      --
      - Nicholas Paldino [.NET/C# MVP]
      - nicholas.paldin o@exisconsultin g.com

      "Mike P" <mrp@telcoelect ronics.co.uk> wrote in message
      news:epboG26SDH A.3144@tk2msftn gp13.phx.gbl...[color=blue]
      > Is it possible to bring up a message box or a new window from within an
      > ASP.NET C# script?
      >
      >
      > Any help would be really appreciated.
      >
      >
      > Cheers,
      >
      > Mike
      >
      >
      >
      >
      > *** Sent via Developersdex http://www.developersdex.com ***
      > Don't just participate in USENET...get rewarded for it![/color]


      Comment

      • Ignacio Machin

        #4
        Re: message boxes

        Hi,

        You will have to use client side scripting for that, if you give a more
        precise description I will give you the solution for the problem at hand.

        Cheers,

        --
        Ignacio Machin,
        ignacio.machin AT dot.state.fl.us
        Florida Department Of Transportation


        "Mike P" <mrp@telcoelect ronics.co.uk> wrote in message
        news:epboG26SDH A.3144@tk2msftn gp13.phx.gbl...[color=blue]
        > Is it possible to bring up a message box or a new window from within an
        > ASP.NET C# script?
        >
        >
        > Any help would be really appreciated.
        >
        >
        > Cheers,
        >
        > Mike
        >
        >
        >
        >
        > *** Sent via Developersdex http://www.developersdex.com ***
        > Don't just participate in USENET...get rewarded for it![/color]


        Comment

        Working...