Solved

Web.config & ASP?

Posted on 2004-10-07
6
955 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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