Where to keep the configuration?

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Where to keep the configuration?

    Greetings!

    I'm not very good at ASP, but I'm using ASP to design a website. I know
    that I can keep some configurable values, such as Server Name, Database Name
    and even Login Username and Password in "web.config" under ASP.Net. As to
    ASP, is there a way like this? I'm curious about where to keep them.

    Thanks in advance.

    Neo


    Neo Chou Guest

  2. Similar Questions and Discussions

    1. COnfiguration
      HOW TO: Use the Group Policy Editor to Manage Local Computer Policy in Windows XP Professional...
    2. RDS Configuration
      I'm working on setting up my development CF server. I've found that I can set up Homesite through RDS and it works just peachy when I hit browse on...
    3. Help with XP/IIS/ASP.NET configuration
      I have setup an XP box to run my ASP.NET application. My objective is to run the application on the XP box and have it accessible to the local...
    4. Web Configuration...
      Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the...
    5. Inn configuration
      Hi, I want to configure a INN Newsserver 2.3.5 under Solaris 8, but it causes Problems. Does anyone has experience in configuring it. Are there...
  3. #2

    Default Where to keep the configuration?

    Greetings!

    I'm not very good at ASP, but I'm using ASP to design a website. I know
    that I can keep some configurable values, such as Server Name, Database Name
    and even Login Username and Password in "web.config" under ASP.Net. As to
    ASP, is there a way like this? I'm curious about where to keep them.

    Thanks in advance.

    Neo


    Neo Chou Guest

  4. #3

    Default Re: Where to keep the configuration?

    I typically will keep constants and what not in an include file.


    site.asp:
    <%
    Const APP_NAME = "Ray's Web-Based Application"
    ''other constants and what not
    %>


    some page in app:

    <!-- #include virtual="/inc/site.asp" -->

    <title><%=APP_NAME%></title>


    Or something along those lines.

    Ray at home

    --
    Will trade ASP help for SQL Server help


    "Neo Chou" <neochou@hotmail.com> wrote in message
    news:OFsftVlUDHA.3220@tk2msftngp13.phx.gbl...
    > Greetings!
    >
    > I'm not very good at ASP, but I'm using ASP to design a website. I know
    > that I can keep some configurable values, such as Server Name, Database
    Name
    > and even Login Username and Password in "web.config" under ASP.Net. As to
    > ASP, is there a way like this? I'm curious about where to keep them.
    >
    > Thanks in advance.
    >
    > Neo
    >
    >

    Ray at Guest

  5. #4

    Default Re: Where to keep the configuration?

    I typically will keep constants and what not in an include file.


    site.asp:
    <%
    Const APP_NAME = "Ray's Web-Based Application"
    ''other constants and what not
    %>


    some page in app:

    <!-- #include virtual="/inc/site.asp" -->

    <title><%=APP_NAME%></title>


    Or something along those lines.

    Ray at home

    --
    Will trade ASP help for SQL Server help


    "Neo Chou" <neochou@hotmail.com> wrote in message
    news:OFsftVlUDHA.3220@tk2msftngp13.phx.gbl...
    > Greetings!
    >
    > I'm not very good at ASP, but I'm using ASP to design a website. I know
    > that I can keep some configurable values, such as Server Name, Database
    Name
    > and even Login Username and Password in "web.config" under ASP.Net. As to
    > ASP, is there a way like this? I'm curious about where to keep them.
    >
    > Thanks in advance.
    >
    > Neo
    >
    >

    Ray at Guest

  6. #5

    Default Re: Where to keep the configuration?

    Thank you.

    Neo


    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:e2QRyYlUDHA.656@tk2msftngp13.phx.gbl...
    > I typically will keep constants and what not in an include file.
    >
    >
    > site.asp:
    > <%
    > Const APP_NAME = "Ray's Web-Based Application"
    > ''other constants and what not
    > %>
    >
    >
    > some page in app:
    >
    > <!-- #include virtual="/inc/site.asp" -->
    >
    > <title><%=APP_NAME%></title>
    >
    >
    > Or something along those lines.
    >
    > Ray at home
    >
    > --
    > Will trade ASP help for SQL Server help
    >
    >
    > "Neo Chou" <neochou@hotmail.com> wrote in message
    > news:OFsftVlUDHA.3220@tk2msftngp13.phx.gbl...
    > > Greetings!
    > >
    > > I'm not very good at ASP, but I'm using ASP to design a website. I know
    > > that I can keep some configurable values, such as Server Name, Database
    > Name
    > > and even Login Username and Password in "web.config" under ASP.Net. As
    to
    > > ASP, is there a way like this? I'm curious about where to keep them.
    > >
    > > Thanks in advance.
    > >
    > > Neo
    > >
    > >
    >
    >

    Neo Chou Guest

  7. #6

    Default Re: Where to keep the configuration?

    Global.asa works well, as Application values


    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------

    "Neo Chou" <neochou@hotmail.com> wrote in message
    news:OFsftVlUDHA.3220@tk2msftngp13.phx.gbl...
    > Greetings!
    >
    > I'm not very good at ASP, but I'm using ASP to design a website. I know
    > that I can keep some configurable values, such as Server Name, Database
    Name
    > and even Login Username and Password in "web.config" under ASP.Net. As to
    > ASP, is there a way like this? I'm curious about where to keep them.
    >
    > Thanks in advance.
    >
    > Neo
    >
    >

    Curt_C [MVP] Guest

  8. #7

    Default Re: Where to keep the configuration?

    Global.asa works well, as Application values


    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------

    "Neo Chou" <neochou@hotmail.com> wrote in message
    news:OFsftVlUDHA.3220@tk2msftngp13.phx.gbl...
    > Greetings!
    >
    > I'm not very good at ASP, but I'm using ASP to design a website. I know
    > that I can keep some configurable values, such as Server Name, Database
    Name
    > and even Login Username and Password in "web.config" under ASP.Net. As to
    > ASP, is there a way like this? I'm curious about where to keep them.
    >
    > Thanks in advance.
    >
    > Neo
    >
    >

    Curt_C [MVP] Guest

  9. #8

    Default Re: Where to keep the configuration?

    I still have never used global.asa once in any application I've created.
    There is no reason for that. I think I'm probably foolish for never using,
    but I'm just really never in the mood to see that file extension, I guess.
    It makes me think about triangles, which are my least favorite shape. :]

    Ray at home

    --
    Will trade ASP help for SQL Server help


    "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
    news:OedYtJmUDHA.2284@TK2MSFTNGP12.phx.gbl...
    > Global.asa works well, as Application values
    >
    >
    > --
    > ----------------------------------------------------------
    > Curt Christianson (Software_AT_Darkfalz.Com)

    Ray at Guest

  10. #9

    Default Re: Where to keep the configuration?

    I still have never used global.asa once in any application I've created.
    There is no reason for that. I think I'm probably foolish for never using,
    but I'm just really never in the mood to see that file extension, I guess.
    It makes me think about triangles, which are my least favorite shape. :]

    Ray at home

    --
    Will trade ASP help for SQL Server help


    "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
    news:OedYtJmUDHA.2284@TK2MSFTNGP12.phx.gbl...
    > Global.asa works well, as Application values
    >
    >
    > --
    > ----------------------------------------------------------
    > Curt Christianson (Software_AT_Darkfalz.Com)

    Ray at Guest

  11. #10

    Default Re: Where to keep the configuration?

    As long as you are careful with your INCLUDE file (location, ext, etc)


    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------

    "DaWoE" <dawoe2000@yahoo.com> wrote in message
    news:bfrbiq$hp2tr$1@ID-201627.news.uni-berlin.de...
    > Ray,
    >
    > I work the same way you do.
    > No global asa but constants in a include file.
    >
    > Dave Woestenborghs
    > ASP Developer
    > Belgium
    >
    >
    > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    > news:%23OybYUmUDHA.2052@TK2MSFTNGP10.phx.gbl...
    > > I still have never used global.asa once in any application I've created.
    > > There is no reason for that. I think I'm probably foolish for never
    > using,
    > > but I'm just really never in the mood to see that file extension, I
    guess.
    > > It makes me think about triangles, which are my least favorite shape.
    :]
    > >
    > > Ray at home
    > >
    > > --
    > > Will trade ASP help for SQL Server help
    > >
    > >
    > > "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
    > > news:OedYtJmUDHA.2284@TK2MSFTNGP12.phx.gbl...
    > > > Global.asa works well, as Application values
    > > >
    > > >
    > > > --
    > > > ----------------------------------------------------------
    > > > Curt Christianson (Software_AT_Darkfalz.Com)
    > >
    > >
    >
    >

    Curt_C [MVP] Guest

  12. #11

    Default Re: Where to keep the configuration?

    As long as you are careful with your INCLUDE file (location, ext, etc)


    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------

    "DaWoE" <dawoe2000@yahoo.com> wrote in message
    news:bfrbiq$hp2tr$1@ID-201627.news.uni-berlin.de...
    > Ray,
    >
    > I work the same way you do.
    > No global asa but constants in a include file.
    >
    > Dave Woestenborghs
    > ASP Developer
    > Belgium
    >
    >
    > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    > news:%23OybYUmUDHA.2052@TK2MSFTNGP10.phx.gbl...
    > > I still have never used global.asa once in any application I've created.
    > > There is no reason for that. I think I'm probably foolish for never
    > using,
    > > but I'm just really never in the mood to see that file extension, I
    guess.
    > > It makes me think about triangles, which are my least favorite shape.
    :]
    > >
    > > Ray at home
    > >
    > > --
    > > Will trade ASP help for SQL Server help
    > >
    > >
    > > "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
    > > news:OedYtJmUDHA.2284@TK2MSFTNGP12.phx.gbl...
    > > > Global.asa works well, as Application values
    > > >
    > > >
    > > > --
    > > > ----------------------------------------------------------
    > > > Curt Christianson (Software_AT_Darkfalz.Com)
    > >
    > >
    >
    >

    Curt_C [MVP] Guest

  13. #12

    Default Re: Where to keep the configuration?

    And http access to *.inc is explicitly denied by default, I believe, which
    is a nice default.

    --
    Will trade ASP help for SQL Server help


    "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
    news:uBeXuKyUDHA.2328@TK2MSFTNGP12.phx.gbl...
    > aye..... I lose the files :}
    > with .NET you get the BIN dir, that's not accessable outside I think...
    > That's nice..
    >
    >
    > --

    Ray at Guest

  14. #13

    Default Re: Where to keep the configuration?

    And http access to *.inc is explicitly denied by default, I believe, which
    is a nice default.

    --
    Will trade ASP help for SQL Server help


    "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
    news:uBeXuKyUDHA.2328@TK2MSFTNGP12.phx.gbl...
    > aye..... I lose the files :}
    > with .NET you get the BIN dir, that's not accessable outside I think...
    > That's nice..
    >
    >
    > --

    Ray at 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