Sto creando uno userControl tipo .dll (Web Control Library). Il problema è che dovrei creare una <input type="hidden" value=""> e quest'ultima dovrebbe mantenere il valore scelto dall'utente (tramite una serie di script java con cui interagisce)
Io l'ho impostato nel seguente modo:
Dim txtClrCmb As New System.Web.UI.HtmlControls.HtmlInputHidden
....
Protected Overrides Sub Render(ByVal output As HtmlTextWriter)
txtClrCmb.EnableViewState = True
txtClrCmb.Attributes.Add("runat","server");
txtClrCmb.ID = "txtClrCmb" & Me.ID
txtClrCmb.RenderControl(output)
Dim idTxtClrCmb As String = txtClrCmb.ClientID
output.Write("...Tutto il mio codice...")
End Sub
....
Il problema è lo stato della txtClrCmb
Naturalmente pensavo che impostando la proprietà txtClrCmb.EnableViewState = True mantenesse lo stato ma purtroppo non è così

Rispondi quotando