If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Ok in vb if l wanted a variable available throughout a project would declare it as Public in a starting code module. Is there a similar method in HTML/ASP, currently working on a site generator which will end up approx 25 pages. Need to declare on home page, be able to modify on sub pages, and display on end page...

    Thanks in advance.....


  3. #2
    (Keep in mind I am a novice learning on our intranet. At work.)

    You need a 'global.asa' file in the virtual directory where you have made an application ( through MMC). Create the global.asa file like below

    <SCRIPT LANGUAGE="VbScrpit" RUNAT="Server">
    Sub Application_OnStart
    Application("myVar")=" "
    End Sub

    (There are 4 events available. Application_OnStart,Application_OnEnd,Session_OnSt art,Session_OnEnd.)

    You can then reference it through your ASP by

    (I've only used it playing around....)


  4. #3
    Aaaarrrrrrrggggggggghhhhhhhhhhhhhh .... egads that looks ugly, still if that's the way to go l guess.....

    Thanks dude......

  5. #4
    In asp tis quicker to use local variables then public variables just pass the information from 1 page to another.

  6. #5
    lick in that ? calling string thingie ... sorry don't have HTML/ASP in front of me ... sounds the better go.....

  7. #6
    Nah like session variables jethro.

    'Setting session variables
    session("username") = Request.form("fname")

    'requesting session variables
    fname = session("username")


  8. #7
    Cool, so basically just keep a block of code rolling through each screen...... was thinking in terms of the next page call thingy


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 04:44 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: