Last post Oct 14, 2008 06:56 PM by jsiddharthj
Oct 14, 2008 08:46 AM|truongthang|LINK
I'm developing our web application using dotnetnuke . I used a library which loads control dynamically. In each controls, I used a ViewState to store a my values(datatable,hashtable..). But the problems happens when page postpack, the viewsate will be lost
and return to an error (Object not refrence..). Now I am trying using session to store my value but I think it is unnecesssary. I really want to use ViewSate to store my value than session variable. Could you give me some ideas ? Does Dotnetnuke have special
interface or variable that maintain on page like viewstate?
Below is an open library to show how to load control dynamically.
Thanks in advance.
.Net 2.0 FormView
Oct 14, 2008 10:39 AM|polravi|LINK
Set the EnableViewstate property of page directive to true.
Oct 14, 2008 06:56 PM|jsiddharthj|LINK
There seem to be a bug in the library you are using.Just check the properties of library and see if u can set the viewstate.