I was wondering how you best open a new window and show a view there using mvc?
and is there a way to using jquery or similar, to print an area of a document? lets say everything within a div?
/M
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Opening a new window is easy, you would do it like you would any other way, passing a URL to the content you want to open in the new window whether it be through a link, or a call through Javascript.
The only way that ASP.NET MVC helps here is in the utility functions that can give you the URL of a route or an action which you would then write directly into your view.
As for printing part of a page, a simple Google search on “jQuery print” (not as a phase) turned this up as the second result:
Ask Ben: Print Part Of A Web Page With jQuery