Я написал следующее:
Код: Выделить всё
@{
this.Response.ClearContent();
this.Response.ContentType = "text/plain";
}
Я также пытался установить его в контроллере:
Код: Выделить всё
[AcceptVerbs("GET", "POST", "PUT", "DELETE")]
public ActionResult Version()
{
Response.ContentType = "text/plain";
ViewData["ver"] = "v1.1";
return View();
}
Есть идеи?
Подробнее здесь: https://stackoverflow.com/questions/274 ... ntent-type
Мобильная версия