By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,889 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,889 IT Pros & Developers. It's quick & easy.

Prevent INamingContainer

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.