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
neel k
NA
143
137k
MVC dropdown viewbag selecte value
Apr 30 2015 1:12 PM
Hi,
In my MVC 5 application one drop down list. below is my code.
var appWorld = from w in sp_app()
select w;
ViewBag.world = new SelectList(appWorld, "id", "name", ApplicationWorlds); // world
@Html.DropDownList("world")
if (Edit_old.world_id !=app_new.world_id && external_applications_new.world_id != null)
{
string worldid = "world_id" + "--->" + Edit_old.world_id + "<---" + app_new.world_id;
Edit_old.world_id = app_new.world_id;
list.Add(worldid);
}
Its not working. can some one help.
Reply
Answers (
8
)
method generic
html tabl;e