Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I've a problem that I was unable to represent the datatable in dropdownlist using mvc3. So, I'm requesting you to provide me a clue as soon as possible.
Posted

While surfing i have found one link this may help you


http://www.dotnetpools.com/2012/10/binding-dropdownlist-in-mvc3-using-c.html[^]
 
Share this answer
 
v2
http://dotnetpools.com/Article/ArticleDetiail/?articleId=48&title=Binding%20Dropdownlist%20In%20MVC3%20Using%20C#t;[^]


if you are using any submit button,then put the controller code in to another controller with [HTTPPOST],with the same actionresult name...
 
Share this answer
 
If you want to fill dropdownlist with database .. the first fetch data from databse.
then fill it into a view bag.. After that attach the filled data with your dropdown using viewbag.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900