2011年1月28日 星期五

使用 AJAX 的 cascadingdropdown 於下拉選單出現 [方法錯誤500]

因為下拉選單的資料量超出預設的限制造成
必須於 web.config 增加一段設定以便擴充限制

<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="500000" />
</webServices>
</scripting>
</system.web.extensions>

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...