Showing posts with label whilst. Show all posts
Showing posts with label whilst. Show all posts

Monday, March 12, 2012

Retrieving Data Whilst Client Side

Hi

I know this is a nasty way of doing but I can't think of another way. I'm retrieving an ID from a treeview when it's clicked client side, and I want to pass this to a SQL Procedure and retrieve some other data relating to it and fill a list box. Can this be done?

Thanks
LbobWith the Treeview, you can just have it post back to the server, get the value selected, use it to query your database, and fill the drop down. Yes, it can be done.

Using the "MSXML2.XMLHTTP" object from javascript, you can get the data without doing a postback, but it's a little more complex.|||It's best not to do that though. It can become a really difficult thing to handle. Security would be one thing, but just the insane amount of keystrokes.