Link to home
Start Free TrialLog in
Avatar of 1jaws
1jawsFlag for United States of America

asked on

getting files on clientside

string folder = Server.MapPath("/Attachments/" + lblattachment.Text.ToString());
                        string[] filePaths = Directory.GetFiles(folder);
                        string result = Path.GetFileName(filePaths[0]);
                        System.IO.FileInfo targetFileInfo = new System.IO.FileInfo(filePaths[0]);

How can I do that same thing on client side with javascript? to get the file...just like above code...
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1jaws

ASKER

hmm how can I do that than?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1jaws

ASKER

:) you are soo right, didnt think about this part
Avatar of 1jaws

ASKER

thanks guys