R
refer_to_website
How can I use the Server.MapPath(".") value inside of the web.config?
For example, when I add the following just before the
</configuration>, and run via CTRL-F5, I receive error
The '&' character, hexadecimal value 0x26, cannot begin with a name.
<appSettings>
<add key="ConnectionString"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath(".") & "DATABASE\test.mdb;" />
</appSettings>
For example, when I add the following just before the
</configuration>, and run via CTRL-F5, I receive error
The '&' character, hexadecimal value 0x26, cannot begin with a name.
<appSettings>
<add key="ConnectionString"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath(".") & "DATABASE\test.mdb;" />
</appSettings>