ViewState for Datalists

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.
 
K

Karl Seguin [MVP]

Perhaps the SavePageStateToPersistenceMedium and LoadPageState... are
overloaded somewhere and the viewstate is being stored somewhere else..

Karl
 
G

Guest

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top