Solved

Web.config & ASP?

Posted on 2004-10-07
6
952 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

14 Experts available now in Live!

Get 1:1 Help Now