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
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
Post a Comment