asp.net, c#, .cs

Webboy2008
Webboy2008 used Ask the Experts™
on
1. I have at least five .cs in app_codes, and they are working fine. Now I want to add MasterCommon.cs and add some default value there like
MasterWebsiteName="xxadfad.com"

And I want all five .cs is able to read, for example, MasterWebsiteName, how can I do that?

2. Now all .cs files are in app_codes, and it works fine. However, if I want to move all five .cs files to a folder in the root directory, how can I add the reference there?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
Same Question?

Author

Commented:
I would like to have sample codes to see how it works if possible. Thanks
Chief Technology Ninja
Distinguished Expert 2018
Commented:
Upload your project if it doesn't contain any sensitive information.

Author

Commented:
Sorry. it has too much information that.
Just assume we have several .cs file as library. most of them using sql connection from web.config

All I want is to create name for sql server connection. and allow those .cs file to share the name...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial