how to find value of dataset using jquery

Posted by Klbaiju under jQuery on 10/4/2012 | Points: 10 | Views : 1600 | Status : [Member] | Replies : 0
In my application ,i bind data to a gridview like this
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False">

<asp:TemplateField HeaderText="BookID">
<span id= '<%# Eval("BookID") %>' class='text'><%# Eval("BookID")%> </span>
<asp:TemplateField HeaderText="Title">
<span id= 'first<%# Eval("Title") %>' class='text'><%# Eval("Title")%> </span>


here I bind only 2 fields
I bind this fields by a datatable.
there is 2 more fields
Eval("author") and Eval("Refno").
my requirement is there is a button on the press event i want to take the value of author.
datatable contains all values.
I need like this
var name=$(this).attr('<%Eval("Author")%>');
this not working
how to solve this



(No response found.)

Login to post response