Can I stop .NET eating IDs?

前端 未结 10 1496
我寻月下人不归
我寻月下人不归 2020-12-16 11:35

I\'m an Information Architect and JavaScript developer by trade nowadays, but recently I\'ve been getting back into back-end coding again. And, whilst trying to get an HTML

10条回答
  •  爱一瞬间的悲伤
    2020-12-16 12:01

    Look at ASP.Net MVC - it addresses the over-kill object hierarchies that ASP.Net generates by default.

    This site is written in MVC (I think) - look at it's structure. Were I working on a new project right now I would consider it first

    If you're stuck with basic ASP.Net then be careful overriding the ClientID and UniqueID - it tends to break many web controls.

    The best way I've found is to pass the unreadable ClientID out to the Javascript.

提交回复
热议问题