Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
mvc 4 how to dropdown list in alphabetical order
Nizam Nizam
9y
630
1
Reply
public ActionResult Custom()
{
ViewBag.SmsSubject =
new SelectList(db.Sms_UserTemplate.Where(a => a.SchoolId == SessionValues.Current.School.SchoolId),
"TempId", "SmsSubject");
return View("Custom",new Sms_UserTemplate());
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to view resume which is stored in sql server 2008r2
How to convert Years into Days in asp .net