Posted on: 3/14/2011 9:45:20 PM | Views : 269

Hello,
 
I need some high-level advice on how to deal with this issue. I want to have dynamically created buttons, each with a different CommandArgument, that call an OnCommand event when  clicked.  Given that these are dynamic buttons, I have to re-create them in Page_Load after the postback.  However, when I re-create the buttons, the orginal command arguments are lost, and the arguments generated after the postback are only valid.
As you'd expect, if I don't recreate the buttons, the event handler is never called because the buttons don't exist.   
My question is, how can I retrieve those original commandarguments, without the use of sessions.   
...

Go to the complete details ...