Forums
This topic is locked
.NET connection to brinkster
Posted 27 Aug 2002 15:54:54
1
has voted
27 Aug 2002 15:54:54 andre maas posted:
Does someone know how to connect to a accessdatabase at brinkster in .NET.I've change te connectrionstring in the web.config in a server.mappath but this is what I get.
-----------------------------------------------
The '&' character, hexadecimal value 0x26, cannot begin a name. Line 4, position 90.
----------------------------------------------
This is the line in the standard web.config
----------------------------------------------
add key="MM_CONNECTION_STRING_connDataGrid" value="Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.MapPath("\membername\db\db.mdb" & ";" & "Persist Security Info=False"/>
----------------------------------------------
Can someone help me please.
Masor<font face='Tahoma'></font id='Tahoma'><font size=2></font id=size2>
Replies
Replied 28 Aug 2002 12:00:42
28 Aug 2002 12:00:42 andre maas replied:
Got it myself:
--------------------------------------------------------------------------
configuration>
<appSettings>
add key="MM_CONNECTION_HANDLER_connDataGrid" value="default_oledb.htm" />
add key="MM_CONNECTION_STRING_connDataGrid" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source= Server.MapPath(/username/db/db.mdb)"/>
add key="MM_CONNECTION_DATABASETYPE_connDataGrid" value="OleDb" />
add key="MM_CONNECTION_SCHEMA_connDataGrid" value="" />
add key="MM_CONNECTION_CATALOG_connDataGrid" value="" />
</appSettings>
</configuration>
----------------------------------------------------------
--------------------------------------------------------------------------
configuration>
<appSettings>
add key="MM_CONNECTION_HANDLER_connDataGrid" value="default_oledb.htm" />
add key="MM_CONNECTION_STRING_connDataGrid" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source= Server.MapPath(/username/db/db.mdb)"/>
add key="MM_CONNECTION_DATABASETYPE_connDataGrid" value="OleDb" />
add key="MM_CONNECTION_SCHEMA_connDataGrid" value="" />
add key="MM_CONNECTION_CATALOG_connDataGrid" value="" />
</appSettings>
</configuration>
----------------------------------------------------------