Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Static to Dynamic (DB Driven )

Author  Topic 

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-10-25 : 04:32:11
Hi All

How can I call my database SQL using this

http://www.codeproject.com/jscript/jsactb.asp

customarray = new Array('apple','pear','mango','pineapple',
'orange','banana','durian', 'jackfruit','etc');

As you can see, the information is stored in an array (static), but I will like to retrieve from a database thanks

I need a direction on how to make javascript call my asp/asp.net for me to retrieve my data



If it is that easy, everybody will be doing it

mr_mist
Grunnio

1870 Posts

Posted - 2006-10-25 : 05:40:14
You can't do that. Javascript is client side. You have to get the ASP page to generate itself and push data through to any client side javascript.

Filling an array (through ASP) is just a simple matter of using getrows()

-------
Moo. :)
Go to Top of Page

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-10-25 : 07:21:25
Hey Mr_Mist

Have u got some code ?

If it is that easy, everybody will be doing it
Go to Top of Page

mr_mist
Grunnio

1870 Posts

Posted - 2006-10-25 : 07:56:34
No, I don't write code like that any more. It's fairly easily obtainable though, I used to use 4guysfromrolla.com as a good resource, but that was a few years ago.

-------
Moo. :)
Go to Top of Page
   

- Advertisement -