|
-
connectionString in web.Config
Hello,
I'm trying to use Server.MapPath("xxx/xxx.mdb") in my web.Config file.
I used:
<appSettings>
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath + "\xxx\xxx.mdb" />
</appSettings>
... and I got a Configuration Error: The '+' character, hexadecimal value 0x2B, cannot begin with a name. Line 4, position 85.
If I Dim the full statement in a Sub/Function, it works - but I'm trying to get more use out of my web.Config file.
Thanks,
~ Ben
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks