'ASP.NET'에 해당되는 글 27건
- 2022.06.22 dotnet core & Firebase
- 2020.03.11 C#, Slack 연동 메시지 보내기
- 2011.07.08 ASP .NET MVC에서 File Export
- 2011.07.08 HowTo: Excel Export mit ASP.NET MVC und "Render View To String"
- 2011.07.08 Export to Excel or CSV from ASP.NET MVC with C#
- 2011.07.08 ASP.NET MVC Tip #2 - Create a custom Action Result that returns Microsoft Excel Documents
- 2011.07.08 WebRequest, WebResponse 클래스
- 2011.07.08 Using the Google URL Shortener API with ASP.NET MVC 3 and C#
- 2011.07.08 JavaScriptSerializer.MaxJsonLength Property
- 2011.07.08 Custom JsonResult Class for ASP.Net MVC to Avoid MaxJsonLength Exceeded Exception
엑셀내보내기 기능은 잘되나 단점은 스프레드 시트 생성 기능은 지원 안 하며
Linq To SQL(dbml) 을 사용 하도록 구현 되어 있음.
DataTable 이나 Entity base 모델로 구현되어 있다면 가볍게 패스~
출처 : http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/
NET의 System.Net 네임스페이스는 웹 상의 request와 response를 처리하기 위해 WebRequest와 WebResponse라는 클래스를 제공한다.
JavaScriptSerializer.MaxJsonLength PropertyGets or sets the maximum length of JSON strings that are accepted by the JavaScriptSerializer class. Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The value of the MaxJsonLength property applies only when you explicitly create an instance of the JavaScriptSerializer class. Use the jsonSerialization element of the configuration file to set the maximum length for the internal serializer instance that is used by the asynchronous communication layer. For more information about the configuration elements for serialization, see How to: Configure ASP.NET Services in Microsoft Ajax. Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2 The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements. |
Server Error in ‘/’ Application.
|
처음 이 에러를 만났을 때... 아.. 큰일이다 싶었는데, 해결 하고 나니 후련하다. ㅎㅎ
일반적인 상황에선 데이터 초과할 일이 없겠으나, 한 페이지에 대량의 데이터를 불러오는 경우
웹 사이트의 web.config 를 뒤져서 직접 수정 해도 되겠으나
프로젝트 내에 구현 하는 것이 여러모로 정신 건강에 도움이 됨.. ^^
출처 : http://brianreiter.org/2011/01/03/custom-jsonresult-class-for-asp-net-mvc-to-avoid-maxjsonlength-exceeded-exception/