Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > VBScript to ASP

Reply
Thread Tools

VBScript to ASP

 
 
Tim Johnson
Guest
Posts: n/a
 
      07-15-2003
I have an ASP page, on the Window_OnLoad event I use
VbScript to popup an Inputbox to accept a value from the
user and put it into a string called strValue. I then
want to be able to go (in asp) <%Response.Write(strValue)%
> - but if I do that nothing happens.


How can I access the Vbscript variable in the ASP part of
the page?

TIA>
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      07-15-2003
Tim Johnson wrote on 15 jul 2003 in
microsoft.public.inetserver.asp.general:

> I have an ASP page, on the Window_OnLoad event I use
> VbScript to popup an Inputbox to accept a value from the
> user and put it into a string called strValue. I then
> want to be able to go (in asp) <%Response.Write(strValue)%
>> - but if I do that nothing happens.

>
> How can I access the Vbscript variable in the ASP part of
> the page?


you cannot

ASP runs on the server and is inaccessable to the clientcode, because ASP
code is finished by that time

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      07-15-2003
Tim Johnson wrote:
> I have an ASP page, on the Window_OnLoad event I use
> VbScript to popup an Inputbox to accept a value from the
> user and put it into a string called strValue. I then
> want to be able to go (in asp) <%Response.Write(strValue)%
>> - but if I do that nothing happens.

>

Why bother? You've used client-side code to get the value: continue to use
client-side code to write the value to the page! You can do this by:
1. setting the innertext property of some element on the page to the value
of the variable
2. using insertadjacenttext to put the value next to an element
3. setting a textbox's value to the variable

You'll be able to get further help with this in a dhtml or client-side
scripting newsgroup.

HTH,
Bob Barrows


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass XMLDoc from ASP.NET to asp page (vbscript) Joe ASP .Net 2 04-25-2009 10:06 AM
Setting Terminal Services settings using ASP.NET (or... calling Server-side vbscript from ASP.NET) Roja Doja ASP .Net 2 04-14-2005 02:30 PM
ASP + ASP.NET + VBScript + C#? Gabriele Zannoni ASP .Net 4 09-08-2004 07:10 PM
ASP JavaScript versus ASP VBScript John Davis ASP General 5 09-07-2003 12:42 AM
ASP, vbscript and Netscape... sftwrdvlpr ASP .Net 0 06-25-2003 05:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57