Solved

Web.config & ASP?

Posted on 2004-10-07
6
949 Views
Last Modified: 2008-01-09
Hi,

I am almost developed a website which is mixed on ASP.Net and classic ASP. The reason to mix classic ASP is that I have 3 years experience in ASP and just started learning asp.Net.

Ok now let me explain. I have used page level connections throughout my site. I know its bad programming practice but at that time i was facing problems using include files for asp and also was short in time so have to use them in order for less consumption of time. Now the website is complete and I want to now make universal connection for whole website. And also let me tell you that I haven't used VS STudio for the development and so almost no page has codebehind.

- I know that web.config is used for ASP.Net, will it work for Classic ASP also?

Quick help needed... so issuing out 500 points for the first best solution provider.

Thanks,

Khurram.
0
Comment
Question by:khurram007
  • 3
  • 3
6 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 500 total points
ID: 12247029
Hi,

read this short article, it will give you the answer
http://www.c-sharpcorner.com/Code/2003/June/Web.ConfigInASPNet.asp

Regards,
B..M
0
 
LVL 2

Author Comment

by:khurram007
ID: 12247049
Ok...

Very nice article... exactly what I need to know... but am still confused about using web.config with ASP. Can you explain that coding sample for it?

Also can I still use Application variable or include files for ASP pages within the website?

Thanks,
Khurram.
0
 
LVL 28

Expert Comment

by:mmarinov
ID: 12247057
yes you can still use application variables
as for the example - it's just creates an object for reading xml file what exactly web.config is

B..M
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Author Comment

by:khurram007
ID: 12247100
Very nice...

The last part of question...

We used application variable to be defined in global.asa file. I know we can define them as following also.

Application("xyz") = xyz

But can you provide me an idea if I have to use the above method, what would be the best place to declare them?

Thanks,
Khurram.
0
 
LVL 28

Expert Comment

by:mmarinov
ID: 12247167
khurram007,

this is totally new question
for the rules in EE you have to ask a new question
also if you post a new question when EE members search they will be provided with a correct results

B..M
0
 
LVL 2

Author Comment

by:khurram007
ID: 12247228
ok no problem...
am posting it as another question...

hope to see u there...

points issued..

Khurram.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now