PC Review


Reply
 
 
adda
Guest
Posts: n/a
 
      26th Feb 2008
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
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      26th Feb 2008
ClientID is your friend. The syntax you observe is made for a good purpose
of ensuring uniqueness of ids on client side. What is the issue you want to
resolve by eliminating client ids?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"adda" <(E-Mail Removed)> wrote in message
news:jvUwj.19502$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      26th Feb 2008
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...

--
Patrice

"adda" <(E-Mail Removed)> a écrit dans le message de news:
jvUwj.19502$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      26th Feb 2008
"adda" <(E-Mail Removed)> wrote in message
news:jvUwj.19502$(E-Mail Removed)...

> 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...?


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
Peter Bucher [MVP]
Guest
Posts: n/a
 
      26th Feb 2008
Hi Chris

I agree with my last speakers.
But in some cases its more advantageous to have no output of these
ids.

Two ways (the one on the bottom is prefered) to avoid the rendering
of these ids can you find on my blog.

- [German (Original)]
http://www.aspnetzone.de/blogs/peter...d-rendert.aspx
- [Engtlisch(Trans.) ]
http://translate.google.com/translat...hl=de&ie=UTF-8

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
"adda" <(E-Mail Removed)> schrieb im Newsbeitrag
news:jvUwj.19502$(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ClientID =?Utf-8?B?Sko=?= Microsoft ASP .NET 2 2nd Nov 2005 06:47 AM
Re: ClientID John Saunders Microsoft ASP .NET 1 21st Jul 2004 03:35 AM
Re: ClientID Craig Deelsnyder Microsoft ASP .NET 0 20th Jul 2004 09:27 PM
When does ClientID get set? Sally Microsoft Dot NET Framework 0 2nd Mar 2004 08:34 PM
[ASP. NET VB .NET] clientID and ClientID Maras Microsoft ASP .NET 1 15th Oct 2003 03:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 PM.