I have never done this but it does appear to be possible. I came across the topic in a book called "Visual Basic Object and Component Handbook". There is a section in the book called "Remote Scripting and ASP Remote Objects". Here is a summary of the topic....
"Remote scripting allows you to write code to execute in Internet Explorer that reaches back through the Web to execute objects on the server. This gives your client-side code access to server-side rewources without making the user wait throught a roundtrip to the server....
To user remote scripting as described here you must be running IIS 4.0 or later as your Web server. However, you should be able to use any web browser with remote scripting because the underlying technology is implemented using a Java applet. Having said that, if you intend your client-side code to run in a brouwser other thatn Internet Explorer, you should write your script in Javascript...."
There is a little bit of infrastructure that needs to be in place to do this. Namely, there will be several files RS.HTM (contains standard client-side routines), RS.ASP (Standard Server-Side routines), RSProxy.class (a java applet which the routines in RS.HTM will dounload to your client and which handles communication with the server). These files will need to be in a directory called ScriptLibrary immediately under the root directroy for your web site.
If this sounds like it will work for you (and I believe it allows info to be passed to and from the server so it should) you should be able to find more info at