Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
hello all
how can read from text file in client machine and check if it Match certain value
the checking happen in code behind asp.net using c#
Posted

1 solution

You cannot read a file from client machine as the browsers don't have access to file system.

So another way could be that ask user to upload that text file and save it on webserver. From there you can easily read it.
 
Share this answer
 
Comments
ahmed hussein khazal 16-Sep-13 2:39am    
can i read a file by using java script and pass the text to the code behind asp.net ?
Brij 16-Sep-13 2:47am    
No! from Javascript you cannot access file system

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900