Results 1 to 4 of 4
- 04-21-2008, 03:00 PM #1
Member
- Join Date
- Apr 2008
- Posts
- 1
- Rep Power
- 0
Reference Datalist Selected Value using JavaScript, Java (no postback)
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:DataList 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:DataList>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
- 04-21-2008, 06:29 PM #2
If I knew how to read Javascript I would help.... are you trying to retrieve the value using Java? or Javascript? If the latter only, you've chosen the wrong forum.. if the former maybe someone can merge the two technologies together to help you.
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 04-14-2009, 10:38 PM #3
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 5
can we delete this whole topic? seems to be attracting spam...
- 04-17-2009, 05:07 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Ya, seems it's better to close this thread now. @Thread starter, if you have anything to clear-up with thread close please contact me.
Similar Threads
-
JTable Gridline in selected row
By arubin in forum AWT / SwingReplies: 11Last Post: 11-24-2009, 07:05 PM -
Object and reference
By katie in forum New To JavaReplies: 2Last Post: 10-19-2009, 03:45 PM -
How do we exchange data between Java and JavaScript and vice-versa
By freddieMaize in forum Advanced JavaReplies: 0Last Post: 04-07-2008, 07:44 AM -
Getting the Object Reference Name
By Deathmonger in forum New To JavaReplies: 2Last Post: 03-12-2008, 02:51 PM -
JavaScript to Java Statement
By mutuah in forum Advanced JavaReplies: 0Last Post: 08-08-2007, 05:16 AM


LinkBack URL
About LinkBacks

Bookmarks