วันจันทร์ที่ 19 มีนาคม พ.ศ. 2555

MVC Jquery Json return internal 500

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.

วันพฤหัสบดีที่ 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.

วันพุธที่ 14 มีนาคม พ.ศ. 2555

Re log in network shared folder.

Sometime we need to change user or re log in shared network folder
but windows will remember after type it correctly until boot or restart.

this way is simple by command prompt with

net use * /delete

this will confirm what pass they keep and are your sure to delete before.

Hope this help.