You have to get the client ID of the object you are looking for. View Source on the page when it is running and you'll see the fully qualified Client ID which will be Container$ctl00$costLabel or something like that. Javascript doesn't FindControl on the
server, it's only looking at the client.
I love to display the non-secure items...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Charles Asbo...
Contributor
5512 Points
1186 Posts
Re: how to pu the label from gridview to javascript?
Jan 22, 2008 06:16 PM|LINK
You have to get the client ID of the object you are looking for. View Source on the page when it is running and you'll see the fully qualified Client ID which will be Container$ctl00$costLabel or something like that. Javascript doesn't FindControl on the server, it's only looking at the client.
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.