Disable edit button in View

May I know on how to disable Edit button in View Page

You may change the permission by TablePermission_Loaded server event, you can check if it is Edit page by if (CurrentPageID() == “edit”).