D
drop
Hi,
I have some DropDownLists that are contained in a DetailsView. Here's
a sample of my code for the DropDownLists :
<InsertItemTemplate>
<asp
ropDownList ID="ddl_TourOp" runat="server"
DataSourceID="ods_TourOp"
DataTextField="Text" DataValueField="Value"
SelectedValue='<%# Bind("Provider") %>'></
asp
ropDownList>
</InsertItemTemplate>
Since I set the SelectedValue declaratively using the Bind, is there
anyway I can intercept an exception thrown if the SelectedValue is not
valid?
I found that this is possible for some Controls ( example :
DetailsView OnItemInserted ) by using the EventArgs, but I haven't
found any way to do it this way with the DropDownList.
Anyone has any idea on how I can do this?
Thank you
Simon Picard
I have some DropDownLists that are contained in a DetailsView. Here's
a sample of my code for the DropDownLists :
<InsertItemTemplate>
<asp
DataSourceID="ods_TourOp"
DataTextField="Text" DataValueField="Value"
SelectedValue='<%# Bind("Provider") %>'></
asp
</InsertItemTemplate>
Since I set the SelectedValue declaratively using the Bind, is there
anyway I can intercept an exception thrown if the SelectedValue is not
valid?
I found that this is possible for some Controls ( example :
DetailsView OnItemInserted ) by using the EventArgs, but I haven't
found any way to do it this way with the DropDownList.
Anyone has any idea on how I can do this?
Thank you
Simon Picard