示例#1
0
    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();
        }
    }
示例#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;
        }
    }