The EpiServer has buildin mechanism for resolving which is TemplateResolver (here is the documentation). dsada
But in your case you don't need to use this functionality.
Maybye you could simply create Controller for the page with two actions. The button should call the action with View2.
There is a similar discussion on a different thread happening here: http://world.episerver.com/forum/developer-forum/Developer-to-developer/Thread-Container/2015/10/how-to-create-content-based-on-same-pagedata-different-template/
This should give you some inspiration on how to achieve what you want.
Hi developers, I need some little help in my project.
I need to different views of the same page(View1 and View2). The views are different, they only have the same title but it's still the same page.
In View1 I have a button that will change to View2.
How can I implement that?
PS: Is it possible that just after pressing the button but before the change, it shows a confirmation dialog/popup?