function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bssantoshbssantosh 

AJAX Query - C#

I am new to this dev environment...
 
I need to call an sForce DB Update API function on the button click of my asp.net server control from code behind.
How does AJAX come into this or how can i use the AJAX toolkit to achieve this?
Also, where can i find a list of all api calls pertaining to my requirement like selecting campaigns, etc or where are the db fields stored?
Gareth DaviesGareth Davies

Hi there are two approaches:

1. Use AJAX on the client side - i.e. download javascript code to the client browser and execute there.

2. Use the .Net libraries to call the API from your server.

I suspect that you want to implement option 2. In which case have a look at the samples on the .Net section. You will need to add a web reference to the enterprise (or partner, which is more complex) WSDL. In visual studio this will then create the class stubs you need. Follow the examples available from www.salesforce.com/developer

Cheers

Gareth.

PS. Check out this board as well http://forums.sforce.com/sforce/board?board.id=NET_development

Message Edited by Gareth Davies on 07-17-2006 02:14 AM

bssantoshbssantosh
Thanks Gareth!!!
DevAngelDevAngel
There is no need to use ajax since you are using a control.  AJAX is best used for asynchronouse updates from javascript.  Don't fall in to the hype trap of using AJAX just because it's there.