Hi Bob. Thanks for your reply. I'm creating a custom control (for SharePoint
Web Part). CreateChildControls() is being called before the view state is
loaded, so I can't access view state in CreateChildControls(). Anyway, I
changed my code, so that I now do whatever I wanted to do in
CreateChildControls() that needed view state in Load event instead.
Thanks.
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:et**************@TK2MSFTNGP02.phx.gbl...
Michael wrote: Hi,
I need to access view state data in my CreateChildControls method. Is
there anyway to achieve that?
I'm using ASP.NET 1.1.
Thanks.
Sure! use the ViewState object:
http://msdn.microsoft.com/library/en...gViewState.asp
http://msdn.microsoft.com/library/en...gViewState.asp
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.