Solved

Reading XML data into a TextBox asp control

Posted on 2004-03-25
3
608 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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 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