Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
heyy..

how to get the controls value that placed on last record in grid view in asp.net ..

Any jquery for this ..?
Posted
Comments
Sergey Alexandrovich Kryukov 20-Nov-13 1:40am    

1 solution

This is how: http://api.jquery.com/last-child-selector/[^].

It will help you to find a last row, which should be a <tr> element, and its parent element is either <table> or <tbody>:
http://www.w3schools.com/html/html_tables.asp[^],
http://www.w3schools.com/tags/tag_tbody.asp[^].

The remaining step depends on a structure of your row and should not be a problem. Anyway, look for all the jQuery selectors:
http://api.jquery.com/category/selectors/[^].

Good luck,
—SA
 
Share this answer
 
Comments
Abhinav S 20-Nov-13 1:41am    
5.
Sergey Alexandrovich Kryukov 20-Nov-13 1:49am    
Thank you, Abhinav.
—SA

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