As usual, I can't find any documentation on this issue. I would like to pass variables between the client and server. Passing from client to...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer
As usual, I can't find any documentation on this issue. I would like to pass variables between the client and server. Passing from client to server is simple: post data to a different frame (or same) and have ASP process DB query. However, I would like to return the results from the query back to the calling page without having to refresh it. I've tried using Cookies, but it isn't working. Does anyone have any suggestions? Thanks in advance, Greg
Last updated
Matthew Pomar
Customer Support
Actually Greg there is a way but probably not what you'd expected.

Have you ever heard of Microsoft Remote Scripting? It is a way to call a function on an ASP page and retrieve it's results without refreshing the client page. I would say it bridges the gap bewteen client and server-side pages.

As example of how RS could be used is pretend we had two list boxes, one Automobile Make, and the other Model. Let's say we'd like to populate the list of Models after we select the Make. Well that's easy enough if we were going to post the results of the first selection to itself, but if you wanted to change the list dyanamically without refreshing the page, we could use Remote Scripting.

With JavaScript and DHTML we can use the onChange event of the first listbox to call a function on another ASP page that was to supply the recordset of the second listbox. By changing the selection in the Make listbox, the onChange event could send the value to the remote function, the remote function could return the HTML that generates the second listbox and using DHTML, create the the second listbox.

You can learn more about Remote Scripting on the Microsoft web site as wells as see some examples:

http://www.microsoft.com/scripting/

I hope this helps.

Regards,
Matthew Pomar
m**r@aspsites.com
Posted
todd-harvey
Programmer
Greg, I think what you want to do is impossible, however, the below may be close to what you want to do:
1) use inline frame, separate html page, refresh only it, your surrounding html does not refresh
or
2) assuming "intranet", use RDS data access methods, then database access is directly from the browser

it sounded like you already had a pretty creative idea, and this post is so old, perhaps you probably have already done what you wanted to do
Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!