connectionString in web.Config
I'm trying to use Server.MapPath("xxx/xxx.mdb") in my web.Config file.
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath + "\xxx\xxx.mdb" />
... 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.
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