Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implement the security of my web application
Message
 
To
20/09/2004 19:36:20
Roberth Ramos
America Movil Sac
Lima, Peru
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00944349
Message ID:
00944387
Views:
12
Roberth,

>I'm new in the MM .NET framework and I would like to implement the security of my web application using a custom .config file. my connection string is located in my .config file.

Are you asking about how to read connection string information from a custom .config file? If you just want to retrieve connection strings from this file and nothing else, you can do the following:

1. Create a subclass of mmDatabaseManager

2. Override the GetConnectionString() method and use the mmAppConfiguration class to read from your custom .config file (see the MM .NET Help topic "Application Setting Classes" for details.

3. In your web application's Factory class, override the CreateDatabaseManager method and instantiate your custom database manager class. See the bottom of the MM .NET Help topic "The Factory Object" for instructions on how to do this.

If you want to use your own .config file for everything, you can do the following:

1. Create a subclass of the mmAppSettingsManager class

2. Override the methods that retrieve settings from the app.config or web.config file and use the mmAppConfiguration class to retrieve settings from your custon config file instead.

3. In your web application's Factory class, override the CreateAppSettingsManager() method and instantiate your custom application settings class.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform