Hello,
I need to be able to specify a value in my <option> tag inside of a <select> tag but the value is actually the id of a field.
Here is the code:
so where it says <option value = ""> I need to put location.id but I am not sure how the exact syntax should look likeCode:<select id="cmbLocation"> <%foreach(EnvironmentalMonitoring.Models.VqEmLocation location in ViewData["locations"] as IEnumerable<EnvironmentalMonitoring.Models.VqEmLocation>)%> <%{ %> <option value=""><%=location.Name%></option> <%} %> </select>
Any help is appreciated
Thanks
Susan




Reply With Quote