Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Override access to conn string in web.config
Message
 
À
02/08/2007 10:22:32
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01245016
Message ID:
01246637
Vues:
27
Tim,

>Since with ASP.net there is a App_Data directory designed in, are you planning any way to use data in this directory within the web.config file? It appears one needs to use Server.MapPath() to find it in the connection string, and I don't know how to do this in an xml file.

You can use the "|DataDirectory|" stringn in the web.config file to specify your database is located in the App_Data directory. Here is more information on how to use this.

http://msdn2.microsoft.com/en-us/library/hktw939c.aspx

Best 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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform