T
ThunderMusic
Hi,
I have a custom control that draws many thing on the screen including a
hidden field. This hidden field's value is modified through client code.
What I want to do is the following : When there is a postback of the page, I
want this hidden field to keep it's value (from the viewstate or something
like this). Is there an easy solution? Would you need the code.
Right now I :
create a HiddenField in the PreRender of my control
store it in a member variable
render it in the RenderBeginTag
modify it from client-side code
I want to access it's value in the RenderContents method when there is a
post back but right now, the value is always blank.
Is there a solution to my problem? Am I doing the things right and missing a
little tiny thing?
Thanks
ThunderMusic
I have a custom control that draws many thing on the screen including a
hidden field. This hidden field's value is modified through client code.
What I want to do is the following : When there is a postback of the page, I
want this hidden field to keep it's value (from the viewstate or something
like this). Is there an easy solution? Would you need the code.
Right now I :
create a HiddenField in the PreRender of my control
store it in a member variable
render it in the RenderBeginTag
modify it from client-side code
I want to access it's value in the RenderContents method when there is a
post back but right now, the value is always blank.
Is there a solution to my problem? Am I doing the things right and missing a
little tiny thing?
Thanks
ThunderMusic