How can I return string result from action in asp.net mvc?



How can I return string result from action in asp.net mvc?..

Answer / Manish Kumar

"To return a string result from an action in ASP.NET MVC, you can simply use the "return" statement and assign the string to it as follows: {"return Content("Your string here");}"n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

what is the additional features in 1.1 rather than 1.0

1 Answers  


How to make sure Client Validation is enabled in ASP.Net MVC

1 Answers   B-Ways TecnoSoft,


What is the difference between model and entity?

1 Answers  


Is .net framework dead?

1 Answers  


Is it possible to create a custom filter?

1 Answers  


What is entity sql? : Entity framework

1 Answers  


What is viewstart page in mvc?

1 Answers  


what are background threads? give ex?

3 Answers   CSC, Kanbay,


How can we determine action invoked from HTTP GET or HTTP POST?

1 Answers  


Is dapper faster than entity framework?

1 Answers  


I couldnot answer for projects bcz i have 2+ fake experience.can you please tell me how to answer..?

2 Answers   IBM,


what is Framework?

3 Answers  


Categories