Last Updated: February 25, 2016
·
590
· munday

Make Asp.net respect your html ids (.Net 4+)

In .Net 4 and up just add:

clientidmode="Static"

to any tag that has

runat="server"

to stop Asp.net from making the crazy

id="ctl00_cphMainContent_myId"

garbage.