Link to home
Start Free TrialLog in
Avatar of Webboy2008
Webboy2008

asked on

c#, .cs in app_codes

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
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

1. Mark as pubic or internal. public string MasterWebsiteName
2.No need to change anything. I would recommend to leave tem in App_Code as such.
Avatar of Webboy2008
Webboy2008

ASKER

The reason I want to leave App_Code because I have to let the master codes sharing with other website.

Can you tell me how to do  the item 1 that you mentioned?
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial