Пример #1
0
        protected void btnDetails_Click(object sender, EventArgs e)
        {
            lblHeading.Text = "The Submitted Details are:";

            StudentClass newStudent = new StudentClass();

            newStudent.RollNo = int.Parse(txtRollNo.Text);
            newStudent.Name   = txtName.Text;
            newStudent.Grade  = txtGrade.Text;

            StudentWebApplication.GetStudentDetail client = new StudentWebApplication.GetStudentDetail();
            lblRollNo.Text = client.ShowRollNo(newStudent);
            lblName.Text   = client.ShowName(newStudent);
            lblGrade.Text  = client.ShowGrade(newStudent);
        }
 public string ShowGrade(StudentClass student)
 {
     return("Grade is:" + student.Grade);
 }
 public string ShowName(StudentClass student)
 {
     return("Name is:" + student.Name);
 }
 public string ShowRollNo(StudentClass student)
 {
     return("Roll No. is:" + student.RollNo);
 }