I have an element, like this:
<div id="navleft">
</div>
I want to make this element runat=server but still be able to specify a css id selector. Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
soon as you apply the runat=”server to the tag in asp.net it receives a new mangled id”
ct100****navleft", So you could still select the tag by id but you would have to go into the source code after rendered to get the actual id name, so it would be much easier to select the tag by its class name.