Sharing Thoughts and Learning
My new article has been just published for September Ajax Column in DotNetSlackers.com. In this article, I have answered few common issues which I found often discussed in Asp.net Ajax Web Service Forum. In this column, I have covered: Web Service Method, succeededCallback and failedCallback methods signature. Complex data type interchange which includes Array, Dictionary, Custom Class. GenerateScriptType Attribute ScriptIgnore Attribute Custom JavaScriptConverter class Progress Indicator for long ......
In this post, I will show you how to compress the Asp.net Ajax Web Service response, To understand the benefits of compression let us start with a simple example, Consider you have an web service which returns a large data like the following:[WebMethod()] public string GetLargeData() { using (StreamReader sr = File.OpenText(Server.MapPat... { return sr.ReadToEnd(); } } The web method reads an large text file (around 100KB) and returns it contents. Once we call this method from a ......
If you ever like to show a Modal Progress dialog like the above for any ajax operation no matter which Update Panel or Web Service call is responsible for it, the following code will do the same.<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml... <script runat="server"> [System.Web.Services.WebMet... public static string GetDate() { //Doing a fake delay for 3 seconds System.Threading.Thread.Sle... ......
I recently did a review on Asp.net Ajax Update Panel of O'Reilly which is now published in DotNetSlackers.com. Check it out.
My latest article Asp.net Ajax Error Logging has been just published in DotNetSlackers.com. In this article, I have demonstrate how to extend Asp.net Ajax Framework to create an effective error logging system which support multiple trace listeners like Enterprise Library. A must read if you are developing or planning to develop an Asp.net Ajax Web Application. You will also find my name in the Ajax Columns in DotNetSlackers.com as I have planned to write at least one, preferably two articles each ......
In this post, I will show you how to load different user control in UpdatePanel from different menu item click. I have found a lot of request in Asp.net Ajax Forum and some of them are having misconception about this. Once you complete reading this post you will be able to load controls dynamically and learn how to employ different helper controls like UpdateProgress, ModalPopupExtender while the UserControl is loading. First let us create plain page without the ajax support: Markup: <%@ Page ......
If you ever try to do more than one simultaneous partial update with Asp.net Ajax Update Panel, I guess you already found that Asp.net Ajax Framework cancel the current update request and starts the new one. You think I am kidding? Okay lets try the following code: <%@ Page Language="C#"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml... <script runat="server"> protected void Page_Load(object sender, EventArgs ......
If you visit Asp.net Ajax Forum, you will find hundreds of request on File Upload Control that it does not give Ajax version of the page when it is placed in an UpdatePanel. Certainly, it is not possible, as the XMLHTTPRequest object that is used internally to post the form does not support file upload. In this post I will show you how to create Ajax like version of the file upload. The trick is very simple, I will use an Iframe to upload the file so the whole page does not get refreshed and when ......
Few days back one of my of ex-colleague called me to know what is the best platform of Ajax to work in VS2003 Project, One of his client wants to implement some Ajax features in his existing application . Is it Ajax.net, Prototype, jQuery or Dojo? When I replied him Asp.net Ajax 1.0, he seems bit confused. Yes we can also use Asp.net Ajax for the older version of VS. However, we will not get the full set of features in those older environment. Let me list those features, which will not be available: ......
This morning dotnetslackers announced me as the winner of the XBox article content for the month of June. Special thanks to everyone who vote my Asp.net Ajax Control Development article. Some of my friends asked me why did I choose to write in dotnetslackers over codeproject when codeproject got 8x more traffic. The reason behind choosing dotnetslackers, I think it got much more Asp.net Ajax specialist as a member comparing to codeproject and once it won the Asp.net Atlas Mashup contest of Asp.net ......
Full Asp.net Ajax Archive