protected void DVPhysicalDetail_ItemUpdating(object sender, DetailsViewUpdateEventArgs e) { TextBox txtParentsContact = (TextBox)((DetailsView)sender).FindControl("txtParentsContact"); RadioButtonList radioBodyType = (RadioButtonList)((DetailsView)sender).FindControl("ddlBodyType"); RadioButtonList radioComplextion = (RadioButtonList)((DetailsView)sender).FindControl("radioComplextion"); DropDownList ddlFamilyStatus = (DropDownList)((DetailsView)sender).FindControl("ddlFamilyStatus"); DropDownList ddlBlodGroup = (DropDownList)((DetailsView)sender).FindControl("ddlBlodGroup"); BAL.Parents_Contects = txtParentsContact.Text.Trim(); BAL.Body_Type_Code = radioBodyType.SelectedValue; BAL.Complexion_Id = radioComplextion.SelectedValue; BAL.Blode_Group = ddlBlodGroup.SelectedValue; BAL.Family_Status = ddlFamilyStatus.SelectedValue; BAL.Gender = Session["uid_gender"].ToString().Split('_')[1]; BAL.Id = Session["Bride_groom_Id"].ToString(); //SqlCommand com = new SqlCommand("update tblGroom set About_Me='" + txtAboutMe .Text + "' where Groom_Id=" + BAL.Id, DbManager.Con); //DbManager.Open(); //WebMsgBox.Show( com.ExecuteNonQuery().ToString()); WebMSG(DalProfile.UpdatePhysicalDetail(BAL)); DVPhysicalDetail.ChangeMode(DetailsViewMode.ReadOnly); LoadPhysicallDetail(); }
protected void DVPhysicalDetail_ModeChanging(object sender, DetailsViewModeEventArgs e) { DVPhysicalDetail.ChangeMode(e.NewMode); LoadPhysicallDetail(); }