August 17th, 2010 by CleanCodeNZ
Here is a solution for wcf error :
System.ServiceModel Error: 131074
System.ServiceModel.ServiceActivationException
The service … cannot be activated due to an exception during compilation
Could not load file or assembly ‘App_Web_kr3elyyb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies.
This error is observed both in VS2008 and VS2010.
Solution is : adding bacth= false attribute to your web.config compilation node
Read the rest of this entry »
August 17th, 2010 by CleanCodeNZ
Well in part 2 of this series, I demonstrated how to make direct ajax calls to wcf service from Extjs, knowing that is not enough to kick the whole extjs ball off yet, as the most attractive aspect of extjs is its colourful ui controls, these controls do not normally use ajax data directly, but through data store to handle the tedious work of data parsing and binding. Read the rest of this entry »
August 13th, 2010 by CleanCodeNZ
In another blog, I talked about how to upload file asynchronously, using ExtJS FileUploadField control together with FormPanel.
A recap of file upload, I used a formpanel and set fileUpload to true, this basically tells the formpanel to do a series of hard work behind scenes like creating frame and form, in this blog, I am going to show you how to do those heavy lifting myself without the help of a formpanel, even the example here is about file download, but you can use the same code to do file upload too as an option of not using formpanel. Read the rest of this entry »
August 11th, 2010 by CleanCodeNZ
When talking about file upload, we know that we have asp.net fileupload control, the file upload is done through a post back, this does not quite fit into our ajax web applications in terms of following deficiencies:
1.It is an asp.net server control, very hard to style
2.It is done through post back, if we want it done in ‘ajax’ way?
3.If we want to upload several files at the same time?
4.If we want to provide a progress bar to indicate the progress?
Read the rest of this entry »
August 9th, 2010 by CleanCodeNZ
If you are using $.trim(astring) in IE, even in IE8, the leading and trailing spaces are not trimmed at all.
This is due to a bug of javascript regex implementation by ie not including \xa0 into \s.
Read the rest of this entry »