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 5 1969
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" <ne*****@hotmail.com> wrote in message
news:OF**************@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
Global.asa works well, as Application values
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"Neo Chou" <ne*****@hotmail.com> wrote in message
news:OF**************@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
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:Oe**************@TK2MSFTNGP12.phx.gbl... Global.asa works well, as Application values
-- ---------------------------------------------------------- Curt Christianson (Software_AT_Darkfalz.Com)
As long as you are careful with your INCLUDE file (location, ext, etc)
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"DaWoE" <da*******@yahoo.com> wrote in message
news:bf************@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:%2****************@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:Oe**************@TK2MSFTNGP12.phx.gbl... Global.asa works well, as Application values
-- ---------------------------------------------------------- Curt Christianson (Software_AT_Darkfalz.Com)
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:uB**************@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..
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Micha³ Wo¼niak |
last post by:
Ok, I have a nice iface, I have a (hopefully) good user authentication, I
have a DB up-and-running, and I have PHP 4.3.4 (yeah, I know, I will
update...).
What I need is a logging utility. And...
|
by: jabailo |
last post by:
I wrote a program that loops through a file of records.
It parses each line in the file and sends them to a web service that
inserts them into an AS400DB2 database using Asynch calls.
This is...
|
by: Ed_P. |
last post by:
Hello,
I have the following scenario: I have a solution with 4 projects
Project1 = MainWindow (Windows EXE)
Project2 = PresentationLayer (DLL)
Project3 = BusinessLayer (DLL)
Project4 =...
|
by: harvie wang |
last post by:
In .Net,Through System.Configuration.ConfigurationSettings Get Application's
Settings
I can't find the Configuration Value from Register
Where the ConfigurationSettings saved?
How to Read it...
|
by: Yongsub Eric Shin |
last post by:
Hi. I'm just a beginner in ASP.Net.
I started writing codes and I keep on getting this Runtime
Error page, where it says
"Description: An application error occurred on the server.
The current...
|
by: Nikolay Petrov |
last post by:
I have an class library, which I shared with some of my apps.
Some of them are Winfroms apps, others are ASP .NET.
How could I check from a method in my library, is it called form an
Winforms or...
|
by: Mike Hoorens |
last post by:
Hi there.
This looks like a good place to get help with a problem I am having:
- We have a c# windows app, which performs an HTTPWebRequest to a IIS box on
Internet to retrieve an XML response....
|
by: BookerW |
last post by:
Ok interesting, on my local machine
And i did not do a good job of keeping track of the exact order....
but on my local machine
in which i have vis studio 2003 installed and IIS for win XP,...
|
by: Author |
last post by:
This may sound like a silly question.
I rarely do console or windows form applications.
In a console application, I have an XML configuration file. I place
it under my application root. In...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |