Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Reading XML data into a TextBox asp control

Posted on 2004-03-25
3
Medium Priority
?
612 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 80 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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

715 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