|
-
Nov 23rd, 2002, 12:29 AM
#1
Thread Starter
New Member
(datagrid) Retrieve the selected value (template dropdown control)
I have a template column with a dropdown control (in a datagrid).
I have AutoPostBack set to TRUE because I need to update a file when a selection has changed.
My question:
How to retrieve the selected value when posted back in the code behind? not knowing witch DDL was changed.
Here is the template code if it can help.
Thanks,
<asp:TemplateColumn>
<ItemTemplate>
<asp ropDownList AutoPostBack=True id=DropDownList1 runat="server" SelectedIndex='<%# GetSelIndex(Container.DataItem("id")) %>' DataSource="<%#
GetUserType() %>" DataTextField="value" DataValueField="id">
</asp ropDownList>
</ItemTemplate>
</asp:TemplateColumn>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|