In my Asp.Net MVC project I have two dropdownlist. My View (razor) looks as:
@{
string birth_Date = null;
@Html.DropDownListFor(model => model.Birth_Date,
new SelectList((System.Collections.IEnumerable)DoctorDatawarehouse.Business.CommonChoiceList.LoadYearList(), "Value", "Text", birth_Date))
}
@{
string temp_birth_date = null;
@Html.DropDownListFor(model => model.Town,
new SelectList((System.Collections.IEnumerable)DoctorDatawarehouse.Business.CommonChoiceList.LoadEstimatedYear(), "Value", "Text", temp_birth_date))
}
I want to show only one drop down. If i didn't choose from first drop down list, i want to show the second drop down list and I want to do hide the first.
Thank you so much