In our ASP.NET application, we need to programmatically access (read/Write) a shared location that is not on our domain. I am currently using WNetUseConnection as suggested here.
But it looks like that I need to call this win32 API every time I have to read or write to this shared location.
Is there something that I'm missing or anything better you can suggest?