I don't think its possible due to that WebResource is an element on the page. If the user switches view from a navigational element there is no way stopping it as WebResource is merely a child element of the form. Maybe there is a better approach to the problem if you think about the use case. Why are you blocking switching of views? If you don't want the user to be able to switch views maybe you should hide them behind access control.
↧