Saturday, March 24, 2012

MapPath Question

I do not have my database under C:\Inetpub\wwwroot\ but under a directory called 508asp. When I enter the hard coded path, c:\508asp\database\faqdata.mdb, it work fine.

When I tried to use MapPath, I get "Could not find file 'C:\WINNT\system32\Request.ApplicationPath(faqdata.mdb)'".

Is there a way to avoid the hard coding? I did setup the database as a Data Source (ODBC).

thanks
gradyI hope this will help you
http://authors.aspalliance.com/remas/ASP.NET/GreatFeatures/Tilde/

0 comments:

Post a Comment