Below is the code for my grid view. It consists of a column labeled "Syllabus" and the next column contains edit and delete buttons. When the Edit button is clicked, a popup appears using jQuery. The popup includes a textbox for the Syllabus. How can I retrieve the value of the syllabus from the gridview column and display it in the popup for editing?
<asp:GridView ID="gdvwSyllabus" CssClass="enquiryTable" runat="server" AutoGenerateColumns="false" Width="100%">
<Columns>
<asp:BoundField HeaderText ="Syllabus" DataField ="Syllabus" />
<asp:TemplateField HeaderText="Options">
<ItemTemplate>
<ul class="enquiryList1">
<li><a href="#"><asp:Image ImageUrl="~/Images/edit2.png" runat="server" ID="btnSyllabusEdit" CssClass="btnEdit" /></a></li>
<li><a><asp:Image ImageUrl="~/Images/delete2.png" runat="server" ID="btnDelete" /></a></li>
</ul>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
This is the table structure I have designed for the popup that appears when the edit button is clicked. I am trying to display the "Syllabus" value in the "txtsyllabus" textbox for editing.
<table style="border: 0px; margin-left: 15px;" border="0" align="left">
<tr>
<td align="right">Syllabus <span class="ErrorField">*</span>:</td>
<td>
<asp:TextBox ID="txtsyllabus" CssClass="txtbox txtSyllabus" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<a href="#"><asp:Button ID="btnSubmit" Text="Save" CssClass="btnStyle btnSyllabusSubmit" runat="server" /></a>
</td>
</tr>
</table>
Thank you for your help.