I am having some problems. I just created a class named Student which has an other class object which is Batch as

public class Student{
      public Batch batch {get;set;}
      public string Name{get;set;}
      public string CNIC {get;set;}

and here is Batch Class

public class Batch {
      public string BatchName {get;set;}
      public int BatchYear {get;set;}

and i created a strongly typed view for Student class now how i am supposed to display get Batch Object with User with DropdownListFor method helper. thanks in advance.

Related posts

Recent Viewed