473,698 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent : Displaying and managing data retreived with readxml


Hello,

I am using readxml to retrieve data from an xml file to a dataset. m
xml file has hierarchical data (2 levels) so the dataset will contain
tables.
My question : I need to display this data like this :
- A left menu witch will display the level 1 of my dataset dat
(table0) : parents

- A body witch will display the level 2 of my dataset data (table1
: childs

- and when the user click on any option of the menu, the body wil
refresh to display only the values of the selected parent.
Thanks for any help

--
kamkoumPosted from http://www.pcreview.co.uk/ newsgroup acces

Nov 21 '05 #1
1 1121
you can make a relationship in your dataset between the parent table and the
child table by adding a new relationship to your dataset and defining the
parent and foreign keys.
then drag a list box into your form define the appropriate column of the
parent table as the datasource of the list box.
then add necessary amount of textboxes to your form and define the
datasource for every text box this way:
select parent table and select relation ship you created recently then
select appropriate column for every text box.
now every thing is done.
add new data to your dataset.
when user selects a member from list box the corresponding details will be
shown on text boxes.
you can call the readxml method passing the source file address to reload
data to dataset.
and alternatively calling writexml to save your data.
i will wrote an article with an example project on the codeproject.com that
demonstrates this problem for you.
the address is:
http://www.codeproject.com/Purgatory/XML_files.asp
check this program if you had further questions tell me.

"kamkoum" <kamkoum.1qfjky @> wrote in message
news:KO******** ************@gi ganews.com...

Hello,

I am using readxml to retrieve data from an xml file to a dataset. my
xml file has hierarchical data (2 levels) so the dataset will contain 2
tables.
My question : I need to display this data like this :
- A left menu witch will display the level 1 of my dataset data
(table0) : parents

- A body witch will display the level 2 of my dataset data (table1)
: childs

- and when the user click on any option of the menu, the body will
refresh to display only the values of the selected parent.
Thanks for any help.
--
kamkoumPosted from http://www.pcreview.co.uk/ newsgroup access

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8183
by: john | last post by:
I am trying to create an xml page on the fly using asp.net with vb. I am currently reading data from my database into a dataset and then using the xmlwriter() to output it to the clients screen. But.............. i want to be able to edit the content which comes out, i have to add some exta nodes which are static in between the database records. So i have created a loop which reads through the database and outputs the records. however...
1
1345
by: Yama | last post by:
Hi, I am writing a windows form that will query the database. string query = "SELECT TOP 2 * FROM Northwind.dbo.Customers" ; DBQuery Q = new DBQuery() ; bool result = dbCommander.RunQuery(query, true, ref Q) ; if(result) {
3
291
by: Jay | last post by:
I have an asp.net application that needs to fill a series of checkboxes with usernames from a particular group in Active Directory. Could someone please point me in the right direction in regards to a snippet of code or a link to where I might info on this? I've checked msdn and can find nothing definate. Thanks in advance, Jay
1
6790
by: Luis Esteban Valencia | last post by:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0117: 'System.Data.DataTable' does not contain a definition for 'WriteXml' Source Error:
9
1972
by: Shapper | last post by:
Hello, I created a dataset from a XML file. One of the dataset fields is . In an ASP:Repeater I am displaying the field. <%# DataBinder.Eval(Container.DataItem, "pubDate", "{0:f}") %> The date displayed has the following format, the same as in the XML file:
3
2269
by: P K | last post by:
Hello, I have a dataset which is already loaded with data in one table. so dataset.tables("data") exists and has data. Now, I have to add another table to the dataset. The source for this table is a XMLDoc. So I have the XML in a XMLDoc and I need to create a table in the dataset which would read xml from the XMLDoc . So in essence I need something like
3
3125
by: William LaMartin | last post by:
I have a gridview (with no properties set) on an aspx page which I populate from an XML file with the code below. The data in the XML file looks like this <description>National Trust for Historic Preservation</description> <URL>http://www.nthp.org/</URL> <category>Architecture</category> Can anyone tell me why the other two columns are displayed, but the
4
1247
by: slinky | last post by:
I've tried this week everything I can think of to get this code to work , can any kind soul take a look at my code and my what should be a simple task and help me out. I've looked in books, websites, and can't find a solution... thanks! I have an aspx for with a textbox and a button. The goal is to simply have the user type a message, hit the button and it should append to the XML file. I can open the aspx in the browser with no problem,...
2
1762
by: Just Me | last post by:
Hi, Im playing with this concept at the moment and was hoping to design an image retreival system which would allow me to place images into the web page " Where I want them", but draw them from the SQL Database. I know how to get the image from the sql server, and I know one way of writing the image to the page using BinaryWrite method of the reponse object.
0
8680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.