Hi,
In my application ,i bind data to a gridview like this
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField HeaderText="BookID">
<ItemTemplate>
<span id= '<%# Eval("BookID") %>' class='text'><%# Eval("BookID")%> </span>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Title">
<ItemTemplate>
<span id= 'first<%# Eval("Title") %>' class='text'><%# Eval("Title")%> </span>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
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
Regards
Baiju