I'm newbie ASP.NET MVC.
I have many table such as (Country, State and city). I want to put value in these DropDownListFor in one view. Could you help me please.
Sorry for my bad question and bad English skill.
I'm newbie ASP.NET MVC.
I have many table such as (Country, State and city). I want to put value in these DropDownListFor in one view. Could you help me please.
Sorry for my bad question and bad English skill.
Use viewmodel using all properties from all table
public class dataViewModel
{
public string country { get; set; }
public string state{ get; set; }
//all other properties from other class
}
refer the viewmodel in the View.