View Single Post
Old 07-01-2007, 1:22 PM   #2
trevor oakley
 
trevor oakley's Avatar
 
Posts: n/a
My Photos: ()

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default ASP.NET OleDbConnection - Databases

Dan, I tried this early on, but I do not understand why it returns my hard
disk directory when I am using a Web server. I expected something referring
to the Web server.

Also, my book only uses examples referring to hard disk directories.

Trevor

"Dan" <nospam@nospam.com> wrote in message
news:rxCJa.8739$Kg7.6955@nwrdny01.gnilink.net...
> > I am trying
> >
> > dbStr = Server.MapPath("../TestDatabase.mdb")
> > Response.write("db string " & dbStr)

>
> do a response.write(server.mappath("test.asp")) then that will show you

the
> full path. Use that path to find the path to your db. For example if it
> returns something like "d:/users/blah/html/test.asp" then you could change
> it to "d:/users/database/db.mdb" and set your db string to this directly.
>
>
>
>



  Reply With Quote