Error Messagebox.

Last post 05-15-2008 12:32 PM by NC01. 7 replies.

Sort Posts:

  • Error Messagebox.

    05-15-2008, 11:09 AM
    • Member
      266 point Member
    • srachuri
    • Member since 04-10-2008, 8:20 PM
    • Texas
    • Posts 548

    Hi frinds I need the code urgernt in ASP.net please can anyone help me out from this problem..

    Page.ClientScript.RegisterStartupScript(this.GetType(), "myAlertBox", "alert('user created')", true);

    right now i am using this one to display the error messagebox with ok(button)...

    now I need if we press ok we need to close the window. there so can you tell me how I need to get this one done

    ASAP,,

     

    thanks

     

  • Re: Error Messagebox.

    05-15-2008, 11:57 AM
    Answer
    • All-Star
      75,989 point All-Star
    • NC01
    • Member since 08-26-2005, 7:33 PM
    • Posts 14,161
    • TrustedFriends-MVPs

    Try this:

    Page.ClientScript.RegisterStartupScript(this.GetType(), "myAlertBox", "if ( window.confirm('Close this window?') ){window.close();}", true);

    NC...

  • Re: Error Messagebox.

    05-15-2008, 12:08 PM
    • Member
      266 point Member
    • srachuri
    • Member since 04-10-2008, 8:20 PM
    • Texas
    • Posts 548

    Thanks for u r reply..

     

    So where I need to write the alert("user not exists "); like that

     thanks

     

  • Re: Error Messagebox.

    05-15-2008, 12:10 PM
    • All-Star
      75,989 point All-Star
    • NC01
    • Member since 08-26-2005, 7:33 PM
    • Posts 14,161
    • TrustedFriends-MVPs

    srachuri:

    Thanks for u r reply..

     

    So where I need to write the alert("user not exists "); like that

     thanks

     

    I don't understand the question.

    NC...

     

  • Re: Error Messagebox.

    05-15-2008, 12:13 PM
    Answer
    • Member
      266 point Member
    • srachuri
    • Member since 04-10-2008, 8:20 PM
    • Texas
    • Posts 548

    Thanks Sir I got it..

     

    one more thing If I need to show the message in bold what should I do sir..

    thanks for your infoo

  • Re: Error Messagebox.

    05-15-2008, 12:17 PM
    • All-Star
      75,989 point All-Star
    • NC01
    • Member since 08-26-2005, 7:33 PM
    • Posts 14,161
    • TrustedFriends-MVPs

    You can't. The built in browser message boxes etc can not be altered.

    NC...

     

  • Re: Error Messagebox.

    05-15-2008, 12:23 PM
    Answer
    • Member
      266 point Member
    • srachuri
    • Member since 04-10-2008, 8:20 PM
    • Texas
    • Posts 548

    Is ther any way that we can show some kind of www.yahoomail.com in the messagebox like this link..

    like it should be link if they click this link.. like that..

     

    thanks

  • Re: Error Messagebox.

    05-15-2008, 12:32 PM
    Answer
    • All-Star
      75,989 point All-Star
    • NC01
    • Member since 08-26-2005, 7:33 PM
    • Posts 14,161
    • TrustedFriends-MVPs

    You would have to create your own message boxes. It is not really easy, but here is some help:

    http://www.subimage.com/dhtml/subModal/
    http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

    NC...

     

Page 1 of 1 (8 items)