Forum Moderators: open
I have a datalist (BookingInfoDL). Within that datalist I have created a DDL (BookingStatus) which has the following code:
<asp:DropDownList runat="server" id="BookingStatusDD">
<asp:ListItem Value="Booked" Text="Booked" />
<asp:ListItem Value="Cancelled" Text="Cancelled" />
<asp:ListItem Value="NoShow" Text="NoShow" />
</asp:DropDownList>
I am looking to extract the value from the BookingStatus field in the Datalist and have the DDL default to that value. Can someone please help. For all other fields I am using:
<%# Container.DataItem("SomeField") %>
to extract the data from the DataList.
Many Thanks.
Helen