Solved

jquery .NET Get column value from selected row in gridview.

Posted on 2012-04-11
1
549 Views
Last Modified: 2012-04-27
I would like to retreive the value in the second column of a gridview (LogViewsGV) and then
display that value to a label on the screen.  This is only intended to get me going for more
complex data retrieval for my development.  Here's what I have thus far, but just can't seem
to get a working syntax.  Currently the default value "000" is being returned.

$("#<%=LogViewsGV.ClientID %> tr").click(function () { OrderResNum = $("#<%=LogViewsGV.ClientID %> tr:selected").find("td:eq(1)").text() })
GetValue.jpg
0
Comment
Question by:dparkes
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 37837228
try this :

$("tr", "#<%=LogViewsGV.ClientID %>").click(function () { OrderResNum = $("td:eq(1)", this).text(); });

Open in new window

0

Featured Post

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
Let’s list some of the technologies that enable smooth teleworking. 
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now