Solved

Web.config & ASP?

Posted on 2004-10-07
6
944 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

12 Experts available now in Live!

Get 1:1 Help Now