Modal Popup Code Structure.

Last post 06-04-2009 1:13 AM by Vince Xu - MSFT. 1 replies.

Sort Posts:

  • Modal Popup Code Structure.

    05-31-2009, 3:43 PM

    i am using a modal popup as a yes/no confirm button in a User Cart scenario.

    I use 4 major control buttons to launch the Modal Popup and i am attempting to pass variables into the Popup function via session controls, but i cannot get them to register. With this method, each button sends the appropriate Cost, (and related controls) to the Popup function so that i dont have to retype the long complex code for 4 different button OnClick Commands.

    ButtonOnClick Commands set - 

    Session Cost and Sql Update/Insert Commands.

     Call ShowPopUp function.

     

    My problem is that from the  ButtonOnClick commands it wont set the session variables to be sent to the ShowPopUp function. I am guessing this is because the ShowPopUp is a yes/no control and until the YES is selected, the entire function (and string of commands) are being held up.

    Is there a way to send these commands to the session and still call the ShowPopUp function at the same time? Possibly some sort of  "PLACE IN MEMORY NOW", or "RUN THIS COMMAND and THEN run the next ShowPopup with the Yes/No." ? i believe i am stuck in a loop that i cannot get out of because of the Yes/No functionality.)

    i'd post the code, but its soooo very long.

     

    Please Respond in C# if possible.

     

  • Re: Modal Popup Code Structure.

    06-04-2009, 1:13 AM
    Answer

    Hi,

    You can use client-side approach of ModaPopup, instead of defining OkControl property. Please check the following link: http://forums.asp.net/t/1424343.aspx Then you can use Click event of button.


    Vince Xu
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)