protected void btnUpdate_Click(object sender, EventArgs e) { if (Page.IsValid) { BEAdmin objBEAdmin = new BEAdmin(); BAdmin objBAdmin = new BAdmin(); objBEAdmin.IntStudentID = Convert.ToInt32(Session["studentid"]); objBEAdmin.strFirstName = lblstudentfirstname.Text; objBEAdmin.strLastName = lblStudentLastName.Text; objBEAdmin.strEmailAddress = lblEmailID.Text; // objBEAdmin.strPhoneNumber = txtPhoneNumber.Text; //objBEAdmin.strTimeZone = ddlTimeZone.SelectedValue; objBEAdmin.strSpecialNeeds1 = ddlSpecialNeeds.SelectedValue; objBEAdmin.StrComments = txtcomments.Value; objBEAdmin.IntstatusFlag = Convert.ToInt32(ddlStatus.SelectedValue.ToString()); objBAdmin.BUpdateStudentDetails(objBEAdmin); if (objBEAdmin.IntResult == 1) { //Session["TimeZoneID"] = ddlTimeZone.SelectedValue.ToString(); //Session["TimeZone"] = ddlTimeZone.SelectedItem.Text.ToString(); trUpdate.Visible = false; EnableDetails(); trMessage.Visible = true; lblInfo.Text = Resources.AppMessages.Admin_EditStudent_Success_StudentDetailsUpdated; lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Success); ImgInfo.ImageUrl = Resources.AppConfigurations.Image_Success; tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Success); } else { trMessage.Visible = true; lblInfo.Text = Resources.AppMessages.Admin_EditStudent_Error_StudentDetails; lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Error); ImgInfo.ImageUrl = Resources.AppConfigurations.Image_Error; tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Error); } } }