ETC
.Net MVC Controller에서 String을 JSON으로 전송
조영래
2015. 8. 11. 09:40
* Controller에서 문자열을 Json 형태로 전송
: Content 메소드를 사용
Method |
Parameter |
Return |
Content(String) |
content |
ContentResult |
Content(String, String) |
content |
ContentResult |
Content(String, String, Encoding) |
content Type: System.String The content to write to the response. contentType Type: System.String The content type (MIME type). contentEncoding Type: System.Text.Encoding The content encoding. |
ContentResult |
* 예제