Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Which is best to use in large application to get best peformance ?

--Partial post-back with multiple Update Panels and View-State Compression ?

-- Use JQuery and JavaScript instead of server side postabcks ?

-- Use Pure AJAX with calling webservices using ajax and set logic in webservice

or any other combine way ??

Please guide me in detail ..

Thanx in advance
Posted

1 solution

Each of them has their own advantages(and sometimes disadvantages).

1) Partial post-back with multiple Update Panels and View-State Compression.

Update-Panels - For Server-Controls you can use Update-Panels for Ajax implementation, But use of excessive and Nested Update-Panels should be avoided.

View-State Compression - This will help to improve performance of a Web-Page but it also has Browser-Compatibility issues.

2) Use JQuery and JavaScript instead of server side postabcks.

You can implement AJAX using JQuery. And Client side handling of the functionalities using JQuery and JavaScript may improve User-Experience. But sensitive business logic should be avoided here becuase JavaScript can be disabled in browser by users which is a security issue.

3) Use Pure AJAX with calling webservices using ajax and set logic in webservice.

"Pure AJAX" - If you are referring to use of XMLHttpRequest, then you do not require to take all those traditional efforts. As I mentioned in Point-2, you can easily implement AJAX by using JQuery. You may refer to my Tip/Trick on this topic.

Simplifying Asp.Net Core Ajax

Web Service - Use of Web/WCF Service makes more sense if your multiple applications are going to use that implementation. Otherwise simple Business-Layer using Classes/Class-Library should be Ok.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900