Solved

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

Posted on 2012-04-11
1
562 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

752 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