i have an gridview control with a comment text, link button, and an
invisible (text box and a button to post to database.)
when i click on the link button i want to show the textbox.
can any one help me how to do this.
my gridview code:
enter code here <asp:GridView ID="grdComments" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table width="500px" cellpadding="3" cellspacing="3">
<tr/>
<td/>
<asp:Label runat="server" ID="lblLeftPad"></asp:Label>
<asp:Label runat="server" ID="lblComment" Text='<%# container.dataitem("CommentText") %>'></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="lbtnReply" Text="Reply" runat="server" CommandName="CommentReply"></asp:LinkButton>
</td>
</tr>
<tr>
<td>
</asp:TextBox ID="txtReply" runat="server" Height="50px" Width="500px" Visible="false"></asp:TextBox>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>