Access files from remote machine
-
Am trying to access a file from remote machine(IIS) Response.Redirect(~/SalarySheets/" + OffID + ".xls"; ) will work only when the SalarySheets also are locally present on a folder in my app. But what I have to do is to pick the xls from remote IIS. I should be able to access file from remote path @"\\prod-sal\Salary\SO-WEBDIST-XLS\" + OffID + ".xls"; I cant use Response.Redirect(@"\\prod-sal\Salary\SO-WEBDIST-XLS\" + OffID + ".xls") Can you suggest something else please?
------------------------------------------------------------ "The only true wisdom is in knowing you know nothing." --Socrates
-
Am trying to access a file from remote machine(IIS) Response.Redirect(~/SalarySheets/" + OffID + ".xls"; ) will work only when the SalarySheets also are locally present on a folder in my app. But what I have to do is to pick the xls from remote IIS. I should be able to access file from remote path @"\\prod-sal\Salary\SO-WEBDIST-XLS\" + OffID + ".xls"; I cant use Response.Redirect(@"\\prod-sal\Salary\SO-WEBDIST-XLS\" + OffID + ".xls") Can you suggest something else please?
------------------------------------------------------------ "The only true wisdom is in knowing you know nothing." --Socrates
Tried Page.ResolveUrl but the remote machine has a user id and pwd. I should supply credentials on my .net page and fetch the ms excel data.
------------------------------------------------------------ "The only true wisdom is in knowing you know nothing." --Socrates