Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2008-07-03 : 18:06:55
|
Hello,I have drop down menu that connects to my datasource my_groups.The results shown are values of a users group name. I will like to go one step forward and add a second column to the dropdown menu which is shown below.How do i go about adding two database values (groupname and totalnumbers) to dropdown menu ? DataValueField="groupname,TotalNumbers">thanksEhi quote: <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" DataSourceID="my_groups" DataTextField="groupname" DataValueField="groupname,TotalNumbers"><asp:ListItem Value="0">Select One</asp:ListItem><asp:ListItem Value="0">--------------</asp:ListItem><asp:ListItem Value="1">Show all Categories</asp:ListItem><asp:ListItem Value="0">--------------</asp:ListItem></asp:DropDownList>
|
|
|
|
|