Ajax PopUp

Last post 12-31-2008 4:06 AM by XIII. 1 replies.

Sort Posts:

  • Ajax PopUp

    12-31-2008, 2:57 AM
    • Member
      13 point Member
    • mindtrap
    • Member since 11-26-2008, 1:44 PM
    • Posts 28

    I successfully show ajax based popups in a button clicked but I also want to show some error messages as well. For instance I have some code like

    if(t == true){

    showPopUp(); 

    }

    else{

    }

    But when I set popups to be show when button clicked it is not possible. How can I show conditional popups. Any help will be apreciated, thank you in advance.

  • Re: Ajax PopUp

    12-31-2008, 4:06 AM
    Answer
    • All-Star
      124,796 point All-Star
    • XIII
    • Member since 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 13,761
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi,

    take a look at the answers I provided in this thread: http://forums.asp.net/t/1365393.aspx.

    The first answer shows the trick on how to accomplish it with javascript by setting the behaviorID and using the $find function and then calling the Show function on the modal popup.

    Further you'll find the code on how to do it from codebehind (what the OP of that question was after).

    Grz, Kris.

Page 1 of 1 (2 items)