<asp:DropDownList ID="drpPurcahseBrand" runat="server" Height="24px" Width="173px" AppendDataBoundItems="True" AutoPostBack="True"> <asp:ListItem Text="Select Brand" Selected="true"></asp:ListItem> </asp:DropDownList>
drpPurcahseBrand.DataSource = ClassLibrary1.mainclass.dset("brand_name", ""); drpPurcahseBrand.DataValueField = "Brand"; drpPurcahseBrand.DataTextField = "Brand"; DataBind(); Stored Procedure: ALTER PROCEDURE brand_name AS select Brand from Rate RETURN
drpPurcahseBrand.DataValueField = "Brand"; drpPurcahseBrand.DataTextField = "Brand"; DataBind(); ListItem lst = new ListItem ( "Select Brand" , "0" ); drpPurcahseBrand.Items.Add(lst );
Stored Procedure: ALTER PROCEDURE brand_name AS begin select Brand from Rate end
drpPurcahseBrand.Items.Clear()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)