protected void btnupdate_Click(object sender, EventArgs e) { int result = 0; _StudentBL = new StudentBL(); result = _StudentBL.BL_Student_Update(Convert.ToInt32(Session["sid"].ToString()), txtname.Text, txtname4.Text, txtname0.Text, txtname1.Text, txtname2.Text, txtname3.Text); if (result != 0) { MultiView1.ActiveViewIndex = 0; List <Student> _StudentList = new List <Student>(); _StudentBL = new StudentBL(); _StudentList = _StudentBL.BL_Student_Select_BY_SID(Convert.ToInt32(Session["sid"].ToString())); lblnam.Text = _StudentList[0].STUDENTNAME.ToString(); lblmobile.Text = _StudentList[0].MOBILE.ToString(); lbladd.Text = _StudentList[0].ADD.ToString(); lblcity.Text = _StudentList[0].CITY.ToString(); lblpincode.Text = _StudentList[0].PINCODE.ToString(); lblemail.Text = _StudentList[0].EMAIL.ToString(); } }