How to get the string value from Controller ActionMethod

Manideepgoud
Posted by Manideepgoud under ASP.NET MVC category on | Points: 40 | Views : 574
In order to get the output value of the string we use ContentResult.

public ContentResult Output()
{
return Content("This is string value");
}
Notice that we are returning string value("This is string value") using Content .

Comments or Responses

Login to post response