Are you making these 3 common ASP.NET AJAX mistakes?(encosia.com)

submitted by gt1329agt1329a(7849) 4 years, 7 months ago

An overview of the impact several ASP.NET page life cycle issues have on ASP.NET AJAX development, and how to avoid them.

6 comments |category: |Views: 397

tags: another

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:

posted by javeryjavery(5523) 4 years, 7 months ago 0

I think the more important mistake might be using ASP.NET AJAX. Check out more lightweight options like AJax.Net Pro, or just use Prototype or JQuery directly.

Reply

posted by simonebsimoneb(5450) 4 years, 7 months ago 0

Well, ASP.NET Ajax is not just UpdatePanels. Instead I think it is a cool javascript library.

Reply

posted by cdjacocdjaco(5) 4 years, 7 months ago 0

The fourth mistake, of course, is developing an ASP.NET AJAX application in the middle of a land war in Asia.

Reply

posted by gt1329agt1329a(7849) 4 years, 7 months ago 0

You're definitely right that UpdatePanels can easily be overused. In fact, one of the most popular posts on my blog is still "Why ASP.NET AJAX UpdatePanels are dangerous".

Regardless, there are very many developers out there using UpdatePanels, and running into these life cycle problems. Especially those starting fresh today, trying to learn it all at once. Hopefully, this post can find its way to a few of them before they make those mistakes.

Who knows. If they don't have to waste time trying to debug these issues, maybe they'll spend some of that time learning about page methods instead.

Reply

posted by jamesewelchjamesewelch(2275) 4 years, 7 months ago 0

So the tip is to use ScriptManager.IsAsyncPostBack to check for postback?

Hopefully everyone doing ASP.NET work already knows about checking for Page.IsPostBack, so if the MS ASP.NET AJAX implementors are worth anything they should already have figured out to check for IsAsyncPostBack.

Reply

posted by gt1329agt1329a(7849) 4 years, 7 months ago 0

There's a bit more than IsAsyncPostBack there.

However, even that alone is something that many people are missing. Reading the ASP.NET forums' AJAX section for a bit makes that pretty obvious.

You have to remember that new developers are picking up ASP.NET for the first time every day. Those of us that are long-time ASP.NET developers benefited from being able to progressively learn from 1.0 to 2.0 to adding the AJAX extensions (and then forget it all when the MVC framework is released!). Competently jumping right into the thick of things today isn't a trivial task.

Reply

information Login or create an account to comment on this story