Solved

Reading XML data into a TextBox asp control

Posted on 2004-03-25
3
607 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
[X]
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
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

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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