ASP.NET - ajax use in asp.net

Asked By goldy gupta
03-Feb-12 06:28 AM
Helo to all ... Can anybody tell me that  why we use ajax in asp.net.. what advantage will give ajax control  such

as we can see that calender control is in asp.net and also in ajax control.. so why we use ajax calender as both calender will give same functionality..

  dipa ahuja replied to goldy gupta
03-Feb-12 06:31 AM
what you must keep in mind is that asp.net ajax is more than using the updatepanel. you should only use an updatepanel in cases where you're migrating existing web apps or when you don't have the time to do things right.

A partial request caused by an upadtepanel ends up sending all the existing fields back to the server and returns a response in a predefined text format. this might (or might not) be problematic:

It al depends on the scenario. anyway, i still recommend using js code whenever possible. 
  goldy gupta replied to dipa ahuja
03-Feb-12 06:36 AM
Thanks Dipa..You always help me
  dipa ahuja replied to goldy gupta
03-Feb-12 06:38 AM
Your Welcome !
  Somesh Yadav replied to goldy gupta
03-Feb-12 07:18 AM
Hi,

 The advantage of using ajax controls is ,

 let us assume that we have an application without using ajax controlls and we some 5 controlls in it if when we click on a button it wil send the whole page to the server. evenif we want to validate one controlls also the whole page moves to the server side,

  coming to ajax if we are using ajax controlls in application , if we want to validate only one controll , than it can be done.
 i mean if want only one control to validate on the server side it is possible inspite of moving whole application to the server it validates only one control.

the difference between ajax calender and ordinary calender is if we ajax calender fits like a small controll , ie it can me minimised, where other asp control wont be minimised and it would be big in size.
  Reena Jain replied to goldy gupta
03-Feb-12 07:46 AM
Hi,

Asynchronous JavaScript + XML (AJAX) is a a bundle of common web technologies. Its having JavaScript, DHTML and a utility object called XMLHTTP. To prevent heavy server trip we use ajax, means you don't want to load whole page from server again and again then you can use ajax for this.  for eg you have a registration page and there is state and city combobox, you want the that if user select a particular state then only city belonging to that state should be fetch from database. For that there is not need to load and fetch whole registration page again and  again from server, you can use send request for two  combobox and then can download  the  data related to that combobox. Here is the situation we need to use ajax for that.



Create New Account
help
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET sessions with classic ASP? (B) Which are the various modes of storing ASP.NET session
share session between Classic ASP applications and ASP.NET applications? I want to share session state between Classic ASP applications and ASP.NET applications. Can we share ? if yes , How ? Yes, it can. See the article at the user session, and can be used to identify session state for both classic ASP and ASP.NET. Session state information is stored in memory in ASP script and can't be shared with other applications, such as ASP.NET. If the session state is stored in a common format in Microsoft® SQL Server, the
starting it i think i should take advise from you guys. Thanks in advance. HI ASP.NET MVC 3 is compatible with ASP.NET MVC 2 – which means it will be easy to update projects you are writing with 3 release. MVC 3 adds new features and capabilities – it doesn’t obsolete existing ones. ASP.NET MVC 3 can be installed side-by-side with ASP.NET MVC 2, and you can install today’s “Preview 1” release on your machine without
different features in all asp.net versions what are the diff features of asp.net all versions. in the below link you have upto 2.0 http: / / www.codeproject.com the base class libraries. 1.1 1.1 Visual Studio .NET 2003 Included updates to ASP.NET and ADO.NET. This version was subsequently updated twice, with Service Pack 1 (SP1) and with additions to the base class libraries, including generics, generic collections, and significant additions to ASP.NET. This version was subsequently updated with SP1 and SP2. 3.0 2.0 Visual Studio
asp.net MVC & webform usage & difference between them ASP.NET i know asp.net webform but i am not familier with MS asp.net MVC framework. so i need to know what is the difference between asp.net webform