First let me thank all of you for numerous useful posts I have read during my recent ASP.NET MVC development. My questions is as follows:
I have a ASP.NET MVC application with loosely coupled model, meaning I use a business layer assembly in a controller to access the data and return data to a view by setting Viewdata["MyData"]
from the controller.
Now my question is how to set individual data of a user control which has multiple instances in a MVC page.
Eg. I have a text box inside userctl.ascx
as:
<%= Html.TextBox("ApprovalDate", ViewData["ApprovalDate"],
new { @ReadOnly = "True" })%>
If i set ViewData["ApprovalDate"]
to be something, how does it apply to individual control data?
Appreciate your help.