The short answer is that you can't directly do this. The method you use will depend on what technologies you are currently employing. If you are using Microsoft AJAX you can define a method with [WebMethod] and call it from within a JavaScript otherwise you are going to have to setup an AJAX style request, pass the variable to another page that will process it within the given method, and then return any results if necessary.
hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click  on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
|