D
Dave Nichols
I'm working on an ASP.NET project that uses an Access Database. I
created a component with an OleDbDataAdapter to handle connectivity with
the db and it works great on my dev box. When I upload to the server it
fails because the path to the db is hardwired. I tried to use
Server.MapPath and Server is not known on the .cs page. On my .aspx
pages when creating a new connection MapPath works fine. I'm working
with C# and would really like to take advantage of the component as a
time saver. Does anyone know how I can implement MapPath for the source
in the connection string for the DataAdapter connection?
Dave Nichols
created a component with an OleDbDataAdapter to handle connectivity with
the db and it works great on my dev box. When I upload to the server it
fails because the path to the db is hardwired. I tried to use
Server.MapPath and Server is not known on the .cs page. On my .aspx
pages when creating a new connection MapPath works fine. I'm working
with C# and would really like to take advantage of the component as a
time saver. Does anyone know how I can implement MapPath for the source
in the connection string for the DataAdapter connection?
Dave Nichols