I am using WebMatrix and C#.
To populate <select> tag I use the following code:
@foreach (var p in itemsFromQuery)
counter=counter + 1;
It works fine.
1. How can I determine the index of option selected by user?
2. How can dynamically set an option with a selected index?