I have already done this and it makes no difference as to whether my code works. Here's the aspx code.
<asp:TableRow>
<asp:TableCell>Airline 1:</asp:TableCell>
<asp:TableCell>
<asp:ListBox ID="lstAirV1" Runat="server" width="200px" DataValueField="CarrierCod
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>Airline 2:</asp:TableCell>
<asp:TableCell>
<asp:ListBox ID="lstAirV2" Runat="server" width="200px" DataValueField="CarrierCod
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>Airline 3:</asp:TableCell>
<asp:TableCell>
<asp:ListBox ID="lstAirV3" Runat="server" width="200px" DataValueField="CarrierCod
</asp:TableCell>
</asp:TableRow>
Main Topics
Browse All Topics





by: Justin_WPosted on 2004-06-17 at 18:16:56ID: 11340433
You need to specify the DataTextField and DataValueField properties on your ListBoxes (before you DataBind them) to tell them what data to display.
library/de fault.asp? url=/libra ry/ en-us/c pref/html/ frlrfsyste mwebuiwebc ontrolslis tcontrolcl assdatatex tfieldtopi c.asp library/de fault.asp? url=/libra ry/ en-us/c pref/html/ frlrfsyste mwebuiwebc ontrolslis tcontrolcl assdataval uefieldtop ic.asp
http://msdn.microsoft.com/
http://msdn.microsoft.com/