I am using as below:
html += '<td><a @target = "_blank" hyperlinks=' + "/Department/ViewPDF/" >' + "Download" + '</a></td>';
public ActionResult ViewPdf(decimal id) { Departmententity entity = new Departmententity(); byte[] data = entity.GetnocPdf(id,deptcode, uniqid);
return File(data, "application/pdf"); }
when i use this pdf open in same tab.
I want to open in different tab.