I have a simple web app which uses AjaxControlToolkit. It consists of 3 button on the top. First button (default) shows static content whose different sections I display by means of Ajax collapsible extender. Second button click shows a form consisting of
text boxes, dropdownlist (which gets populated from SQL), calendar to set date and Submit button which in codebehind inserts an entry into SQL table. Third button click displays a simple grid. Each of these is inside their own UpdatePanel.
I was just wondering if everything I mentioned above can be achieved by simply using jQuery and completing avoiding AjaxControlToolkit?
Some of the questions I am concerned about is how will jquery handle different user interfaces which ScriptManager's UpdatePanel achieves so beautifully, populating the dropdownlist, etc etc.
If there is a reference of something similar, any pointers, do's and don'ts, it would be of great help.
jquery and its extensions have no support for update panels. the best choice when switching to jquery, is to stop using update panels and use $.load/$.ajax instead.
if you use update panels, then you will need hookup to the update panel's client events. on begin request - unbind all jquery binds or you will have memory leaks. then on end request you need to do all jquery hookups (all that jquery code you have in $.ready
- some jquery plugs will have auto $.ready() hookups, which you will need to manually do)
If there is a reference of something similar, any pointers, do's and don'ts, it would be of great help.
Here are some benefits of Jquery over AjaxControlToolkit:-
JQuery lets your application to be free of ASP.NET releases.
We used MS AJAX toolkit and we had to worry about its versions and see if it is compatible with ASP.NET 2.0 etc. We started using JQuery controls and found our application to be much faster and our controls could evolve independently from .NET versions.
We could even throw out .NET in favour of PHP as most of our stuff is WebService based. So for presentation you could have plain HTML pages with JQuery and most other stuff can be implemented as WebServices.
Member
112 Points
112 Posts
Replacing AjaxControlToolkit code with jQuery
Apr 09, 2015 03:42 PM|dbqasp|LINK
Hi,
I am new to jQuery and so looking for advice.
I have a simple web app which uses AjaxControlToolkit. It consists of 3 button on the top. First button (default) shows static content whose different sections I display by means of Ajax collapsible extender. Second button click shows a form consisting of text boxes, dropdownlist (which gets populated from SQL), calendar to set date and Submit button which in codebehind inserts an entry into SQL table. Third button click displays a simple grid. Each of these is inside their own UpdatePanel.
I was just wondering if everything I mentioned above can be achieved by simply using jQuery and completing avoiding AjaxControlToolkit?
Some of the questions I am concerned about is how will jquery handle different user interfaces which ScriptManager's UpdatePanel achieves so beautifully, populating the dropdownlist, etc etc.
If there is a reference of something similar, any pointers, do's and don'ts, it would be of great help.
Thank you.
All-Star
57874 Points
15505 Posts
Re: Replacing AjaxControlToolkit code with jQuery
Apr 09, 2015 05:08 PM|bruce (sqlwork.com)|LINK
jquery and its extensions have no support for update panels. the best choice when switching to jquery, is to stop using update panels and use $.load/$.ajax instead.
if you use update panels, then you will need hookup to the update panel's client events. on begin request - unbind all jquery binds or you will have memory leaks. then on end request you need to do all jquery hookups (all that jquery code you have in $.ready - some jquery plugs will have auto $.ready() hookups, which you will need to manually do)
Contributor
2106 Points
2551 Posts
Re: Replacing AjaxControlToolkit code with jQuery
Apr 10, 2015 01:50 AM|Nadeem157|LINK
Here are some benefits of Jquery over AjaxControlToolkit:-
JQuery lets your application to be free of ASP.NET releases.
We used MS AJAX toolkit and we had to worry about its versions and see if it is compatible with ASP.NET 2.0 etc. We started using JQuery controls and found our application to be much faster and our controls could evolve independently from .NET versions.
We could even throw out .NET in favour of PHP as most of our stuff is WebService based. So for presentation you could have plain HTML pages with JQuery and most other stuff can be implemented as WebServices.
Here is the reference:-
http://stackoverflow.com/questions/1326625/microsoft-ajax-control-toolkit-vs-jquery