S
SJ
I have a dropdownlist("myList") in my DataList control. When a user selects
one of the
items in the dropdownlist, I need to access the value of the DataBound Label
("myLabel") in the Datalist and display it in a popUp window. I have to do
all of this in Codebehind and not inline scripting. Any idea how I can
accomplish this?
<aspataList id="testList" runat="server">
<ItemTemplate>
<aspropDownList id="myList" runat="server">
<asp:ListItem value="Item1"></asp:ListItem>
<asp:ListItem value="Item2"></asp:ListItem>
</aspropDownList>
<asp:Label id="myLabel"><%# DataBinder.Eval(Container.DataItem,
"DataValue")%>
</asp:Label>
</ItemTemplate>
</aspataList>
Thanks.
one of the
items in the dropdownlist, I need to access the value of the DataBound Label
("myLabel") in the Datalist and display it in a popUp window. I have to do
all of this in Codebehind and not inline scripting. Any idea how I can
accomplish this?
<aspataList id="testList" runat="server">
<ItemTemplate>
<aspropDownList id="myList" runat="server">
<asp:ListItem value="Item1"></asp:ListItem>
<asp:ListItem value="Item2"></asp:ListItem>
</aspropDownList>
<asp:Label id="myLabel"><%# DataBinder.Eval(Container.DataItem,
"DataValue")%>
</asp:Label>
</ItemTemplate>
</aspataList>
Thanks.