Solved

How do I open a view in a new window with Html.ActionLink?

Posted on 2010-08-27
2
5,115 Views
Last Modified: 2013-11-08
I have a View that I would like to open in a new window.

I have created a new simple strongly-typed view that that displays a list of simple object properties that does not use a master page.

How would I create an Html.Actionlink that opens this view from the site master in a new window?

This code simply opens a new instance of the website in a new window:

 <%: Html.ActionLink("Currently Loaded Data", "Index", "WorkloadReport", New With{ .target="_blank"} )%>

Open in new window


Also, could someone recommend a good MVC 2 reference with good examples?
0
Comment
Question by:MDKIMZEY
2 Comments
 
LVL 30

Accepted Solution

by:
MlandaT earned 500 total points
ID: 33548520
<%=Html.ActionLink("Currently Loaded Data", "Index", "WorkloadReport", new { Id = model.Id.ToString() }, new { target="_blank" })%>
0
 

Author Closing Comment

by:MDKIMZEY
ID: 33558194
Spot on! Thank you!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now