Browse by Tags

All Tags » asp.net ajax (RSS)

Fast, Streaming AJAX proxy - continuously download from cross domain

Due to browser's prohibition on cross domain XMLHTTP call, all AJAX websites must have server side proxy to fetch content from external domain like Flickr or Digg. From client side javascript code, an XMLHTTP call goes to the server side proxy hosted...

Request format is unrecognized for URL unexpectedly ending in /SomeWebServiceMethod

At Pageflakes , our webservers; event logs are being flooded with this error. In ASP.NET AJAX 1.0 version, Microsoft added a check for all web service calls to have Content-Type: application/json in the request headers. Unless this request header is present...
Posted by omar | 1 comment(s)
Filed under:

ASP.NET Ajax Extender for multi-column widget drag & drop

My open source Ajax Start Page www.dropthings.com has an ASP.NET Ajax Extender which provides multi-column drag & drop for widgets. It allows reordering of widgets on the same column and also drag & drop between column. It also supports client...
Posted by omar | 120 comment(s)
Filed under:

ASP.NET Ajax in-depth performance analysis

Let's do some ASP.NET runtime analysis on www.dropthings.com . Those who don't know what it is, it's an open source start page I made using ASP.NET Ajax, .NET 3.0 and Linq. ASP.NET Ajax has a pretty big runtime which consists of Core Framework...
Posted by omar | 20 comment(s)
Filed under:

Article of the month - vote for me

My article " Build Google IG like Ajax Start Page in 7 days using ASP.NET Ajax and .NET 3.0 " is now on the nomination list of Codeproject. If you found this article helpful, please give me a vote here: http://www.codeproject.com/script/survey...
Posted by omar | 5 comment(s)
Filed under:

Build Google IG like AJAX Start Page in 7 days using ASP.NET AJAX and .NET 3.0

I will show you how I built a start page similar to Google IG in 7 nights using ASP.Net Ajax, .NET 3.0, Linq, DLinq and XLinq. I have logged my day to day development experience in this article and documented all the technical challenges, interesting...
Posted by omar | 10 comment(s)
Filed under:

ASP.net Ajax under the hood secrets

I have published a new article in codeproject: ASP.net Ajax under the hood secrets You will find the following tricks on it: Batch call advantages and disadvantages Implement auto retry in all web method call by modifying Ajax core framework Implement...
Posted by omar | 10 comment(s)
Filed under:

Atlas 7: Caching web service response on browser and save bandwidth significantly

Browser can cache images, javascripts, css files on users hard drive and it can also cache Xml Http calls if the call is a Http Get. The cache is based on Url. If it's the same Url and it's cached on the computer then the response is loaded from...
Posted by omar | 50 comment(s)
Filed under:

Atlas 6: When 'this' is not really 'this'

Atlas callbacks are not executed on the same context where they are called. For ex, if you are making a Page method call from a javascript class like this: function SampleClass() { this .id = 1 ; this .call = function () { PageMethods.DoSomething( "...
Posted by omar | 3 comment(s)
Filed under:

Atlas 4: Only 2 calls at a time and don't expect any order

Browsers make 2 concurrent AJAX calls at a time to a domain. If you make 5 AJAX calls, browser is going to make 2 calls first, then wait for any one of them to complete and then make another call until all remaining 4 calls are complete. Moreover, you...
Posted by omar | 6 comment(s)
Filed under:

Atlas 5: Bad calls make good calls timeout

If 2 http calls somehow get stuck for too long, those two bad calls are going to make some good calls expire too which in the meantime got queued. Here's a nice example: function timeoutTest() { PageMethods.Timeout( { timeoutInterval : 3000, onMethodTimeout...
Posted by omar | 1 comment(s)
Filed under:

Atlas 3: Atlas batch calls are not always faster

Atlas provides you batch call feature which combines multiple web service calls into one call. It works transparently, you won't notice anything nor do you need not write any special code. Once you turn on the Batch feature, all web service calls...
Posted by omar | 6 comment(s)
Filed under:

Atlas 2: HTTP POST is slower and it's default in Atlas

Atlas by default makes HTTP POST for all AJAX calls. Http POST is more expensive than Http GET. It transmits more bytes over the wire, thus taking precious network time and it also makes ASP.NET do extra processing on the server end. So, you should use...
Posted by omar | 102 comment(s)
Filed under:

Atlas 1: Try not to use page methods

One of the easiest thing in Atlas is to use the Page Method feature. If you use Atlas on your web page say Default.aspx, you can directly call public methods on Default.aspx from javascript. Just put a [WebMethod] attribute on a public method in Default...
Posted by omar | 7 comment(s)
Filed under:

Beginning Atlas series: Why Atlas?

This is the first question everyone asks me when they see Pageflakes . Why not Protopage or Dojo library? Microsoft Atlas is a very promising AJAX library. They are putting a lot of effort on Atlas, making lots of reusable components that can really save...
Posted by omar | 2 comment(s)
Filed under:

String and Array extensions in Atlas Runtime - a StringBuilder too!

Atlas runtime extends the String class of Javascript with the following handy extensions: String.prototype.endsWith=function(suffix){ String.prototype.startsWith=function(prefix){ String.prototype.lTrim=String.prototype.trimLeft=function(){ String.prototype...
Posted by omar | with no comments
Filed under: