Feedback on ASP.NET Web API

Can I just return a Content(string) from Asp.NET Web API?

Don't even need razor I'll just create the HTML via string builder.

3 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Mike shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
completed  ·  Daniel Roth responded  · 

Absolutely! You can just return an HttpResponseMessage with a StringContent. When HTML be sure to set the right content type header for the response.

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base