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.