473,406 Members | 2,867 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,406 software developers and data experts.

ADO.NET via Javascript

Is there any code out there that explains how to perform a connection to a SQL Database and returning a Dataset using Javascript. Unfortunately all the examples on MSDN are C++, C#, and VB.NET.

I'd like to perform certain functions on the client without having to send the entire page to the server...

thanks
Nov 18 '05 #1
5 1106
I you could have done this with JavaScript there would be no need for server side code (ie ASP.NET). You would most likely have to write an ActiveX control or a Java Applet. My suggestion, stick with asp.net. Every technology has its drawbacks, unfortunately, this is a draw back of web applications and server side programming.

"Angel" wrote:
Is there any code out there that explains how to perform a connection to a SQL Database and returning a Dataset using Javascript. Unfortunately all the examples on MSDN are C++, C#, and VB.NET.

I'd like to perform certain functions on the client without having to send the entire page to the server...

thanks

Nov 18 '05 #2
try doing this by webservices, then call your webservice function from
javascript on client
Nov 18 '05 #3
wl
Unfortunately client-side javascript runs on the client and can not do any
database connections.
You could use a Java applet that talks to javascript.

However, I have been developing code with which you can have a website with
only static pages (thus if you don't have any serverside scripting
possibilities) and still have things like saving state, storing and
retrieving data (with table definitions you provide) on a server.

This would allow to write dynamic websites without even using any serverside
processing (such as, but not limited to: tracking users, guestbooks, blogs,
....)

Send me an email if you would be interested: wlambrechts(at)hotmial.com
(replace at and switch i and a).

Wim
"Angel" <An***@discussions.microsoft.com> wrote in message
news:13**********************************@microsof t.com...
Is there any code out there that explains how to perform a connection to a SQL Database and returning a Dataset using Javascript. Unfortunately all the
examples on MSDN are C++, C#, and VB.NET.
I'd like to perform certain functions on the client without having to send the entire page to the server...
thanks

Nov 18 '05 #4
Did you perhaps want to use JScript.NET ?

Jure ©pik
Nov 18 '05 #5
Bingo!

I would refer to http://www.asp.net/Tutorials/quickstart.aspx where
the syntax for VB, C#, and JScript can be observed for data access.

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Carpe Diem" <we*******@carpediem.si> wrote in message
news:eh**************@tk2msftngp13.phx.gbl...
Did you perhaps want to use JScript.NET ?

Jure ©pik

Nov 18 '05 #6

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

Similar topics

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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.