Can I stop .NET eating IDs?

前端 未结 10 1503
我寻月下人不归
我寻月下人不归 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:15

    One method is to override the ID's manually:

    public override string UniqueID
    {
      get { return this.ID; }
    }
    public override string ClientID
    {
      get { return this.ID; }
    }
    

    Rick Strahl wrote a blog post with some more information on that approach.

提交回复
热议问题