Reading content of an xml file to asp.net

Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Feb 2008
Posts: 19
Reputation: jkdil33 is an unknown quantity at this point 
Solved Threads: 0
jkdil33 jkdil33 is offline Offline
Newbie Poster

Reading content of an xml file to asp.net

 
0
  #1
Mar 23rd, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 16
Reputation: razool is an unknown quantity at this point 
Solved Threads: 2
razool's Avatar
razool razool is offline Offline
Newbie Poster

Re: Reading content of an xml file to asp.net

 
0
  #2
Mar 23rd, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 16
Reputation: razool is an unknown quantity at this point 
Solved Threads: 2
razool's Avatar
razool razool is offline Offline
Newbie Poster

Re: Reading content of an xml file to asp.net

 
0
  #3
Mar 23rd, 2008
HI,

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

Regards
razool
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 19
Reputation: jkdil33 is an unknown quantity at this point 
Solved Threads: 0
jkdil33 jkdil33 is offline Offline
Newbie Poster

Re: Reading content of an xml file to asp.net

 
0
  #4
Mar 23rd, 2008
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC