Solved

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

Posted on 2012-04-11
1
546 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 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

13 Experts available now in Live!

Get 1:1 Help Now