Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 19th, 2008, 01:16 AM
Authorized User
Join Date: Jan 2008
Location: Chandigarh, Punjab, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Harjinder
Default How to access Eval("ID") in Java Script

Hi All,

i m facing the problem while creating the user control. Control is working fine. But the problem is i need to retrieve the value of using javascript.

here is the accurate code:

<asp:LinkButton ID="lk1" runat="server" OnClientClick="hgligt(1)" CommandName="Edit" CommandArgument='<%#Eval("ID") %>'> <span><%#Eval("name")%></span> </asp:LinkButton>

here is the problem:
<asp:LinkButton ID="lk1" runat="server" OnClientClick="hgligt('<%#Eval("ID") %>')" CommandName="Edit" CommandArgument='<%#Eval("ID") %>'> <span><%#Eval("name")%></span> </asp:LinkButton>

its accepts the constant value not dynamic

Help me
thanx in advance

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL script to create a unique ID for records chubnut SQL Server 2000 1 October 16th, 2006 07:25 AM
Java Script arasu Javascript How-To 0 August 28th, 2006 01:28 AM
Java vs Java Script functions joemorrison74 J2EE 0 July 6th, 2005 04:28 PM
Sequencial ID by date Java zaman1111 JSP Basics 7 September 24th, 2004 01:19 PM
how to create an email id through php script manu_mcs Pro PHP 0 December 8th, 2003 03:33 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.