L
Leroy
I'm fairly new to the .NET environment. I'm currently using ASP.NET
2, VS 2005 Beta.
I have a FormView with a DropDownList bound to a SQLDataSource. The
code looks like this:
<aspropDownList Runat="Server" ID="SecurityRole" Width="100px"
DataSourceID="SqlDataSource1" DatatextField="SecurityRole">
<asp:ListItem Value="Requester">Requester</asp:ListItem>
<asp:ListItem Value="Approver">Approver</asp:ListItem>
</aspropDownList></td>
The problem I'm running into, is when the page loads and the FormView
gets bound via the SQLDataSource, the "SecurityRole" field gets loaded
into the DropDownList, but at this point the ListItems (Requester and
Approver) disappear. The only item in the DropDownList is the value
it grabs from the SQL table. Hope I'm making sense.
Thanks in advance for any help.
2, VS 2005 Beta.
I have a FormView with a DropDownList bound to a SQLDataSource. The
code looks like this:
<aspropDownList Runat="Server" ID="SecurityRole" Width="100px"
DataSourceID="SqlDataSource1" DatatextField="SecurityRole">
<asp:ListItem Value="Requester">Requester</asp:ListItem>
<asp:ListItem Value="Approver">Approver</asp:ListItem>
</aspropDownList></td>
The problem I'm running into, is when the page loads and the FormView
gets bound via the SQLDataSource, the "SecurityRole" field gets loaded
into the DropDownList, but at this point the ListItems (Requester and
Approver) disappear. The only item in the DropDownList is the value
it grabs from the SQL table. Hope I'm making sense.
Thanks in advance for any help.