Open mvc razor action links in new tab.

Yesterday i was caught in a problem of how to open  @html.actionlink in a new tab so after a bit of tests i found the solution.
You just have to set the html attributes as target =  "_blank"

Example:

@html.actionlink ("String link text", "Action Name", "Controller Name", "Object Route Values", new{target = "_blank"})

Any qustion, ask in the comments

Thanks

Comments

Popular posts from this blog

Fixing Frida Server “TypeError: t is not a function” on Android

Ericsson BSCS iX R18 Billing & Rating (ADMX, MX) - Stored XSS (CVE-2020-29144, CVE-2020-29145)

Autoconfiguration ipv4 address 196.254.x.x IP Problem