This question is locked. New answers and comments are not allowed.
Hi,
I am working on ASP.NET MVC.
I need to place two drop down lists side by side.
1. Application List
2. Versions in each application selected.
Once I select the application from first drop down list, I need to get the versions in that particular application.
How can I query this?
My View currently has application drop down list as follows:
<% using (Html.BeginForm())
{ %>
<%: Html.ValidationSummary(true, "creation was unsuccessful. Please correct the errors and try again.") %>
<fieldset>
<legend>Select an Application</legend>
<div class="editor-label">
<%: Html.LabelFor(m => m.AppID)%>
</div>
<div class="editor-field">
<%:Html.DropDownListFor(m => m.AppID, new SelectList(Model.application, "ID", "Name"), "--Select Application--", new { Style = "width:150px" })%>
</div >
<input type="submit" value="Save" />
</fieldset>
<% } %>
Let me know the ways to do this!
Regards,
Lavanya
I am working on ASP.NET MVC.
I need to place two drop down lists side by side.
1. Application List
2. Versions in each application selected.
Once I select the application from first drop down list, I need to get the versions in that particular application.
How can I query this?
My View currently has application drop down list as follows:
<% using (Html.BeginForm())
{ %>
<%: Html.ValidationSummary(true, "creation was unsuccessful. Please correct the errors and try again.") %>
<fieldset>
<legend>Select an Application</legend>
<div class="editor-label">
<%: Html.LabelFor(m => m.AppID)%>
</div>
<div class="editor-field">
<%:Html.DropDownListFor(m => m.AppID, new SelectList(Model.application, "ID", "Name"), "--Select Application--", new { Style = "width:150px" })%>
</div >
<input type="submit" value="Save" />
</fieldset>
<% } %>
Let me know the ways to do this!
Regards,
Lavanya