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





Rating:
The post javascript – How to get textbox text from gridviews current row on click of linkbutton in that row appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-how-to-get-textbox-text-from-gridviews-current-row-on-click-of-linkbutton-in-that-row.html
