Click here to Skip to main content
15,906,097 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

In my webpage i have textbox and button controls when i click button control i need to get xml file from my harddisk(pc) and that file path should be display on the textbox.
how to do this instead of file dialog.

Regards,
Raghu.
Posted

1 solution

You don't need the file dialog - more correctly, the File Upload Control if you want to read the XML file located on the server. Just use the File class and read the XML .

If you intend to read XML file from the client machine, then you will have to upload the XML file to the server and then read it...There is no alternative to uploading and upload control
 
Share this answer
 

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