3
Answers

How to show last item of dropdown list in first postion

Photo of Dr.Ajay Kashyap

Dr.Ajay Kashyap

8y
766
1
 How to show last item of dropdown list in first postion and remaning are same...in MVC using viewbag.
 
ViewBag.City_Id = new SelectList(this.db.Cities.AsEnumerable<City>(), "City_Id", "City_Name", null);
 

Answers (3)