title: How to get textbox text from gridviews current row on click of linkbutton in that row
body: <p>Here is my gridview </p>
  
  <pre><code>&lt;asp:GridView ID="gvEmployee" runat="server" AutoGenerateColumns="false" GridLines="Both"&gt;
              &lt;Columns&gt;
                  &lt;asp:TemplateField HeaderText="Name"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:TextBox ID="txtName" runat="server" Text='&lt;%#Eval("Name") %&gt;'&gt;&lt;/asp:TextBox&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:BoundField DataField="Emailid" HeaderText="EmailId" /&gt;
                  &lt;asp:TemplateField &gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:LinkButton ID="lnkgettext" runat="server"  OnClientClick="return callme(&lt;%= txtName.ClientID %&gt;);" Text="Gettextboxvalue" &gt;&lt;/asp:LinkButton&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
              &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
    &lt;script type="text/javascript"&gt;
          function callme(txt) {
              alert(txt);
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>Onclick of LinkButton i want to get the value of a textbox from the current row of gridview</p>
  
  <p>Please help me with javascript</p>