Fill drop down list based on selection of another drop down list in ASP.NET MVC

Model:

namespace MvcApplicationrazor.Models
{
    public class CountryModel
    {
        public List<State> StateModel { get; set; }
        public SelectList FilteredCity { get; set; }
    }
    public class State
    {
        public int Id { get; set; }
        public string StateName { get; set; }
    }
    public class City
    {
        public int Id { get; set; }
        public int StateId { get; set; }
        public string CityName { get; set; }
    }
}   

Continue reading

Advertisements

Few commonly asked .NET Interview Questions

.NET Framework:

1) Architecture of .NET Framework?
2) Architecture of CLR?
3) What is CLR?
4) What is CTS?
5) What is CLS?
6) MSIL?
7) What is JIT Compiler?
8) ASP.net Page life cycle?
9) Difference between web.config and global.asax? Continue reading