Register

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

  2.  

  3. #2
    Guest
    (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
    </SCRIPT>

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

    You can then reference it through your ASP by
    Application("myVar")

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

    Cheers

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


    Thanks dude......

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

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

  7. #6
    Guest
    Nah like session variables jethro.

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

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

    b

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


    NextPage_process.asp?product=slimjims


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 09:39 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com