I'm doing some web forms development after having developed using ASP MVC for a long time. Is there a way to databind the controls the way you do it in MVC? In MVC I'd have a model class and then bind the property to a control like this.
@model MyClass
@Html.TextboxFor(x => Model.Name)
However, in MVC when I use an it looks like I have to do the binding manually on the codebehind. Is there a way of declaring a model class for the page and then do something like this?
<asp:TextBox Text="<% Model.Name %>" />