473,386 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

.NET and Ajax Question

Hi, I am interested in use AJAX, Javascript, .NET, etc. to retrieve
information from a "real" database, not an XML file. I am trying to
find out if that is a legitimate approach. All of the examples I have
seen use AJAX to get the data from a XML file using XSL. Or do I use
regular ASP.NET and ADO.NET to retrieve data and send it back
surrounded by XML tags to a file and then the XSL file. Not real sure
how to proceed here. I don't want to implement the wrong technology.
Any comments are welcome. Thanks

Nov 19 '05 #1
2 1204

<ne***********@gmail.com> wrote in message
news:11********************@g44g2000cwa.googlegrou ps.com...
Hi, I am interested in use AJAX, Javascript, .NET, etc. to retrieve
information from a "real" database, not an XML file. I am trying to
find out if that is a legitimate approach. All of the examples I have
seen use AJAX to get the data from a XML file using XSL. Or do I use
regular ASP.NET and ADO.NET to retrieve data and send it back
surrounded by XML tags to a file and then the XSL file. Not real sure
how to proceed here. I don't want to implement the wrong technology.
Any comments are welcome. Thanks


Web clients generally cannot connect directly to your databases.

In the AJAX model you would typically retrieve XML data from a web service
or ASPX page on your web server. The web server should handle commnicating
to the back-end databases and formatting the data as XML.

David

Nov 19 '05 #2
It is absolutely a legitimate approach.

There are some pretty good free ajax implementations out there, or you can
write your own.
http://msdn.microsoft.com/library/de...SpicedAjax.asp

All you're really doing is making an http request using javascript, which is
then handled by a asp.net page. the page deciphers the request, and calls
the appropriate method (server side). In this method you can read data from
where ever you want, as your dealing in server side code now so it's easy
enough to get from a database. Once you've got your data, you need to
return it in a format that you can read in javascript. this could be just
text, or xml or Javascript object model (json).

You can download a good free ajax library here: (it has good docs and
samples)
http://ajaxpro.schwarz-interactive.de/
<ne***********@gmail.com> wrote in message
news:11********************@g44g2000cwa.googlegrou ps.com...
Hi, I am interested in use AJAX, Javascript, .NET, etc. to retrieve
information from a "real" database, not an XML file. I am trying to
find out if that is a legitimate approach. All of the examples I have
seen use AJAX to get the data from a XML file using XSL. Or do I use
regular ASP.NET and ADO.NET to retrieve data and send it back
surrounded by XML tags to a file and then the XSL file. Not real sure
how to proceed here. I don't want to implement the wrong technology.
Any comments are welcome. Thanks

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: G Matthew J | last post by:
interesting "signal vs. noise" blog entry: http://37signals.com/svn/archives2/whats_wrong_with_ajax.php
21
by: javainfo | last post by:
How can i refresh IFRAME and load data through AJAX?
9
by: darrel | last post by:
Last week I asked about ASP.net 2.0 AJAX frameworks and there appears to be several to choose from. I haven't used ASP.net 2.0 yet, but from doing a bit of reading, it appears that ASP.net 2.0...
31
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
1
by: codefragment | last post by:
Hi I have asked this on the official asp.net forums but no luck so thought I'd try here Assume you have a page with a filter control and a grid view and many other controls on it. When the...
8
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm about to finally make the jump and start a new site using AJAX. THe question i have for all of you AJAX developers out there is which one? 1. The Standard AJAX frame work 2. The Tool kit....
2
by: =?Utf-8?B?VG9u?= | last post by:
Hello, I want to understand teh benefits of ajax technology. Does anyone has a good website where AJAX EXTENSIONS is worked out so I really understand it. There a 2 main questions: 1) How about...
2
by: Cirene | last post by:
3 quick questions... 1. Are the controls in the AJAX Futures download "beta" or the release and stable version? 2. Also, where is the best way to learn how to implement these? (Other than by...
6
by: Jonathan Wood | last post by:
Greetings, I'd like to implement some AJAX features on an existing ASP.NET site. I have one example of doing this but, otherwise, don't know much about it. I have one question, though, about...
22
by: sheldonlg | last post by:
I am looking for a clean solution to a problem that I solved in, what I call, a "dirty" way. Here is what I want to do. I have a dropdown list. Clicking on an item in the dropdown list invokes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.