Technological Guide.

ASP.Net - How to Send PostBacks while using Ajax

Ajax enabled applications are the frequent requirement now-a-days. Ajax framework gives a desktop feel like user interface on the web page interface itself. And mostly all Asp.Net web developers show their interest to go for Ajax enabled web development rather than non-Ajax web development. Even most of the users like the Ajax enabled websites.

But while working with few controls in Ajax enabled framework, we can’t feel what we expected.

For example when we design a Reporting web page with CrystalReportViewer control using Ajax framework, we can get the report but we can’t print or export or any other functions which are provided by the CrystalReportViewer control. This is because the Ajax framework which handles the Asynchronous postbacks.

To overcome this issue, we can use a very simple technique just by registering in the Page to allow regular PostBack event for the particular CrystalReportViewer control.

Using the above code will give the Ajax user interface while allowing the CrystalReportViewer control to send postbacks.

Leave a Reply