I'm developing an ASP.NET application with C# and Ajax.
I have a page that holds user controls loaded dynamically. I need to pass some data (integer values and some strings) to the user control that has been loaded dynamically.
Now I use Session to pass these values, but I think I can use another way; something like VIEWSTATE or hidden input.
What do you recommend me?
UPDATE:
The fact that I load the controls dynamically is important because controls are loaded on every postback, and I can't store any value on controls.