If you are using DataSet1.ReadXml( "dataset.xml" ), it's going to read in 4 seperate tables.
If you take out the Parent Employees & Sites, and just have the instances of the Employees and Sites, it will read in 2 tables, Employee (with 2 records) and Site (1 record).
From there, you can set...
Hi SiJP
A couple of things (you probably know this but I'll mention it anyways)...
1.)The XML you posted is incorrect. You are missing the '/' on the closing Employees tag.
2.) Assuming you have read in the Xml so there are 2 tables in the dataset (Employees and Sites), you can adjust the...
Hey Henpat,
When you rename your module, you need to go into you project properties and change your startup object to reflect the name of your new module.
To do this, right click your project in your solution explorer and click properties. Change the startup object to the name of the module...
I learn something new everytime I come on here...
I always do it this way, seems a little less eloquent than regular expressions mind you
// using LastIndexOf
sFileName = arrFilename[0].Substring((arrFilename[0].LastIndexOf( "\\" ) ) + 1 );
I haven't used the Path class, but that seems like a...
Hi There,
It's really late, so I'm not sure if this is going to work out of the box. I can't remember off the top of my head if the operators work on the Timespan objects, but try this out. You may have to use the Compare methods of the Timespans to test the values, but this should be along the...
Hi Stueyh,
The first thing that I would check is to make sure that impersonated account has read/write permissions to the directory that the Access DB is located. The Write permission is key because of the ldb file that Access creates.
HTH,
Steen Bray...
Hey rahmanjan,
Looping through a dataset is rather straightforward using the foreach structure.
Here is a quick example of how to set your controls with a foreach loop.
// assuming all objects are properly filled
foreach( DataRow r in ds.Tables[0].Rows )
{
label1.Text =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.