Re: DropDownList properties .. no SelectedValue ...
- From: "Barrie Wilson" <bwilson@xxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 12:30:36 -0500
"Teemu Keiski" <joteke@xxxxxxxxxxxxxxx> wrote in message
news:Ow4cz7wGIHA.1316@xxxxxxxxxxxxxxxxxxxxxxx
It is meant to be used in code only. SelectedValue property is assigned
with Browsable(false) attribute which prevents it from being viewed /
edited in design-time.
Thanks, Teemu ... so is there a better way to bind a DropDownList value
which is part of a FormView InsertItemTemplate to a data source? Right now
I'm ignoring Intellisense and using this:
<InsertItemTemplate >
<asp:DropDownList ID="drawingTypes"
runat="server"
DataSourceID="SQL_DatSource_drawingTypes"
SelectedValue='<%# Bind("dType") %>'
DataTextField="dType"
DataValueField="dType"
</asp:DropDownList>
.....
</InsertItemTemplate >
this works fine ... what is the prefered way of doing this if not by using
SelectedValue in the template?
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Barrie Wilson" <bwilson@xxxxxxxxxxx> wrote in message
news:13iekn04pt480d6@xxxxxxxxxxxxxxxxxxxxx
I have a DropDownList on a plain vanilla ASPX page,
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDataSource2" .... etc >
The issue is that Intellisense is not displaying "SelectedValue" as an
option ... I'm using VS 2005, Framework 2.0.50727 and coding in C# ...
Anyone have any idea what might be going on here?
TIA
BW
.
- Follow-Ups:
- Re: DropDownList properties .. no SelectedValue ...
- From: Teemu Keiski
- Re: DropDownList properties .. no SelectedValue ...
- References:
- DropDownList properties .. no SelectedValue ...
- From: Barrie Wilson
- Re: DropDownList properties .. no SelectedValue ...
- From: Teemu Keiski
- DropDownList properties .. no SelectedValue ...
- Prev by Date: RE: Keeping datatable data in memory
- Next by Date: Re: AJAX file upload
- Previous by thread: Re: DropDownList properties .. no SelectedValue ...
- Next by thread: Re: DropDownList properties .. no SelectedValue ...
- Index(es):
Relevant Pages
|
Loading