Is it bad to have a large GLOBAL.ASA file?

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Is it bad to have a large GLOBAL.ASA file?

    It seems to me that I generally use two types of Functions:

    Type #1-Ones that any page on my site might use
    Type #2-Ones that only a single page would ever use

    Logically, it seems that I should put the Type #1 functions in the
    GLOBAL.ASA file and the Type #2 functions in the pages that use them. I
    would like to, however, just go ahead and include ALL of my functions in the
    GLOBAL.ASA file.

    Comments on this? Is this a good idea?


    michaaal Guest

  2. Similar Questions and Discussions

    1. global.asa file
      I want to use a query to active directory that holds a user name, group role and group region and stores those values as session variables in the...
    2. DB Connection :: Global.use vs .Inc file?
      I am adapting a login script to suite my specific purposes by require guideance on best practice with regards the following: Should I be...
    3. Illustrator CS files with large linked files results in large file size
      If I place a large linked Photoshop 7 file (.psd or.eps), say 36 MB, in Illustrator CS and save without embedding the file it takes ages to save and...
    4. Question about Global.asa file
      Terry Murray wrote on 09 aug 2003 in microsoft.public.inetserver.asp.db: No -- Evertjan. The Netherlands. (Please change the x'es to dots in...
    5. PHP Warning: InterBase: Error while trying to open file File too large
      Hello, I have this configuration: kernel 2.3.20, apache 1.3.27, with php 4.2.3 as apxs module with firebirdCS-1.0.3-64IO I have problems with...
  3. #2

    Default Re: Is it bad to have a large GLOBAL.ASA file?

    Why don't you put your functions into include files?

    Cheers
    Ken


    "michaaal" <res0gyio@verizon.net> wrote in message
    news:%23dIExSqRDHA.1576@TK2MSFTNGP12.phx.gbl...
    : It seems to me that I generally use two types of Functions:
    :
    : Type #1-Ones that any page on my site might use
    : Type #2-Ones that only a single page would ever use
    :
    : Logically, it seems that I should put the Type #1 functions in the
    : GLOBAL.ASA file and the Type #2 functions in the pages that use them. I
    : would like to, however, just go ahead and include ALL of my functions in
    the
    : GLOBAL.ASA file.
    :
    : Comments on this? Is this a good idea?
    :
    :


    Ken Schaefer Guest

  4. #3

    Default Re: Is it bad to have a large GLOBAL.ASA file?

    > I
    > would like to, however, just go ahead and include ALL of my functions
    in the
    > GLOBAL.ASA file.
    but you're saying you want them to be available throughout the app? this
    is the wrong approach to take there - global.asa runs just once per
    session, and code inside it isn't available to your ASP scripts

    have you thought about using Windows Script Components to store and use
    commonly-used functions?




    ________________________________________
    Atrax. MVP, IIS
    [url]http://rtfm.atrax.co.uk/[/url]

    newsflash : Atrax.Richedit 1.0 now released.
    [url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Atrax 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