private void BindState() { ddlInsureState.DataSource = stateHandler.GetStateListDetails(); ddlInsureState.DataTextField = "StateName"; ddlInsureState.DataValueField = "ID"; ddlInsureState.DataBind(); ddlInsureState.Items.Insert(0, new ListItem("--Select--", "0")); ddlHomeState.DataSource = stateHandler.GetStateListDetails(); ddlHomeState.DataTextField = "StateName"; ddlHomeState.DataValueField = "ID"; ddlHomeState.DataBind(); ddlHomeState.Items.Insert(0, new ListItem("--Select--", "0")); }
private void BindDDL() { ddlState.DataSource = stateHandler.GetStateListDetails(); ddlState.DataTextField = "StateName"; ddlState.DataValueField = "ID"; ddlState.DataBind(); ddlState.Items.Insert(0, new ListItem("--Select--", "0")); ddlTerritory.DataSource = territoryHandler.GetTerritoryDetails(); ddlTerritory.DataTextField = "TerritoryDetails"; ddlTerritory.DataValueField = "ID"; ddlTerritory.DataBind(); ddlTerritory.Items.Insert(0, new ListItem("--Select--", "0")); //Set Default value for limit dropdown ddlDeductibleperClaim.SelectedValue = "500"; ddlDamagetoPremises.SelectedValue = "1000000"; ddlOccurance.SelectedValue = "1000000"; ddlGeneralAggregate.SelectedValue = "2000000"; ddlMedicalExpense.SelectedValue = "5000"; ddlProdAggregate.SelectedValue = "2000000"; ddlInjury.SelectedValue = "1000000"; }