ClientID
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
ClientID

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
JJ
Guest





Posted: Wed Nov 02, 2005 1:50 am    Post subject: ClientID Reply with quote

Hi,

Can anyone advise me how is the ClientID issued?
I had a suite Controls which consist of a context menu (i.e. a group of
tables, rows and cells situated in a class library) and a set of buttons. I
am doing dynamic HTML which I only know how many buttons and context menu to
create on the fly.

Next I had written a simple JAvascript which will allow the dialogs (i.e.
the context menu's tables) to be placed at the correct location when
mouseover event is activated. But I got strange ClientIDs return to me. When
the page is reloaded using the button click event, the clientID of the menu
table's table is in the form of ID. But when the page is activated via a
click event of the table cell in the class library, the the clientID will now
be __clt0_+"ID";

Why is it this way, how asp.net issue clientID to the controls?

Many Thanks!
Back to top
Mei Ying [MVP]
Guest





Posted: Wed Nov 02, 2005 8:47 am    Post subject: RE: ClientID Reply with quote

Hi JJ

Generally, the ClientID is constructed by concatenating the ID's of the
parent containers separated by an underscore.

This is related to ASP.NET. You should post this question to an ASP.NET
newsgroup.
--
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Book: http://www.packtpub.com/book/mcms
Contact: meiyinglim@hotmail.com
---


"JJ" wrote:

Quote:
Hi,

Can anyone advise me how is the ClientID issued?
I had a suite Controls which consist of a context menu (i.e. a group of
tables, rows and cells situated in a class library) and a set of buttons. I
am doing dynamic HTML which I only know how many buttons and context menu to
create on the fly.

Next I had written a simple JAvascript which will allow the dialogs (i.e.
the context menu's tables) to be placed at the correct location when
mouseover event is activated. But I got strange ClientIDs return to me. When
the page is reloaded using the button click event, the clientID of the menu
table's table is in the form of ID. But when the page is activated via a
click event of the table cell in the class library, the the clientID will now
be __clt0_+"ID";

Why is it this way, how asp.net issue clientID to the controls?

Many Thanks!
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB