server mappath (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


chadb -> server mappath (1/31/2008 9:31:12)

Can I change this line to give a network path instead of a folder with in the web? It a internet intranet site.

myDSN = "Driver={Microsoft Excel Driver (*.xls)}; DBQ=" & server.mappath("../fpdb\perfchart.xls")

Thanks
Chad




rdouglass -> RE: server mappath (1/31/2008 9:37:03)

quote:

myDSN = "Driver={Microsoft Excel Driver (*.xls)}; DBQ=" & server.mappath("../fpdb\perfchart.xls")


How 'bout:

myDSN = "Driver={Microsoft Excel Driver (*.xls)}; DBQ=C:\Inetpub\wwwroot\fpdb\perfchart.xls"

Or whatever the actual path is; you can 'hard code' it. That help any?




chadb -> RE: server mappath (1/31/2008 10:09:53)

Perfect once again. Thanks so much!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875