ClientID's

A

adda

Hi,

Is there a way to stop ASP.NET from rendering ID dynamically?

In other words, to stop ctl00_ctl00_myTextbox format, and just render as
'myTextbox'?

Thanks
Chris
 
P

Patrice

Your best bet is to explain the overall goal. Have you tried to pass the
ClientID from the server to the client or to use "this" client side ?

AFAIK this is not possible and even if it was, this is such an ASP.NET basic
infrastructure feature (whose goal is to avoid name collisions) that I would
really double check I want to work against rather than with that...
 
M

Mark Rae [MVP]

Is there a way to stop ASP.NET from rendering ID dynamically?

In other words, to stop ctl00_ctl00_myTextbox format, and just render as
'myTextbox'?

ClientID is absolutely essential to the functioning of ASP.NET, specifically
to guarantee uniqueness of client-side object IDs - what problem(s) are you
having with this...?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,518
Latest member
TobiasAxf

Latest Threads

Top