protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { FunderTypeList.DataSourceID = "FunderTypeDataSource"; FunderTypeDataSource.SelectCommand = "SELECT * FROM fundertype"; FunderTypeList.DataBind(); FunderTypeList.Items.Insert(0, "-Select Funder Type-"); } }
protected void Page_Load(object sender, EventArgs e) { FunderID = Convert.ToDecimal(Request.QueryString["funderid"]); if (Page.IsPostBack == false) { ViewFundTypeData(FunderID); FunderTypeList.DataSourceID = "FunderTypeDataSource"; FunderTypeDataSource.SelectCommand = "SELECT * FROM fundertype"; FunderTypeList.DataBind(); FunderTypeList.Items.Insert(0, "-Select Funder Type-"); } }