Is it worth learning ASP.Net AJAX - ajax

I know this is a duplicate kind of question.
I have worked with ASP.Net and ASP.Net MVC 1.0. I never really got a chance to get into ASP.Net AJAX.
My question is it really worth to invest in learning ASP.Net AJAX 3.5 or 4.0 given the fact, I have hardly used it ?
Please let me know your advise.
EDIT : - Thanks all for your response. Robert\Justin\etc have provided valuable insight.
I have a copy of ASP.Net AJAX In Action in my office library. My guess this book should be pretty enough for me, though It was for ASP.Net 2.0.
Do I need to invest in books\Time for ASP.Net AJAX 3.5 or 4.0 ?

There are so many Ajax Libraries out there, is not even funny. Here is a good link on what is out there.
Since we already use ASP.net, I made sure to spend a little bit of time familiarizing myself with asp.net ajax. Just enough to do the basics. However, for everything else, we use jQuery, which, by the way, integrates nicely with ASP.Net. Have you ever wondered why the ASP.Net team has started supporting jQuery: intellisense, included scripts, contributing to the project, doing demos with it, etc...
So here is my 2 cents. Look into the basics in asp.net ajax but focus your efforts into, IMHO, a better library like jQuery.
Good luck!
-D

Are you interested in it? Do you think you might want to use it someday for something? Do you want to make sure you're equipped to use the best tools for the problem at hand?
If you answered yes (to any of them), you should invest the time to learn it.
You can never hurt yourself by learning new things (as long as you learn how to properly apply them).

ASP.Net AJAX is probably not worth learning if you're going to stick with Asp.Net MVC going forward. Or to put it another way... You can spend your time and resources learning something else.
It's not that it's a bad framework, it's good. But it's designed to make javascript familiar to .Net Developers who are used to the Webforms model.
I suspect that MS has de-emphasized the role asp.net Ajax will play in the future.

ASP.net ajax is a pretty terrible library, compared to the alternatives. The only reason to use it is if you are using the asp.net ajax controls.

Yes. Learn as much as you can as often as you can. While you may never use these skiils directly, the experience and breadth of knowledge will help you in any situation.

If you have an understanding of ASP.NET already, I'm assuming you also understand JavaScript and etc. As a result, AJAX wouldn't buy you that much (unless you're on a project that requires knowing it). If you plan on being a web developer for any length of time, I would say that Silverlight and/or jQuery would be much more valuable than Ajax.

Related

Another template in the future?

With this framework being predominantly a Microsoft framework I was wondering if in the future it would be worthwhile building a template for Razor Web Pages?
Not looked into it too much myself but I would imagine there would be some effort involved to take the current Abp Controller logic into some sort of an Abp Page base class.
Just asking for people personal opinion - no right or wrong here :-)
It's a big effort for us to convert all templates (especially for asp.net zero).
We still want to wait for Razor Pages approach to be more mature and accepted by the community. Then we will have a decision about that.
So, for now, no clear answer :)

kendo UI to develop website + apps

I am a rusty ASP.net developer who last worked on .Net 2.0 some 4 years ago! However, I'm ambitious and hope to spend the free time I get while raising my son on developing a website with supporting apps. I've used and liked telerik before but havent touched Linq, Jquery, xcode etc. How good is Kendo UI and how easy will it be to learn to use it? Are webservices the way to go?
Thanks!
EDIT: Thank you for your answers and sorry for causing grief, but I haven't had the time to investigate Kendo UI yet. I was wondering if I can create web and mobile apps talking to the same core web services.. and if kendo might help me build these presentation layers that talk to the same business logic.
Thanks for clarifying mustafa and Lars, turns out jQuery and kendo are related and things come together if you read the first line of their documentation! Kendo means I don't have to learn jQuery. So my life will be easier (I hope).
http://docs.telerik.com/kendo-ui/getting-started/introduction
I m working for 5 months on a project in which Kendo Ui is used. There are lots of documents, demos and examples, so learning Kendo Ui is too easy. Also coding is very simple and I like its themes.
I noticed only one bad way because of thread structure, sometimes events and read functions don't work correctly and stable . I had to use setTimeOut() for queuing functions and events.
I didn't use any WebService with Kendo, so I can't say anything about it. But I can certanly suggest Kendo Ui

