hi

i have a HiddenField control that i have to create at run time. it's populated by javascript on the client end, but each postback it's created again and loses its value. where do i have to create it, or what do i have to do to make it keep its value?

this is my code right now:

private HiddenField hdnSelectedValues;

protected override void CreateChildControls()
{
   base.CreateChildControls();
   hdnSelectedValues = new HiddenField();
   hdnSelectedValues.ID = "hdnSelectedValues";
   base.Controls.Add(hdnSelectedValues);
}

wow. nevermind. it's working...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.