What's the best way to deal with ASP.NET's ClientID

后端 未结 4 1839
闹比i
闹比i 2021-01-15 03:55

I\'m trying to find the best way to deal with the way that ASP.NET prepends a value to any element that is created with runat=\"server\", without having to reso

4条回答
  •  离开以前
    2021-01-15 04:17

    Why not just use ClientIDMode=Static? Set it in the Web.config so that your client IDs will be as-written throughout the site.

提交回复
热议问题