ASP.NET 2.0 Resources

Powered by Blogger

Anthem.NET - The Free ASP.NET 2.0 AJAX Framework

There was an article published recently at eggheadcafe about Building an Anthem.NET [AJAX] Autosuggest Textbox. I didn't bought the AJAX idea quite yet, but I was quite interested when reading this arcticle. There is a good overview how AJAX evolved, but the most intersting point for me was in the arcticle mentioned Anthem.NET AJAX framework.

Anthem.NET is a FREE, cross-browser AJAX toolkit for the ASP.NET development environment that works with both ASP.NET 1.1 and 2.0. It was developed by Jason Diamond when he had the great idea to encapsulate all the hard grunt work of making a regular Web Form control use AJAX and package it into new Anthem Controls. These controls behave just like regular Web Form controls, except they have AJAX built into them!

I had once or twice thought it could be useful to implement some AJAX features to my ASP.NET 2.0 Web Application, but I was always discouraged by the complexity of Microsoft's ASP.NET Atlas Framework. Now it seems Anthem.NET could be something I was looking for. You don't have to write any client javascript code and the integration with existing ASP.NET 2.0 web application is quite easy.

Anthem is actually really simple. When you trigger a call back from your page, the XMLHttpRequest object is used to POST back to the page. Jason tried, as much as possible, to emulate what a normal POST request would look like. This means that the request contains the values for all of the form controls on the page including the ASP.NET specific hidden field like __VIEWSTATE. As far as the page on the server is concerned, a normal post back is occuring. The page fires its Init event, transfers state into the controls, fires its Load event, performs validation, etc. He even let it go through its normal rendering process.

After the page on the server does its thing, Jason captures the HTML of all the "Anthem" controls on the page and "return" that to the client which uses innerHTML to update those controls right there in the browser. This is, admittedly, a hack but it works surprisingly well. And, for the most part, you can just pretend you're working with "normal" ASP.NET pages and controls without having to learn a whole new set of APIs.

You can see why it's called AJAX-like framework. Whole form processing is made at server side. The is not discrete server "page" that just takes the essential parameters, does the minimum amount of processing and returns the minimum amount of data as "Fundamentals of AJAX" from Apress suggests. But there is a simple way to control the AJAX postback processing on server with Anthem.Manager.IsCallBack in your Page_load method, and it's enough for me. I can use AJAX features and UI extensions without learning a whole new API just by using old known web forms.

There are more ASP.NET 2.0 AJAX frameworks available some of them comercial, but some of them also free. I'm planning to review some of them and get back to you with details in some feature posts.

4 Comments:

  • It's hard to find quality writing like yours these days. I really appreciate people like you! Take care and see you soon
    Poster Printing

    By Anonymous Anonymous, at 5:00 PM  

  • I'll be taking up Computer Science course as I enter college on the next few weeks of enrollment. My friend advice me to read your articles because most of your topics are about computer related ones. I'm also writing a dissertation for my high school final requirement

    By Blogger Unknown, at 6:32 AM  

  • I appreciate your idea here. Definitely it has a good content. Thank you for http://www.trustwebsitehostingreviews.com imparting more of your own thoughts. Good job!

    By Blogger David, at 9:05 PM  

  • HACKING SERVICES💻📱📲 is need by so many individuals, and some people have actually been SCAMMED and DEFRAUDED💸 by false ❎Hackers online. 🔹COPE TECHS🔹 is an Organization that provides the best HACKING SERVICES💻📱📲 and also Solutions to TECHNOLOGY DIFFICULTIES⚙️🔧.


    We give you PROOF of our SERVICES we have offered to other Individuals.
    All our Hackers belong to the Hackers Forum HackerOne and are Top of the HackerOne's Hackers List.

    Our aim is to Help and not for the Purpose of Theft, for instance, A Man/Woman who suspects His/Her Wife/Husband of cheating and intends to monitor Her/His Calls📱, Email📧, Social media accounts💌, We do the Hack to Certify your Doubts. Another way we help is by Funding PayPal Accounts💵💶💷 for Individuals with Debts and Financial Problems.
    We also Provide Recovery Services for Individuals Who Lost Money in Bitcoin💰 Auctioning or In Forex Trading📉 and other online Stock Markets Exchange📊.
    Other Services we offer are-: Changing of Grades/Results in Universities 📚 Database, Upgrading System Security Defense☣️, and lost More. If you need Hacking Services contact us via our Email-: copetechs@gmail.com

    By Blogger Cope Techs, at 7:06 PM  

Post a Comment

<< Home

Created dolly