1.

How Can I Return String Result From Action In Asp.net Mvc?

Answer»

Below is the code snippet to RETURN string from ACTION method :

public ACTIONRESULT TestAction() {

return Content("Hello TEST !!");

}

Below is the code snippet to return string from action method :

public ActionResult TestAction() {

return Content("Hello Test !!");

}



Discussion

No Comment Found