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.
Author |
Topic |
OBINNA_EKE
Posting Yak Master
234 Posts |
Posted - 2006-10-25 : 04:32:11
|
Hi AllHow can I call my database SQL using this http://www.codeproject.com/jscript/jsactb.aspcustomarray = 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 dataIf 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. :) |
 |
|
OBINNA_EKE
Posting Yak Master
234 Posts |
Posted - 2006-10-25 : 07:21:25
|
Hey Mr_MistHave u got some code ?If it is that easy, everybody will be doing it |
 |
|
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. :) |
 |
|
|
|
|
|
|