How do you access variables using ASP / VB Script?

Discussion in 'Classic ASP' started by Thinair, Jul 18, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have an ASP page that I want to get input from theuser with a Input Box function. ASP doesn't allow the Input Box function, at least I get an error not allowing it. So, I'm using VB Script to use the Input Box function, however VB Script does not allow variables in the ASP page to be accessed in the VB Script, nor canthe variables in the VB Script to be accessed in the ASP Page. I have a value that needs to be input in the VB Script and then use that value in the ASP page toperform some calculations.


    Requirements: I do not want to use a text input box in ASP and I do not want to go another page or reset the current page, I have to remain on the same page.


    Is there a way to do this using an ASP page and VB Script?


    Is there a way to declare a global variable that can be used by ASP and VB Script?


    Or, is there a entirely different way of doing this?


    Help!
     
  2. ASP is a server side language so the client can not directly interact with the code. The only way you can do this is to either use ASP.NET or something like the following. Name the page '_test.asp'.:

     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page