473,738 Members | 1,949 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 1123
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
8187
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
1346
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
6795
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
1975
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
2274
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
3127
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
1248
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
1765
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
8787
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
9473
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
9334
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...
1
9259
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6750
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4569
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2193
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.