Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 June 5th, 2006, 08:45 AM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Browser Compatability -getting ClientID in FireFox

Hi,
  In my website i have a grid which contains checkboxes. So depending on the record selected i will be doing further operations.
  I am using the following one
document.getElementById('<%=grdvwLermsDetails.Clie ntID%>').rows.length

   This works fine with IE. But when i view the same page in Firefox it doesnt work.

   Can you please help me out with this????? i would really appreciate if anyone can help with this.
 
Old June 5th, 2006, 10:17 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi sailu,

You need to use UniqueID instead of ClientID. That works in both browsers.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cobol compatability with .Net goks04 General .NET 1 October 3rd, 2007 12:31 AM
ADO - DAO compatability petermat Access VBA 6 January 10th, 2006 06:06 PM
compatability cobes BOOK: Beginning VB.NET Databases 3 April 28th, 2005 04:47 AM
ClientID psingh ASP.NET 1.x and 2.0 Application Design 0 July 10th, 2003 08:42 AM
javascript clientID reference in composite control arjeno ASP.NET 1.0 and 1.1 Professional 1 June 4th, 2003 02:13 AM





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