Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to find textbox value inside of gridview using javascript
i am trying this way but it does not response

What I have tried:

<asp:gridview>
<asp:TextBox ID="txtProductId" runat="server" text='<%# Container.DataItem("Productid")%>'  ></asp:TextBox>
<asp:gridView>

function showGrid()
{
var pid = $(row).find("input[id*=txtProductId]").text();
}
Posted
Comments
Maciej Los 30-May-17 2:15am    
JavaScript or VB.NET? You have to decide and use proper tags.
F-ES Sitecore 30-May-17 4:34am    
What's "row"? Assuming it is correct (check $(row).length to see if it is 1) you'll need .val() on the end rather than .text()

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900