web client doesn't know the "server.mappath", need help.

web client doesn't know the "server.mappath", need help.

Post by Eric » Tue, 06 Aug 2002 16:49:08



Dear All,

 Please help me as below code.

Sub Print_ReportAAA()
dim s as string="192.168.1.18\rp1.pdf"  '192.168.1.18 is my server ip
address
response.redirect(s)
end sub

Sub Print_ReportBBB()
dim s as string=Server.MapPath("./") + "rp1.pdf"
response.redirect(s)
end sub

In my asp.net page, Print_reportAAA run fine, but Print_ReportBBB didn't
run, web client display this error: can't find the page.

who can tell the truth, why print_reportBBB didn't work, thanks.