I am using ASP.NET MVC3 for my web application. To display a button in the User Interface I am using the following html in my View1.cshtml.
<div class="demo">
<input type="submit" value="Save" title="Click here to create a comment" />
<input type="button" value="Cancel" onclick="location.href='/'" title="Click here to cancel and go back to main menu" />
</div>
I want to place a button so that users can go back to the previous page.. So to achieve this I want to place a button in the .cshtml which takes View Name and can
- transfer to specific view. (or)
- To the previous view.
Any one above requirements will be good for my application.
How can I do this? Any help or ideas will be useful to me.
Thank you