Opening directory remotely C# ASP.NET -


i able open directory on computer locally when deployed website godaddy, can't open. assuming sort of security control. here following actions made:

  • set trust level full in web.config
  • set security full control in c:\ directory

here following code open folder created in directory:

    protected void btnopenfolder_click(object sender, eventargs e)     {         //path customer's folder         string folderpath = @"c:\" + customerid.tostring().padleft(4, '0') + " - " + lblname.text;          if (system.io.directory.exists(folderpath))         {             //opens customer's folder             system.diagnostics.process.start(folderpath);         }         else         {             response.write("<script>alert('must have dropbox directory in order open customer folder.');</script>");         }     } 

any suggestions great. in advance!


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -