Hi,
Using ASP.Net MVC 1.0 I have a form with some input control on it. One of them is a dropdown (select). When this dropdown gets changed by the user I like to update a DIV-tag using RenderPartial() or something like this.
My view currently look like this:
<% using (var form = Html.BeginForm())
{ %>
<label for="FieldIdentifier">Identifier:</label>
<%=Html.TextBox("FieldIdentifier", Model.FieldIdentifier)%>
...
<label for="DataType">DataType:</label>
<%=Html.DropDownList("DataType", Model.AvailableDataTypes)%>
<div id="DataTypeOptions">
<% Html.RenderPartial("FieldDataTypeOptions", Model); %>
</div>
...
In Webforms the functionality I am looking for could be done with an UpdatePanel around the dropdown and the DIV. Can Ajax.BeginForm() help here or is JScript on the "OnChange" client event needed? If so, how does one update the DIV-part of the view using JScript?
Any help would be great!
Cheers, Marc