Is making an asp:Button control invisible enough to be sure users won't be able to click it?

前端 未结 3 1006
孤城傲影
孤城傲影 2021-01-19 23:41

I\'m making a simple website that lists files from a certain folder. If the user has admin rights, the user can delete files by clicking the \"Delete\" button.

In my

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-20 00:14

    They simply won't see the button or even 'recieve' it. Your server will not generate any button code sent to the person.

    You have to think of it this way. The user never sees any asp code or is able to process it. They only receive html. You can further ensure this by looking at the html and seeing what has been generated.

    So in that regard you are safe.

提交回复
热议问题