alert using Javascript with asp.net

Discussion in 'ASP .Net' started by Michelle Stone, Dec 5, 2003.

  1. Hi all,

    I use the following command to display a messagebox

    Response.Write ("<script language=javascript>alert('Hello
    World');</script>);

    It works. But the window containing the messagebox whites
    out.

    Any way to avoid this?

    Thanks

    Michelle
     
    Michelle Stone, Dec 5, 2003
    #1
    1. Advertising

  2. Michelle,
    to write a script (JScript) i use the RegisterStartupScript
    ("error",("<script language=javascript>alert('Hello
    World');</script>")

    Try this. The script block will be inside the tags.

    Steven Alexander


    >-----Original Message-----
    >Hi all,
    >
    >I use the following command to display a messagebox
    >
    >Response.Write ("<script language=javascript>alert('Hello
    >World');</script>);
    >
    >It works. But the window containing the messagebox whites
    >out.
    >
    >Any way to avoid this?
    >
    >Thanks
    >
    >Michelle
    >.
    >
     
    Steven Alexander, Dec 5, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mersh
    Replies:
    0
    Views:
    512
    Mersh
    Mar 13, 2007
  2. Ganesh
    Replies:
    0
    Views:
    565
    Ganesh
    Jun 29, 2007
  3. MWulfe
    Replies:
    7
    Views:
    4,088
    Alexey Smirnov
    May 5, 2010
  4. JB
    Replies:
    2
    Views:
    3,429
    Cubaman
    Aug 2, 2010
  5. Replies:
    3
    Views:
    303
    Laurent Bugnion
    Aug 24, 2006
Loading...

Share This Page