Hi Eliyahu,
Thanks for the reply.
I have one doubt with respect to the solution just provided:-
1) Web parts would developed independent of each other by developer and then
assembled on the page
2) If 2 developers of the web part coincidently have the same key for
storing values in web part
Wouldent that cause an issue?
One solution I can think of is each developer provide a prefix for the key’s
they use.
Is there a better way out caus we are now relying on the developer to
provide unique keys, which may not always be done

?
Thanks again for the reply.
"Eliyahu Goldin" wrote:
> HttpContext.Current.CurrentHandler will give you a reference to the
> currently running page. Once you have the page, you can use it's ViewState.
>
> --
> Eliyahu Goldin,
> Software Developer & Consultant
> Microsoft MVP [ASP.NET]
> http://msmvps.com/blogs/egoldin
> http://usableasp.net
>
>
> "Navnit" <(E-Mail Removed)> wrote in message
> news:33679D69-464D-40B4-8BEC-(E-Mail Removed)...
> > Hi,
> >
> > I have the following scenario:-
> > 1) I have a web part
> > 2) This web part uses a class library
> > 3) In the Class Library I want to save and retrieve values from the
> > ViewState
> >
> > I am not able to do this since ViewState is always associated to a
> > control.
> > What are the possible options with which I can achieve this?. I don't want
> > to
> > pass the instance of the web part in the class lib.
> >
> > Thanks in advance
> >
>
>
>