How to get the string value from Controller ActionMethod

Posted by Manideepgoud under ASP.NET MVC category on | Points: 40 | Views : 1766
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