Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my link is

@Html.ActionLink("print", "_print", "shared", new { regno = @Session["reg_no_verify"] }, new { @class = "verify_data" })

how to opwn a new window when click on that it is like target="_blank" how to use target="_blank"
in this statement
Posted

1 solution

Hi,

try this

@Html.ActionLink("print", "_print", "shared", new { regno = @Session["reg_no_verify"] }, new { @class = "verify_data" }, new{ target="_blank" })

Here is my approach in my old project

format: (colName) => Html.ActionLink(
(string)colName.Name.ToString(), "DownloadFile", new { @fileNameWithExtention = colName.Name }, new{ target="_blank" }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900