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
jothi kumar
1.3k
107
56.3k
Bind Default Value as YES in Radio Button in mvc 5
Jul 23 2014 3:17 AM
hi to all,
Kindly help me How to set default value as "YES" in radio button in controller.
my code is:-
public ActionResult _CreatePartialView([Bind(Include = "Branch_Id,Branch_Name,Branch_Cde,IsActive)]Branch branch)
{
try
{
branch.IsActive="Y";
db.Branches.Add(branch);
db.SaveChanges();
}
catch (exception)
{
--------
}
}
Reply
Answers (
2
)
confirmation and navigate to another page
how to bind value from database to dropdown list