Im newbie to object Oriented programming c# , I have 2 Classes Student and Courses
One student have many courses , i want to model Student Class as
public class Student
{
public string fullName { set; get; }
public string address { set; get; }
public int Age { set; get; }
Courseid (is member of Course Class)
public List <Student> getStudents() {
// here i create
List<Student> list = new List<Student>() ;
list.add(fullname , address ,Age , CouseID)
}
Class Course {
int CourseID ;
string CourseName ;
string InstructorName
}
I want to use 2 Gridviews First studentGridView and second CoursesGridView
when i select row in studentGridView it list me the courses for particular student in CoursesGridView
I going to use ObjectDataSource asp.net control , no database will useed
(still one question in UML what is the name of relashionship between Students and Courses )
Regards
Thanks
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









