Solved

Reading XML data into a TextBox asp control

Posted on 2004-03-25
3
602 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now