Ask a Question related to ASP, Design and Development.

  1. #1

    Default VBScript to ASP

    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>
    Tim Johnson Guest

  2. Similar Questions and Discussions

    1. ASP/VBScript - if then or else
      I'm developing a site using ASP/VBScript and I'm trying to populate a table with data contain within a recordset using the repeat region... which is...
    2. ASP VBSCRIPT
      I have a form with ship to customer and bill to customer fields. Both of these are required fields. I want to put a check box in the form and if...
    3. VBScript
      I'am running window server 2000 and MS frontpage on my computer. I created ASP page with the frontpage editor. The asp code are not running when I...
    4. VBScript and ASP
      Can I copy code from a .ASP page into a .VBS file and execute it? I need to run code in an ASP page in a daily event on the server. Thanks! ...
    5. ASP.NET and vbscript
      Browser security settings may be hampering your attempts. To get it to work, the setting you'll most likely need to adjust can be found on the...
  3. #2

    Default Re: VBScript to ASP

    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)
    Evertjan. Guest

  4. #3

    Default Re: VBScript to ASP

    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


    Bob Barrows Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139