467,212 Members | 1,182 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,212 developers. It's quick & easy.

Prevent INamingContainer

I have a situation where I need to specify the names for some controls
without the parent INamingContainer getting in the way - this is because I
am using 2 hidden fields to pass data to another site but due to the use of
master pages these fields are constantly being renamed.

Does anybody know of a way to prevent controls from being renamed by a
parent INamingContainer (in this case, a Content control) as I have tried
google & reflector and cannot see anything myslef.
Mar 31 '06 #1
  • viewed: 1639
Share:
2 Replies
Hi,

check this out:

Preventing ASP.NET from generating unique ID's
http://www.wilcob.com/Wilco/News/AspNetIDOverride.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Martin Robins" <martin dot robins at technicaldirect dot co dot uk> wrote
in message news:OJ**************@TK2MSFTNGP09.phx.gbl...
I have a situation where I need to specify the names for some controls
without the parent INamingContainer getting in the way - this is because I
am using 2 hidden fields to pass data to another site but due to the use of
master pages these fields are constantly being renamed.

Does anybody know of a way to prevent controls from being renamed by a
parent INamingContainer (in this case, a Content control) as I have tried
google & reflector and cannot see anything myslef.

Mar 31 '06 #2
Fantastic; exactly what I was looking for.

Thanks.
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:ux**************@tk2msftngp13.phx.gbl...
Hi,

check this out:

Preventing ASP.NET from generating unique ID's
http://www.wilcob.com/Wilco/News/AspNetIDOverride.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Martin Robins" <martin dot robins at technicaldirect dot co dot uk> wrote
in message news:OJ**************@TK2MSFTNGP09.phx.gbl...
I have a situation where I need to specify the names for some controls
without the parent INamingContainer getting in the way - this is because I
am using 2 hidden fields to pass data to another site but due to the use
of master pages these fields are constantly being renamed.

Does anybody know of a way to prevent controls from being renamed by a
parent INamingContainer (in this case, a Content control) as I have tried
google & reflector and cannot see anything myslef.


Mar 31 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jo Inferis | last post: by
reply views Thread by Alex Stevens | last post: by
10 posts views Thread by Natan | last post: by
3 posts views Thread by gemel | last post: by
2 posts views Thread by Sam Samnah | last post: by
1 post views Thread by Sam Samnah | last post: by
2 posts views Thread by Martin Robins | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.