예제 #1
0
    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();
        }
    }
예제 #2
0
    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;
        }
    }