When use getJSON and call Action result correct but response internal 500
This is because json not allow get type (Only post can do.)
fix this is simple by
return this.Json( list, JsonRequestBehavior.AllowGet );
The key is AllowGet for can call function simple.
วันจันทร์ที่ 19 มีนาคม พ.ศ. 2555
วันพฤหัสบดีที่ 15 มีนาคม พ.ศ. 2555
MVC3 and Uploadify Problem IO/HTTP Error
It work well if you not check authorize on controller
but it will not work if used authorize because uploadify use flash to upload.
for work around check on this post
http://stackoverflow.com/questions/8948000/mvc-3-uploadify-http-302-error
http://stackoverflow.com/questions/8358223/getting-http-error-while-using-uploadify-on-asp-net-mvc-application
http://stackoverflow.com/questions/3791724/getting-uploadify-to-work-with-asp-net-mvc
http://www.leftandmain.com/silverstripe-tips/2011/02/15/uploadify-http-error-explained-and-solved-maybe/
http://zootfroot.blogspot.com/2010/12/mvc-file-upload-using-uploadify-with.html
not sure if what the best solution but first and the second is the same.
I not write content here because i want to get rid flash from my project for now this is temporary for use flash in my project.
Hope this help.
but it will not work if used authorize because uploadify use flash to upload.
for work around check on this post
http://stackoverflow.com/questions/8948000/mvc-3-uploadify-http-302-error
http://stackoverflow.com/questions/8358223/getting-http-error-while-using-uploadify-on-asp-net-mvc-application
http://stackoverflow.com/questions/3791724/getting-uploadify-to-work-with-asp-net-mvc
http://www.leftandmain.com/silverstripe-tips/2011/02/15/uploadify-http-error-explained-and-solved-maybe/
http://zootfroot.blogspot.com/2010/12/mvc-file-upload-using-uploadify-with.html
not sure if what the best solution but first and the second is the same.
I not write content here because i want to get rid flash from my project for now this is temporary for use flash in my project.
Hope this help.
สมัครสมาชิก:
บทความ (Atom)