AJAX call using an ASP.NET web page

We already saw what an AJAX call is and the different types there are. Today we’re going to see how to perform an AJAX call using a regular web page at the server. The page will be the connection between the client’s web browser and the server. It will take care of performing the operations at the server (let it be some kind of processes or calculations, or just a regular database access).

I’ll be using jQuery in this example. jQuery is a superb Javascript framework, and is the one I use the most. If you don’t know what it is yet, then the first thing you should do is getting acquainted with it. This JavaScript framework has many convenient functions to make an AJAX call. These functions hide much of the complexity of an AJAX call: you can forget about the XMLHttpRequest object if you wish, and only worry about what to do with the data once you get it back from the server.

Read the rest of this entry »

Different ways to use AJAX in ASP.NET

Today’s web applications are unthinkable without AJAX techniques. These techniques provide an improved user experience, and tighten the gap between traditional desktop applications and web applications. This means that mastering AJAX technologies is a must for anyone who’s doing serious web application development. In this article I’ll explain the basics of AJAX, and I will show how to program some AJAX calls using ASP.NET technology.

Read the rest of this entry »

jqGrid multiselect: a little improvement

The jqGrid plugin is fantastic. It provides an improved user experience and makes your web application stand out from the rest. But sometimes the default behaviour it has is not what we like, and those are the times when we have to dive into the source code to tweak it. And today was one of those times for me.

We’ve implemented the jqGrid plugin in a couple of pages in our project at work. We needed some multiselect in one of them. This option seems very easy to implement: just add a couple of options at creation time and you’re done… well, not quite. JqGrid’s multiselect default behaviour is not really the standard one. I mean, it is a multiselect, just not what the regular user might be used to.

Read the rest of this entry »

jQuery Grid plugin: jqGrid

JqGrid is a jQuery plugin which provides impressive AJAX-enabled dynamic data tables.  And when I say impressive, I mean fantastic. Not only it’s packed full of features, but it’s got a very nice look and feel as well. It’s got nothing to envy from traditional desktop application grids. I would say it’s even better than many of them.

Themeable interface: you can set it up as you wish

Themeable interface: you can set it up as you wish

Read the rest of this entry »

Javascript frameworks overview

A Javascript framework is set of pre-written Javascript functions aimed at simplifying development. They take care of the most common and time-consuming tasks, like AJAX-related techniques. But why should we use them? Well, keep in mind that a Javascript framework:

  • Saves you time. Even if you really love programming in Javascript, you will save a bunch of time doing your work with one these frameworks.
  • Has much of your work already done. Don’t reinvent the wheel. Don’t waste time in doing something it has already been done and tested and re-tested by thousands of users.
  • Makes you use less code. With less code you get a smaller file size, better maintenance and less development time.
  • Makes your code more readable. Which also aids in better maintenance and less development time.
  • Makes your web application execute faster. These frameworks are really fast in performing their tasks and most of them have been optimized for really fast execution.
  • Makes your web application run in most modern browsers. If you dealt with Javascript a bit, you’ll have realized how different browsers have different ways of the doing the same exact stuff. Handcrafted cross-browser development can get annoying and irritating. These frameworks have already taken care of that and will just work in most browsers.

Read the rest of this entry »