954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Reading content of an xml file to asp.net

Hi,

I have a problem

I want to save the values in user controls(textboxes) to an XML file(If not to text file)
I want this to be done when client clicks on save data button


I want to read the values in XML file(If not to text file) to user controls(textboxes)
I want this to be done when client clicks on load data button

Can i do this with filedialog control(I checked but didnt find filedialog controls for webforms)?

Or is there any other options?

Please help
Thanks in advance

jkdil33
Newbie Poster
19 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

hi

You should use "asp:FileUpload" control
in asp.net 2.0 or ordinary input control with type file in asp.net 1.x insted of filedialog control

Regards
razool

razool
Newbie Poster
16 posts since Mar 2008
Reputation Points: 10
Solved Threads: 2
 

HI,

use xmldocument object to load the xml file, then traverse into the the xmlnode and read the element value

Regards
razool

razool
Newbie Poster
16 posts since Mar 2008
Reputation Points: 10
Solved Threads: 2
 

Hi,
I am not familiar with xml coding.
Can you provide me a small code to show how we can upload the xml file and read the file content to asp.net controls

thanks in advance

jkdil33
Newbie Poster
19 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You