How we use ajax in asp.net through javaScript.
Please givee me an example.



How we use ajax in asp.net through javaScript. Please givee me an example...

Answer / Arun Kumar Gaur

To use AJAX in ASP.NET using JavaScript, you can utilize the Microsoft AJAX Library (formerly Atlas). Here's an example of an AJAX call to retrieve data from a web service: nn`javascriptnvar soapClient = new SoapClient.Service1();nsoapClient.GetDataCompleted += function(sender, args) {n alert('Received data from server: ' + args.get_result());n};nsoapClient.GetDataAsync();n`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Code Interview Questions

how to design a ListView control?

1 Answers  


Listview design in .net

1 Answers  


i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this

1 Answers   Crompton Greaves,


What do you create for easier access of data?

3 Answers   NIIT,


How to use Client-side Script to Focus Controls in ASP.NET?

1 Answers  


Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.

1 Answers   TCS,


how can we close a web page in asp.net without using jscript?

4 Answers  


Code for Document Validation in XML.NET?

1 Answers   TCS,


How we implement the paypal in my website and how we make a payment through Credit Card.

2 Answers  


how the value of label is printed through a button in asp.net web application

3 Answers  


Code for Communicating over Sockets?

1 Answers  


how to convert Dataset to Object Array or list in c# .net

4 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)