ASP .NET: Dynamic load controls vs Visible = true

前端 未结 4 1788
温柔的废话
温柔的废话 2021-01-06 03:23

Which one is recommended ? Let me explain what I want to achieve !
I have one pages used by many users, every user has a different Role like admin, operator, normal use

4条回答
  •  广开言路
    2021-01-06 03:54

    .Visible = false is quite a reasonable approach for this. Don't concern yourself with the speed of this method until you prove, via profiling, that it is required.

提交回复
热议问题