DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

23
kicks
published 10 months, 18 days ago, submitted by ferrymulyono ferrymulyono 10 months, 19 days ago

ferry.ferryandtheria.com — An altenative AJAX solution to use jQuery instead of ASP.NET AJAX.

Add a comment 5 comments | category: | Views: 23 | Get KickIt image code
tags: , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
I would not call that a nice solution. Having to handle querystrings is imho bad.

Throw out asp.net ajax, and use Ajax.NET Professional instead (http://www.ajaxpro.info/).

I added this line to my masterpage in codebehind(as written from memory):
AjaxPro.Utility.RegisterTypeForAjax(typeof(SomeNamespace.BasketAjax));

Then i can just call this in javascript
SomeNamespace.BasketAjax.AddBasket(item,amount,AddBasket_Callback);

Clean code, no messing with querystrings
posted by duckie duckie 10 months, 18 days ago
Furthermore, the article is incorrect on several points, it just doesnt really make any sense / good points

"you couldn’t control the data format exchanged between the server and the client" & "Compare it to jQuery, that enables developer to specify what data gets exchanged"
jQuery cannot specify what data is exchanged. It can specify what is requested from the server. The server returns whatever it wants.

"what would I want to use jQuery instead of ASP.NET AJAX ... the answer would be “bandwidth” a.k.a performance. "
jQuery is not a answer to eliminating bandwith. The solution is to only request/return what is needed. Jquery is only a tool to fetch those data.

What this article really is doing, is just reinventing asp.net ajax' webmethods!

Correct me if i am wrong =)
posted by duckie duckie 10 months, 18 days ago
I interpreted the 'control the data format exchanged' as you can work at a lower level exchanging data as apposed to working with the UpdatePanel (when in control of both sides). I'm sure ASP.NET AJAX has support for low level too, but I haven't used it much.

I kicked this story as it shows at a low level how to use jQuery and ASP.NET. Of course you shouldn't use this for production, but the example highlights the workings of jQuery which is worth a kick from me.
posted by gavinjoyce gavinjoyce 10 months, 18 days ago
Not bashing the article, but i surely hope my comments results in a update (regarding asp.net ajax not beeing able to do low-level ajax-requests).
posted by duckie duckie 10 months, 18 days ago
I'm with duckie on this, he article doesn't say anything useful and the solution is nothing more than a newbie could do.
posted by simoneb simoneb 10 months, 18 days ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge