Is it possible to use Javascript API with an as.net website?

788
5
10-10-2011 07:57 AM
AdaoMonteiro
New Contributor
Hello all,

I'm new to Arcgis and I would like to know if its possible to use your javascript API in a ASP.net website?

Thanks,

Adam
0 Kudos
5 Replies
derekswingley1
Frequent Contributor
Yes, you can use the JS API with any server side platform.
0 Kudos
AdaoMonteiro
New Contributor
Yes, you can use the JS API with any server side platform.


Tks for the quick reply!

Adam
0 Kudos
YinghongLi
Occasional Contributor
Hello,

I assume this is about javascript api and asp.net.  We have an app which is created using javascript api.  Now we want to use id from spatial query to query an oracle database table.  Since Javascript api can not do this we have to use asp.net.  We need to have a map and database query results in one page.  If we retrieve map using javascript api how can we put javascript and asp.net code together?  Do you have an example?

Thanks.
0 Kudos
JianHuang
Occasional Contributor III
This might be off topic of this forum. Here are some high level steps.
1. create a http handler with asp.net responding to a URL. take a look at system.web.IhttpHandler interface in the asp.net lib.
2. use esri.request to send the query to the http handler, which returns a response with the results.
3. handle the result on client once the results are back.
0 Kudos
YinghongLi
Occasional Contributor
Thanks for the reply. 
I am good at C# but new to asp.net.  Does this mean I do not need to put javascript api code in asp?  Do you have some sample code?
Appreciate your help.


This might be off topic of this forum. Here are some high level steps.
1. create a http handler with asp.net responding to a URL. take a look at system.web.IhttpHandler interface in the asp.net lib.
2. use esri.request to send the query to the http handler, which returns a response with the results.
3. handle the result on client once the results are back.
0 Kudos