Help in getting user's local machine drives in asp.net
When i use the code below
foreach (DriveInfo drive in DriveInfo.GetDrives())
{ Console.WriteLine(drive.Name); }
after deploying in server it get servers local drives
Correct. ASP.Net code is meant to run on servers and not on client machines. With ASP.Net you cannot access client machine's drives and system
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.