Thursday, May 22, 2008

Could not show files even though uploaded :
check that the folder is an application root in IIS !!

When changes not talking effect be sure to press the refresh button on the browser AND press F5 !!!


Database Connection Strings
cs = string.Format(cs, Server.MapPath("\_database\ASPNETDB.mdb"));
The server.mappath function returns a full physical path e:webdevttcom001htdocsetc to the database with the relative path provided

For ASPdatasource control, the path will be :
DataFile="/_database/ASPNetDB.mdb"

Another way is :
string d = System.Web.HttpContext.Current.Server.MapPath("/_database/ASPnetDB.mdb");

The location of the page that calls the path is irrelevant, since we are pathing from the root /

No comments: