I have a grid where you can select items, a drop down and a button. You can select an action from the dropdown and the click the button to open the modal dialog.
I need to put the id of the selected items in the Session first (IMPORTANT!), and then I need to open a Modal Dialog from code behind. I have tried a few solutions but the client code always get executed before the server code.

Thanks in advance,