473,387 Members | 1,882 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,387 software developers and data experts.

Can we access database (SQL) using AJAX ?

Hi,

Can we access database (SQL) using AJAX ?

Thanks,
Bhuwan
Oct 21 '07 #1
8 3519
Bhuwan Bhaskar wrote:
Hi,

Can we access database (SQL) using AJAX ?

Thanks,
Bhuwan
Yes, and no.

You can't access the database directly using AJAX.

You can request a page or web service on the server using AJAX, which in
turn can access the database.

--
Göran Andersson
_____
http://www.guffa.com
Oct 21 '07 #2
"Bhuwan Bhaskar" <kx**@gmail.comwrote in message
news:e$**************@TK2MSFTNGP02.phx.gbl...
Can we access database (SQL) using AJAX ?
AJAX is a mechanism whereby ASPX pages can make HttpRequests via a callback
instead of a postback - there's very little more to it than that...

Can you explain your question in a bit more detail...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 21 '07 #3
Hi Mark,

I am making a page that contains text boxes for email id, Name, date of
birth, address ...
Data on the above fields is saved in a table say 'T1" of database say "D1"
of SQL server 2000.

What I want is, after entering email id in a text box, rest of the field of
the form would fill accordingly without postback. Can I use Ajax in this
scinario or what are the other options.

Thank,

Bhuwan
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
"Bhuwan Bhaskar" <kx**@gmail.comwrote in message
news:e$**************@TK2MSFTNGP02.phx.gbl...
>Can we access database (SQL) using AJAX ?

AJAX is a mechanism whereby ASPX pages can make HttpRequests via a
callback instead of a postback - there's very little more to it than
that...

Can you explain your question in a bit more detail...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 21 '07 #4
"Bhuwan Bhaskar" <kx**@gmail.comwrote in message
news:u8**************@TK2MSFTNGP06.phx.gbl...
I am making a page that contains text boxes for email id, Name, date of
birth, address ...
Data on the above fields is saved in a table say 'T1" of database say "D1"
of SQL server 2000.

What I want is, after entering email id in a text box, rest of the field
of the form would fill accordingly without postback. Can I use Ajax in
this scenario
I believe so...
or what are the other options.
I use this: http://anthemdotnet.com

It would meet your requirements with no problem at all...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 21 '07 #5
Thanks Mark,

I am following the link.

Thanks & Regards,
Bhuwan

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OB**************@TK2MSFTNGP05.phx.gbl...
"Bhuwan Bhaskar" <kx**@gmail.comwrote in message
news:u8**************@TK2MSFTNGP06.phx.gbl...
>I am making a page that contains text boxes for email id, Name, date of
birth, address ...
Data on the above fields is saved in a table say 'T1" of database say
"D1" of SQL server 2000.

What I want is, after entering email id in a text box, rest of the field
of the form would fill accordingly without postback. Can I use Ajax in
this scenario

I believe so...
>or what are the other options.

I use this: http://anthemdotnet.com

It would meet your requirements with no problem at all...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 21 '07 #6
What you have described is a lot like Google forms, so yes, it is possible.
You cannot access the database directly, but with ASP.NET AJAX, you can
create a routine that gets hit as a person types in. It is not as
straightforward, except through third party controls (and perhaps futures),
but it can be accomplished if you are willing to work at it.

If you follow the google forms idea and then get info when the person
selects an email completely, you can AJAX the data return.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Bhuwan Bhaskar" <kx**@gmail.comwrote in message
news:e$**************@TK2MSFTNGP02.phx.gbl...
Hi,

Can we access database (SQL) using AJAX ?

Thanks,
Bhuwan

Oct 21 '07 #7
u can use sqlxml, so it's 'almost direct'
On Oct 22, 1:55 am, "Bhuwan Bhaskar" <k...@gmail.comwrote:
Hi Mark,

I am making a page that contains text boxes for email id, Name, date of
birth, address ...
Data on the above fields is saved in a table say 'T1" of database say "D1"
of SQL server 2000.

What I want is, after entering email id in a text box, rest of the field of
the form would fill accordingly without postback. Can I use Ajax in this
scinario or what are the other options.

Thank,

Bhuwan

"Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote in messagenews:%2******************@TK2MSFTNGP05.phx. gbl...
"Bhuwan Bhaskar" <k...@gmail.comwrote in message
news:e$**************@TK2MSFTNGP02.phx.gbl...
Can we access database (SQL) using AJAX ?
AJAX is a mechanism whereby ASPX pages can make HttpRequests via a
callback instead of a postback - there's very little more to it than
that...
Can you explain your question in a bit more detail...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net- Hide quoted text -

- Show quoted text -

Oct 22 '07 #8
actually if you are using sql2005 you can access it directly from ajax.
sqlserver 2005 has a web service interface, which can be called directly
from most ajax libraries. unlike earlier versions, it built in rather
than being an iis filter.

-- bruce (sqlwork.com)

Göran Andersson wrote:
Bhuwan Bhaskar wrote:
>Hi,

Can we access database (SQL) using AJAX ?

Thanks,
Bhuwan

Yes, and no.

You can't access the database directly using AJAX.

You can request a page or web service on the server using AJAX, which in
turn can access the database.
Oct 22 '07 #9

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

Similar topics

1
by: sunlight_sg | last post by:
Hello, i am using ADOX + VB .NET to create a Access Database programmatically. I plan to set some properties of the column such primary key. The code is as follows: Dim cat As ADOX.Catalog...
2
by: Jon S via DotNetMonster.com | last post by:
Hi all, I would like to convert an Access '97 database to Access 2002 format pragrammatically using C#. How would I do this? Thanks in advance. -- Message posted via DotNetMonster.com...
0
by: stanlyjosereyan | last post by:
Hi.. Help me.. I'm put in soup... How could we export all the mail details to a database in SQL using C# without opening the Outlook Express... It is urgent... Plzzzzzzz.. Thank You....
3
by: AaronMason | last post by:
Hi, Is it possible to use SQL to get a database's structure, like SHOW TABLES in MySQL? I'd like to create a database access interface for MS Access databases in JSP/Java Servlets and I need to...
5
by: Nivetha | last post by:
I have requirement list of records are there in that each and every record i need to keep refresh button by clicking that each button ....it should take tha latest value from the database that too...
0
by: jackvel | last post by:
Hi Dudes... I want to connect the Access database with VB 6.0 without using DataControl and ADODC.. Which option should i use.? Plz send me the detailed procedure of doing the same.. Plz...
1
by: sreegans | last post by:
Hi.. I'm using 2 radio buttons in my form, for the user to select male or female.. How to insert this value into the database.... Any one pl help.. Sree.
0
by: SanjeevSharma123457086 | last post by:
How i can update data in database. As if i want to increase money in one account and decrease the same amount of money in another account at the same time. Or you can say how i can perform...
5
by: asmi | last post by:
I am new in C# programming. Can anyone plz help me in the following problem. I am changing values in different columns in access database table using c# but these changes are only visible at run...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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.