If IsPostBack = False Then Dim SqlAdapter As New SqlDataAdapter("Select AccountType,Cost From Accounts Where IsAddOn=1 order by AccountType ", ConnectionString) Dim SqlDataset As New DataSet SqlAdapter.Fill(SqlDataset) DropDownList1.DataSource = SqlDataset.Tables(0) DropDownList1.DataTextField = "AccountType" DropDownList1.DataValueField = "Cost" DropDownList1.DataBind() End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)