Hi,
ASP.NET changes the ID if your control is contained inside a naming
container. It does this to provide guaranteed unique IDs to each and every
control on the Page.
In server-side code the original ID you gave works normally. You get the
generated ID by using ClientID property of the control. However, with
posting it doesn't seem to help. Best you can do is to name the container
explicitly (now it seems that _ctl5 is autogenerated) and then determine the
ID based on that and use that on the receiving Page.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"news.microsoft.com" <as**@os.com> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
I am sending the values from the servercontrol (HtmlSelect) by the method
of GET and its anoying that ASP.NET changes the Id.
Instead of this: <select id="_ctl5_language"> it should be <select
id="language">.
Any ideas.
Thanks,
Anders