DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   Reading content of an xml file to asp.net (http://www.daniweb.com/forums/thread115299.html)

jkdil33 Mar 23rd, 2008 3:58 am
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

razool Mar 23rd, 2008 10:59 am
Re: Reading content of an xml file to asp.net
 
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 Mar 23rd, 2008 11:05 am
Re: Reading content of an xml file to asp.net
 
HI,

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

Regards
razool

jkdil33 Mar 23rd, 2008 12:07 pm
Re: Reading content of an xml file to asp.net
 
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


All times are GMT -4. The time now is 5:32 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC