messageBox in ASP pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oscar Sanchez

    messageBox in ASP pages

    Hello

    How can I send messages to user like messageBox from a
    ASP page without doing postback over the page,

    thanks for your help

    Oscar
  • Jim Mitchell

    #2
    Re: messageBox in ASP pages

    Server controls can not take action on the client, so in your button click
    event add....

    response.write( "<scpript language=javasc ript>window.ale rt('message
    here')</script>")

    or use show modal dialog.

    Jim

    "Oscar Sanchez" <orsm@msg.com > wrote in message
    news:469c01c376 58$abb7e0a0$a00 1280a@phx.gbl.. .[color=blue]
    > Hello
    >
    > How can I send messages to user like messageBox from a
    > ASP page without doing postback over the page,
    >
    > thanks for your help
    >
    > Oscar[/color]


    Comment

    • Jim Mitchell

      #3
      Re: messageBox in ASP pages

      Or.... Keep a panel around and make it visible, but then you need a
      postback.


      "Oscar Sanchez" <orsm@msg.com > wrote in message
      news:469c01c376 58$abb7e0a0$a00 1280a@phx.gbl.. .[color=blue]
      > Hello
      >
      > How can I send messages to user like messageBox from a
      > ASP page without doing postback over the page,
      >
      > thanks for your help
      >
      > Oscar[/color]


      Comment

      • Tian Min Huang

        #4
        RE: messageBox in ASP pages

        Hi Oscar,

        In addition to Jim's suggestion, you can also call MsgBox in VBScript.
        Please refer to the following KB article:

        INFO: Internet Explorer Script Prompts and MBCS/Unicode


        Hope this helps.

        Regards,

        HuangTM
        Microsoft Online Partner Support
        MCSE/MCSD

        Get Secure! ¨C www.microsoft.com/security
        This posting is provided ¡°as is¡± with no warranties and confers no rights.

        Comment

        Working...