I don’t understand it.
The ids of html elements in the master page are changed by the same id but with a prefix and it’s breaking the css design.
In the master page I have:
<div id='container' runat='server'> <asp:ContentPlaceHolder ... ...
The above code is rendered
<div id='ctl00_ctloo_container'> ...
And the CSS styles are gone obviously.
How do I stop it?
Thanks!
WebForms should only rewrite the ID’s of server controls (like
<asp:ContentPlaceHolder />, not ordinary HTML element like<div id='container'>withoutrunat='server'You cannot prevent the framework from rewriting ID’s on server controls. You can use class names instead, though.