TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
BhanuPrasanna Kumar
NA
7
4.2k
MVC3.0 create the radiobuttonlist using ViewBagresults
Aug 20 2013 4:07 AM
Hi Please kindly help me for my Doubt
I have a controller
public class genders
{
public int genderid { get; set; }
public String gendername { get; set; }
}
[HttpGet]
public ActionResult Addfaculty()
{
empDBEntities st = new empDBEntities();
var gends =
(
from gend in st.tblgenderbs
select new genders
{
genderid = gend.genderid,
gendername = gend.gendername
}).ToList();
ViewBag.gendername = gends;
return View();
}
how to create the Radiobuttonlist for that using viewbag results in viewpage please help me please write the code for that once....
Reply
Answers (
5
)
how to show scroll bar down in asp.net
static and dynamic