Asp.net with ajax vs. Silverlight (or.. learn ajax or Ssilverlight)

I already know Asp.net and C#. I want to build web site, and I need to choose between learning Silverlight or learning Ajax.
The site will be (visual) with nice tables and a little graphics, and with hard work with db.
My question is what is the recommended way for me, and the reasons.
Thank u and sorry for my English.
Microsoft's current position would indicate that you should go with Asp.Net + HTML + CSS + jQuery (I would use MVC as it gives you much better control as to what gets rendered in the page, but that's just a recommendation).
http://mashable.com/2010/10/29/microsoft-silverlgiht-html/
Even if we ignore all the news regarding this shift from SilverLight to what's commonly being called "HTML5", learning & using jQuery + HTML + CSS has several advantages:
From a personal standpoint, all the knowledge you'll get will be useful for C# and for any other languages you need to use in the future for developing web apps.
Using Silverlight (or flash) you are basically telling search engines to ignore you. Ok, maybe it's not so radical, but you'll have a hard time trying to make your page climb positions in Google & Bing, if you intend to do so.
Silverlight makes you depend on a browser plugin. Your page won't work in any OS or browser that doesn't have the plugin installed.
You'll find much more information and documentation for jQuery + HTML than for Silverlight, as jQuery is used not only with C#, but also with PHP, Java...
As a benefit of using Silverlight, however, you will gain the ability to stream DRM'd content (it's actually Silverlight's and Flash's main strength right now). How useful that will be to you, I don't know.
The question promotes somewhat subjective answers, so please understand that the answers will vary from person to person.
I would prefer AJAX in this instance. If you need to do a lot of animation then silverlight is probably your best bet. However, if you're looking just to display tabular data (with some graphics), the most commonly used approach (by my observation) is to use AJAX to populate tabular data.
The most common use I see for Silverlight these days is media streaming and proof of concepts.

MVC2 VS custom built framework

We are planning to start a new Sale Management System which will have about 12 subsystem.
We will use MSSQL2008 as a database.
We have got custom framework for ASP.NET that was built about 3 years ago which is not MVC type... And i am planning to move to MVC2 Framework.
My Questions are
What will be the big advantages of moving
to MVC2?
How about the learning curve for MVC2 and will there be any good
guided study flow?
We are planning to use Multirow (Instead of Grid View), inputman (For function key event and validation) from grapecity and ActiveReport.. Will they be easily fit into MVC2 Framework?
Well, you have some good questions, but I think you have abused the question asking here. You will find that people will be more apt to answer if you divide your bullets into their own questions.
Advantages of MVC? Well pick up any MVC book and find those. IMHO however it lets you get to more pure views. It allows for separation of the main components of MVC (Model View and Controller) which allows you to test them. For me its more than that. I like how it allows for more control over what is in the view. I get so sick of the ASP.NET rendered controls that break javascript.
Learning curve? Well that all depends on how well you know HTML, Javascript, AJAX, and JSON. If you dont know them well at all, you will have a bigger curve. Now AJAX and JSON are not a must, but they will make it work better. JQuery is MVCs best friend, learn it and live it.

