Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Reading XML data into a TextBox asp control

Posted on 2004-03-25
3
605 Views
Last Modified: 2008-02-07
Hi, wondering how I can read soem data from an XML file and put that into a TextBox asp control?
I have:
<asp:TextBox ID="box1" Runat="server" TextMode="MultiLine" Rows="15" Columns="80"/>

I have a xml file with something like:
<agreement>
<date>1/1/2004</date>
<content>blah blah blah</content>
</agreement>

So I just wnat to have a textbox with Blah blah blah and 1/1/2004 in it.  How can I bind the data to that textbox control from the xml file? thanks!!
0
Comment
Question by:regulatorz
3 Comments
 
LVL 6

Accepted Solution

by:
KarunSK earned 20 total points
ID: 10684242
Check this link:

http://experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20930704.html

You can use either an XMLDocument or XMLTextReader to accomplish this.

Karun.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question