Click here to Skip to main content
14,330,663 members
Rate this:
Please Sign up or sign in to vote.
I want to fetch column value from table in javascript.
Posted
Comments
Maciej Los 30-May-12 8:38am
   
Where is a problem?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I want to fetch column value from table in javascript.
Database will be on server side. So you need to use techniques that will allow you to talk to server from JavaScript.

There are few ways to interact with server side through client side(Javascript):
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]

Try the one that suits you.
   
Comments
Manfred Rudolf Bihy 30-May-12 8:53am
   
That sums the options up quite nicely! 5+

Oh wait, there's more: Just to confuse OP we could also mention the server-push method via The Bayeux Protol.

Cheers!
Sandeep Mewara 30-May-12 13:46pm
   
:) Thanks.

BTW, I published a tip last week, do have a look at it and share your comments: http://www.codeproject.com/Tips/384425/Server-side-Delimiters-in-ASP-NET
Maciej Los 30-May-12 8:55am
   
+5!
Sandeep Mewara 30-May-12 13:46pm
   
Thanks losmac

BTW, I published a tip last week, do have a look at it and share your comments: http://www.codeproject.com/Tips/384425/Server-side-Delimiters-in-ASP-NET
BobJanova 30-May-12 11:46am
   
Good job answering this in a non-snide fashion, +5
Sandeep Mewara 30-May-12 13:46pm
   
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100