Hi.
This should be a walk in the park for almost anyone...
I'm a skilled win32 programmer, trying to learn asp.net 2.0
I've tried making a XML file parsing it to draw a GUI (web application)
I have a small example:
<?xml version="1.0" encoding="utf-8" ?>
<Persons>
<Person ID="ET40">
<FirstName>Ba rt-Jan</FirstName>
<LastName>Brouw er</LastName>
</Person>
<Person ID="ET50">
<FirstName>Mort en</FirstName>
<LastName>Jacob sen</LastName>
</Person>
</Persons>
I put a gridview on a form, new datasource, connect it to a xml file,
point to the example above and voila... BUT what I see is the Person
ID's... I wanna see more than this. I wanna see a record giving me the
ID, first and last name... How on EARTH can I do this?
I connected it to a tree view and then managed to view all the data,
but this is not how I want to read it.
What I WANT to do is this:
Parse the XML file with a datareader and draw my GUI according to what
I parse through.
(A list of images with filename, height and width)
Can anyone tell me how to do this?
And beginner code would be greatly appreciated!
Thanx in advance,
Fritjolf 1 1094
i don't know how gridview work since i never use those control but to get the
person's ID you can type in this xpath query /Persons/Person/@ID and that
should get you all the ID under persons/person.
"DelphiLove r" wrote:
Hi.
This should be a walk in the park for almost anyone...
I'm a skilled win32 programmer, trying to learn asp.net 2.0
I've tried making a XML file parsing it to draw a GUI (web application)
I have a small example:
<?xml version="1.0" encoding="utf-8" ?>
<Persons>
<Person ID="ET40">
<FirstName>Ba rt-Jan</FirstName>
<LastName>Brouw er</LastName>
</Person>
<Person ID="ET50">
<FirstName>Mort en</FirstName>
<LastName>Jacob sen</LastName>
</Person>
</Persons>
I put a gridview on a form, new datasource, connect it to a xml file,
point to the example above and voila... BUT what I see is the Person
ID's... I wanna see more than this. I wanna see a record giving me the
ID, first and last name... How on EARTH can I do this?
I connected it to a tree view and then managed to view all the data,
but this is not how I want to read it.
What I WANT to do is this:
Parse the XML file with a datareader and draw my GUI according to what
I parse through.
(A list of images with filename, height and width)
Can anyone tell me how to do this?
And beginner code would be greatly appreciated!
Thanx in advance,
Fritjolf
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Els |
last post by:
***newbie question***
Hi, I am trying to make my server (Apache) parse .html files
as .php.
I found this line of code:
ForceType application/x-httpd-php
placed it in an .htaccess file and uploaded it to the
directory I wanted it to work.
And it worked; my .html files are all parsed as .php.
|
by: Dave Kuhlman |
last post by:
Suppose that I have content that looks like what I've included at
the end of this message. Is there something in the standard
Python library that will help me parse it, break into the parts
separated by the boundary strings, extract headers from each
sub-part, etc?
Do I need to add something like the following to the beginning?
Content-Type: multipart/related;
type="multipart/alternative";
|
by: BStorm |
last post by:
I have a transaction log file where the DataSet table's Description column
is actually delimited into "subcolumns" based upon the transaction id. I
would like to parse these into separate fields for reporting purposes and am
wondering if anyone knows if this is easily accomplished using the .NET
version of Crystal Reports?
For example, the description column may be reporting on a dataentry error as
follows:
TXNCODE: 1010001
|
by: Ram Laxman |
last post by:
Hi all,
I have a text file which have data in CSV format.
"empno","phonenumber","wardnumber"
12345,2234353,1000202
12326,2243653,1000098
Iam a beginner of C/C++ programming.
I don't know how to tokenize the comma separated values.I used strtok
function reading line by line using fgets.but it gives some weird
behavior.It doesnot stripout the "" fully.Could any body have sample
code for the same so that it will be helfful for my...
|
by: Josh |
last post by:
I am writing a program where the user inputs currency in US dollars. I want
the program to only accept valid currency input, converting the string into
the proper type of variable (double?), and to make sure there are no illegal
characters entered so that it doesn't make an error. I basically want it to
strip out any characters that aren't numbers, in case the user enters
something like "$34.23".
So far, in my hours of research today I...
| |
by: floofy |
last post by:
Hi,
I am extremely new to programming and I'm taking a beginner's course right now. We were given a .cpp code to correct so that it will compile.
I've already fixed a couple errors but Dev-C++ still gives me "parse" in the compiler window on this specific line:
for int = 0; < howmany + i++;
I don't exactly want to post the entire code, but I'm not sure if that single line is sufficient...parse error is some sort of parenthesis...
|
by: AdrianH |
last post by:
Assumptions
I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C++ programming.
FYI
Although I have called this article “How to Parse a File in C++”, we are actually mostly lexing a file which is the breaking down of a stream in to its component parts, disregarding the syntax that stream contains. Parsing is actually including the syntax in order to make...
|
by: AdrianH |
last post by:
Assumptions
I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C programming.
FYI
Although I have called this article “How to Parse a File in C++”, we are actually mostly lexing a file which is the breaking down of a stream in to its component parts, disregarding the syntax that stream contains. Parsing is actually including the syntax in order to make...
|
by: goldtech |
last post by:
SAX XML Parse Python error message
Hi,
My first attempt at SAX, but have an error message I need help with.
I cite the error message, code, and xml below.
Be grateful if anyone can tell me what the fix is.
Thanks.
|
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...
|
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...
| |
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |