Currently, I am passing data from my codebehind into hidden fields like so:
Code behind: HiddenField statusValue.Value = progressPercent.ToString();
.ASCX page: <asp:HiddenField ID="statusValue" value="" runat="server" />
In MVC, I would pass a model from my controller to a view. Is there a similar way to do this in webforms? I am beginning to have a large number of hidden fields and it seems like a bad way to program this...