how to open a page in another browser instance by clicking on a link
Posted
by CoffeeCode
on Stack Overflow
See other posts from Stack Overflow
or by CoffeeCode
Published on 2010-03-22T15:34:12Z
Indexed on
2010/03/22
15:41 UTC
Read the original article
Hit count: 336
i have a link
<a id="DownloadLink" href='controller/action' target="_blank">Download File</a>
that has to open a image in another tab or page. but it offers me to download the file.
my action looks like this
public FileContentResult GetSurveyFile(int Id)
{
if (Id == 0)
return null;
Survey survey = Repository.GetItem(Id);
if (survey.File == null)
return null;
return File(survey.File.FileContent.ToArray(), survey.File.ContentType,survey.File.Name);
}
where the content type is an image/jpeg
whats wrong?
© Stack Overflow or respective owner