Groups | Blog | Home
all groups > asp.net > july 2004 >

asp.net : ADO.NET via Javascript


Angel
7/15/2004 9:15:03 PM
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...

Tampa .NET Koder
7/15/2004 9:56:02 PM
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.

[quoted text, click to view]
Konrad Rotuski
7/16/2004 10:51:49 AM
try doing this by webservices, then call your webservice function from
javascript on client

clintonG
7/16/2004 11:08:58 AM
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/



[quoted text, click to view]

wl
7/16/2004 12:58:55 PM
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


[quoted text, click to view]
SQL Database and returning a Dataset using Javascript. Unfortunately all the
examples on MSDN are C++, C#, and VB.NET.
[quoted text, click to view]

Carpe Diem
7/16/2004 5:37:30 PM
Did you perhaps want to use JScript.NET ?

Jure ©pik

AddThis Social Bookmark Button