Ajax modalpopup message box instead of the javascript alert("")?

Last post 05-09-2008 12:55 PM by chaumette@gmail.com. 2 replies.

Sort Posts:

  • Ajax modalpopup message box instead of the javascript alert("")?

    05-09-2008, 11:20 AM

    I wanted an alternative to using alert() server-side via Page.RegisterStartupScript to display message box?

    Deos anyone have an code example (C#) to call a message box using the modal popup extender to display to users (Ex: "Your record has been updated!")? I would like to call from the server-side after an update function. For example, my current way:

    If (UpdateRecord(User myUser))

    {

     Page.RegisterStartupScript("UpdateMessage","MessageAlert('Your record has been updated')");

    BindGrid(); 

    }

     

     

     

  • Re: Ajax modalpopup message box instead of the javascript alert("")?

    05-09-2008, 12:28 PM
    • Loading...
    • TonyDong
    • Joined on 02-01-2006, 6:30 PM
    • BC, Canada
    • Posts 642

    Why not use a div to show "Your record has been updated" ?

    Set your div layer z-index so may it is easy.

    Don't forget to click "Mark as Answer" on the post(s) that helped you.
  • Re: Ajax modalpopup message box instead of the javascript alert("")?

    05-09-2008, 12:55 PM

    I considered it, but I wanted to utilize the features of ASP.net 2.0 Ajax.

Page 1 of 1 (3 items)