As far as I know, <button>
won't work with target
. Same goes for input type="button" ... />
elements:
You need to use an anchor and style it with css as a button
<a href=@Url.Action("LoadReports", "DashBoard") id="aPrintReport" target="_blank" class="button">Print</a>
<!--taken from http://stackoverflow.com/questions/2187008/styling-an-anchor-tag-to-look-like-a-submit-button-->
.button {
text-decoration: none; font: menu;
display: inline-block; padding: 2px 8px;
background: ButtonFace; color: ButtonText;
border-style: solid; border-width: 2px;
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
}
.button:active {
border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}