protected void DVReligion_DataBound(object sender, EventArgs e) { if (((DetailsView)sender).CurrentMode == DetailsViewMode.Edit) { DataRowView row = (DataRowView)((DetailsView)sender).DataItem; DropDownList ddlReligion = (DropDownList)((DetailsView)sender).FindControl("ddlReligion"); DropDownList ddlCast = (DropDownList)((DetailsView)sender).FindControl("ddlCast"); DropDownList ddlRashi = (DropDownList)((DetailsView)sender).FindControl("ddlRashi"); DropDownList ddlStar = (DropDownList)((DetailsView)sender).FindControl("ddlStar"); TextBox txtCastOther = (TextBox)((DetailsView)sender).FindControl("txtCastOther"); // string javascript = "if (this.options[this.selectedIndex].value =='Others')" + //"{document.getElementById('" +txtCastOther.ClientID+ //"').style.visibility='visible'} else{document.getElementById('" + txtCastOther.ClientID + "').style.visibility='hidden'};"; DataBindig.BindReligion(ddlReligion); DataBindig.BindStar(ddlStar); DataBindig.BindRashi(ddlRashi); ddlStar.SelectedValue = row["Star_Id"].ToString(); ddlRashi.SelectedValue = row["Rashi_Id"].ToString(); ddlReligion.SelectedValue = row["Religion_Id"].ToString(); DataBindig.BindCast(ddlCast); // ddlCast.Attributes.Add("onchange", javascript); ddlCast.SelectedValue = row["Cast_Id"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataBindig.BintPlan(ddlPlane); } }
protected void ddlReligion_SelectedIndexChanged(object sender, EventArgs e) { DataRowView row = (DataRowView)DVReligion.DataItem; DropDownList ddlReligion = (DropDownList)DVReligion.FindControl("ddlReligion"); DropDownList ddlCast = (DropDownList)DVReligion.FindControl("ddlCast"); DataBindig.BindCast(ddlCast, ddlReligion.SelectedValue); }
protected void ddlReligion_SelectedIndexChanged(object sender, EventArgs e) { try { DataBindig.BindCast(ddlcast, ddlReligion.SelectedValue); } catch (Exception ex) { } }
protected void DVPersionalDetail_DataBound(object sender, EventArgs e) { if (((DetailsView)sender).CurrentMode == DetailsViewMode.Edit) { DataRowView row = (DataRowView)((DetailsView)sender).DataItem; DropDownList ddlHeight = (DropDownList)((DetailsView)sender).FindControl("ddlHeight"); DataBindig.BindHeight(ddlHeight); ddlHeight.SelectedValue = row["Height"].ToString(); } }
protected void ddlState_SelectedIndexChanged(object sender, EventArgs e) { try { DataBindig.BindCity(ddlCity, ddlState.SelectedValue); } catch (Exception ex) { WebMsgBox.Show(ex.Message); } }
protected void DVReligion_ItemUpdating(object sender, DetailsViewUpdateEventArgs e) { DataRowView row = (DataRowView)((DetailsView)sender).DataItem; DropDownList ddlReligion = (DropDownList)((DetailsView)sender).FindControl("ddlReligion"); DropDownList ddlCast = (DropDownList)((DetailsView)sender).FindControl("ddlCast"); DropDownList ddlRashi = (DropDownList)((DetailsView)sender).FindControl("ddlRashi"); DropDownList ddlStar = (DropDownList)((DetailsView)sender).FindControl("ddlStar"); TextBox txtCastOther1 = DVReligion.Rows[1].Cells[1].Controls[3] as TextBox; TextBox txtCastOther = (TextBox)((DetailsView)sender).FindControl("txtCastOther"); TextBox txtDosham = (TextBox)((DetailsView)sender).FindControl("txtDosham"); TextBox txtGothram = (TextBox)((DetailsView)sender).FindControl("txtGothram"); BAL.Comunity_Id = ddlReligion.SelectedValue; BAL.Star = ddlStar.SelectedValue; BAL.Rashi = ddlRashi.SelectedValue; BAL.Dosham = txtDosham.Text.Trim(); BAL.Gothram = txtGothram.Text.Trim(); BAL.Gender = Session["uid_gender"].ToString().Split('_')[1]; BAL.Id = Session["Bride_groom_Id"].ToString(); if (ddlCast.SelectedValue == "Others") { if (txtCastOther.Text == "") { WebMsgBox.Show("Please Enter New Cast"); txtCastOther.Focus(); } else if (DataBindig.CheckCast(txtCastOther.Text.Trim())) { WebMsgBox.Show("New Cast Is Already Exist Please Select From List"); txtCastOther.Visible = false; txtCastOther.Text = ""; ddlCast.Focus(); } else { BAL.Cast_Id = txtCastOther.Text.Trim(); DataBindig.AddNewCast(txtCastOther.Text.Trim().ToLowerInvariant(), ddlReligion.SelectedValue); WebMSG(DalProfile.UpdateReligiousDetail(BAL)); DVReligion.ChangeMode(DetailsViewMode.ReadOnly); LoadReligion(); } } else { BAL.Cast_Id = ddlCast.SelectedValue; WebMSG(DalProfile.UpdateReligiousDetail(BAL)); DVReligion.ChangeMode(DetailsViewMode.ReadOnly); LoadReligion(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataBindig.BintPlan(ddlPlaneName); if (Request.QueryString["PlaneID"] != null) { ddlPlaneName.SelectedValue = Request.QueryString["PlaneID"].ToString(); objuserdetail.User_Id = Session["uid_gender"].ToString().Split('_')[0]; txtEmail.Text = objuserdetail.GetEmail(); } } }
public void BindAllDDL() { try { DataBindig.BindReligion(ddlReligion); DataBindig.BindTougne(ddlMotherTougue); DataBindig.BindCast(ddlCast); } catch (Exception ex) { throw; } }
protected void DVPhysicalDetail_DataBound(object sender, EventArgs e) { if (((DetailsView)sender).CurrentMode == DetailsViewMode.Edit) { DataRowView row = (DataRowView)((DetailsView)sender).DataItem; RadioButtonList ddlBodyType = (RadioButtonList)((DetailsView)sender).FindControl("ddlBodyType"); RadioButtonList ddlComplextion = (RadioButtonList)((DetailsView)sender).FindControl("radioComplextion"); DataBindig.BindBody_Complextion(ddlBodyType, ddlComplextion); ddlBodyType.SelectedValue = row["Body_Type_Code"].ToString(); ddlComplextion.SelectedValue = row["Complexion_Id"].ToString(); } }
protected void DVEducation_DataBound(object sender, EventArgs e) { if (((DetailsView)sender).CurrentMode == DetailsViewMode.Edit) { DataRowView row = (DataRowView)((DetailsView)sender).DataItem; DropDownList ddlProfession = (DropDownList)((DetailsView)sender).FindControl("ddlProfession"); DropDownList ddlIncome = (DropDownList)((DetailsView)sender).FindControl("ddlIncome"); DropDownList ddlEducation = (DropDownList)((DetailsView)sender).FindControl("ddlEducation"); DataBindig.BindEducation(ddlEducation); ddlEducation.SelectedValue = row["Educational_Qualification"].ToString(); DataBindig.BindProfession(ddlProfession); ddlProfession.SelectedValue = row["Profession_Id"].ToString(); ddlIncome.SelectedValue = row["Anual_Incom"].ToString(); } }
public void BindAllDDLS() { try { // DataBindig.BindCast(ddlcast); DataBindig.BindEducation(ddlEducation); DataBindig.BindFoodDrinkSmoke(rdoDiet, rdoDrink, rdoSmoke); DataBindig.BindReligion(ddlReligion); DataBindig.BindRashi(ddlRasi); DataBindig.BindStar(ddlStar); DataBindig.BindHeight(ddlHeight); DataBindig.BindBody_Complextion(ddlBodyType, ddlComplextion); DataBindig.BindState(ddlState); DataBindig.BindProfession(ddlProfession); DataBindig.BindTougne(ddlMtoungue); } catch (Exception ex) { throw; } }
protected void NewCast() { if (DataBindig.CheckCast(txtOther.Text.Trim())) { if (txtOther.Text == "") { WebMsgBox.Show("Please Enter New Cast"); txtOther.Focus(); } else if (DataBindig.CheckCast(txtOther.Text.Trim())) { WebMsgBox.Show("New Cast Is Already Exist Please Select From List"); txtOther.Visible = false; txtOther.Text = ""; txtOther.Focus(); } else { BALuser.Cast_Id = txtOther.Text.Trim(); DataBindig.AddNewCast(txtOther.Text.Trim().ToLowerInvariant(), ddlReligion.SelectedValue); } } }