finding database with server.mappath
Hope you can help me.
I use the below code in ASP.NET to set my connectionstring to an ACCESS database.
MyCon = New OleDb.OleDbConnection()
MyCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("MyDbase\Crest_Comp.mdb;")
I'll get the blue line under server, what's wrong in this picture?
Do I need some extra imports other then Imports System.Data.OleDb.OleDbConnection?
Thank you for trying.