ViewState for Datalists

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All,

I have a question on datalists. I have 5 datalists on a page and when I try
to view the "ViewSource", the value for the __VIEWSTATE is empty. How do
datalists persist their values?

I am not binding the datalist each and every time. Strangely whenever I try
to access datalist elements from Datalist_ItemCommand it is maintaining it's
viewstate. How is this possible?

Thanks for your help.
 
Perhaps the SavePageStateToPersistenceMedium and LoadPageState... are
overloaded somewhere and the viewstate is being stored somewhere else..

Karl
 
Yes Karl, you are absolutely right. We have been overriding those two
methods. Thanks for pointing me out!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top