-
Reference Datalist Selected Value using JavaScript
Quick question, I hope.
I am trying to reference the Selected Value of a DataList from JavaScript. I have tried loads of different ways, I just can't get it.
The Datalist is in a page which has a master page, the code is below.
Can someone give me the code, if possible to retrieve the Selected Value.
Thanks
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server" >
<asp:UpdatePanel ID="UpdatePanel4" runat="server" >
<ContentTemplate>
<asp
ataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="7" RepeatDirection="Horizontal" ShowFooter="False" ShowHeader="False" CssClass="DatalistLinkButton" DataKeyField="STID" >
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select"
CommandArgument='<%# Eval("STID") %>' CssClass="DatalistLinkButton"
Text='<%# Eval("STName") %>' />
</ItemTemplate>
</asp
ataList>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
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
Bookmarks