What is the best AJAX library for Django? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Which AJAX library is the best for django and why?
Looking for one with a large database of tutorials, books and detailed documentation.
Which one is the easiest to work with?
Which one is in early development but shows great promise for the future?
Regards,
chriss
I highly recommend jQuery. There are several tutorials on how to implement it.
http://lethain.com/entry/2007/dec/11/two-faced-django-part-5-jquery-ajax/
http://lethain.com/entry/2007/dec/01/using-jquery-django-autocomplete-fields/
http://vincentxu.net/minimal-ajax-in-django-with-jquery-post
NOTE: Microsoft also announced a while ago that jQuery would be the official client-side framework for ASP.NET MVC, so its good to know regardless of what server side framework you're using.
I think this may be what you're looking for: django-dajax
Pretty well documented. Simple api. Very clean and nice. I plan on using it more in some of my projects. It's JS library agnostic, and works well with jQuery if that's your thing.
UPDATE:
Other solutions similar to dajaxice, but not standard dajax.
https://github.com/joestump/django-ajax - Joe Stump's solution that makes it dead simple to create restful endpoints from your models.
https://bitbucket.org/jespern/django-piston/wiki/Home - Similar idea, but a bit more robust. You can define the data format for your endpoints (xml vs json etc).
https://github.com/toastdriven/django-tastypie - Similar to piston, but I've had better luck with tastypie.
In the end they mostly work the same.
Define/include some predefined URL routes.
Register models/views/functions that will be used as data sources.
Enjoy.
UDATE2:
This advice is super old. Should probably research other solutions.
There's nothing about Django that makes any of the libraries easier or work better with the framework. Just use the one that fits your brain the best.
Having said that, my sense is that jQuery is more popular in the Django world and is what I personally use. Most notably, many of the apps in Pinax require jQuery. Some other shared apps and code snippets for Django:
http://www.djangosnippets.org/tags/jquery/
http://code.google.com/p/django-ajax-validation/
http://code.google.com/p/django-todo/
http://code.google.com/p/donita/
Also keep in mind that the newest Django books (Python Web Development with Django, Learning Website Dev with Django) use jQuery in their tutorials.
Checkout Dajax:
Dajax Project
Easy to use AJAX libraries for Django
Fast, easy and lightweight libraries
to implement AJAX inside your django
projects. Ready to use in 5 minutes.
Dajax is a powerful tool to easily and
super-fastly develop asynchronous
presentation logic in web applications
using python and almost no lines of JS
source code.
It supports up to four of the most
popular JS frameworks: Prototype,
jQuery, Dojo and mootols.
I've successfully used jquery, YUI and Dojo on different django projects. There's nothing about any of those that made it better to use with django specifically. I agree with jpartogy that mochikit may fit django more than any other just because of the "pythonic" (twisted-like) API. It really depends on what you are looking for in an ajax framework.
Personally I like what jQuery can do with given amounts of code but the greatest challenge in writing jQuery code is making it readable.
YUI is much more verbose than other frameworks because it sets a convention for using namespaces, but there are shortcuts to write less code and it avoids trying to make javascript look like something else.
Dojo tries to make javascript look like Java and from my experience is pretty slow. It has some nice widgets and a javascript implementation of the django templating language (which is pretty useful even outside of django projects).
I personally avoid prototype and mootools because they can break other javascript code (or vice versa).
If you are new to javascript and ajax I'd recommend jQuery because it's the easiest to start with. But I don't expect any js framework to be integrated with django mostly because there's really no need for that.
+1 to Soviut and Daniel for good answers. Jquery is a nice framework. Besides Pinax a couple other "big" Django applications use it: Satchmo and Review Board (which switched from another framework... mootools IIRC).
Also popular is rolling your own Javascript without using any framework, for example the Django admin.
The only other suggestion I might make is that, if you are a very experienced Pythonhead, then you might like mochikit which comes under some criticism for being too 'pythonic'.
It seems to be the framework of choice for Turbogears but I personally haven't seen any Django projects using it.
Okay this might be subjective because the definition of 'best' can mean different to each individual. But since you are working with Django, that means you will get your hands down with Python syntax. One notable Javascript library that doesn't get exposed too much is Mochikit. The good thing about it is it has syntax that is familiar to Python programmer (because the creator is a Python programmer). It has quite nicely written down documentation as well. TurboGears out-of-the-box supports Mochikit.
If you need to work with AJAX in your django projects with very little setup and simple to use, my offer is:
django-ajax (Github, Pypi)
Fast, flexible and easy to use AJAX libraries for django projects. Contains ajax decorator, ajax middleware, shortcuts and more.
The phrase "Best AJAX Library" is highly subjective and depends on personal preferences, existing know how, requirements of the work etc. etc.
While I prefer jQuery for (almost) everything, I know some people whio swear by Dojo or ExtJS. There might be case where you want to use jQuery but requirements might be dictate that you use ExtJS.
All said. Use jQuery. jQuery rocks ;)
Django doesn't really tie in with the client side. Use whatever you're comfortable with. Django plays well with everything in that area, because you just write it in the templates.

Resources