Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
QuestionMessage Removed Pin
15-Apr-10 1:56
kulkarni.ajay15-Apr-10 1:56 
AnswerRe: How to solve->Could not connect to remote machine error Pin
Calla15-Apr-10 3:41
Calla15-Apr-10 3:41 
GeneralRe: How to solve->Could not connect to remote machine error Pin
kulkarni.ajay15-Apr-10 3:57
kulkarni.ajay15-Apr-10 3:57 
GeneralRe: How to solve->Could not connect to remote machine error Pin
OriginalGriff15-Apr-10 4:17
mveOriginalGriff15-Apr-10 4:17 
JokeRe: How to solve->Could not connect to remote machine error Pin
Calla15-Apr-10 21:27
Calla15-Apr-10 21:27 
GeneralRe: How to solve->Could not connect to remote machine error Pin
Luc Pattyn6-May-10 2:07
sitebuilderLuc Pattyn6-May-10 2:07 
AnswerRe: How to solve->Could not connect to remote machine error Pin
Rod Kemp15-Apr-10 18:39
Rod Kemp15-Apr-10 18:39 
QuestionData relations and data set Pin
eli1502197915-Apr-10 0:53
eli1502197915-Apr-10 0:53 
Hi,

I'm facing a problem to fetch data rows from a child table using data set and xml file ,
using VS2005 and created the data set and tables using the wizard.
Please consider the following scenario:

TABLE1 - InstalledProgramInfo
- Name [string , Key]
- UninstallSequenceNumber [int]

TABLE2 - AdditionalBackupInfo
- Name [string , Key]
- Source [string , Key]
- Destination [string , Key]

Relation - InstalledProgramInfo_AdditionalBackupInfo (Name -> Name) , Relation type (one to many).

The XML file content is as follow:
<InstalledProgramInfo>
     <Name>AAA<</Name>
     <UninstallSequenceNumber>0</UninstallSequenceNumber>
     <AdditionalBackupInfo>
           <Name>AAA</Name>
           <Source>C:\SourceTest</Source>
           <Destination>C:\DestTest</Destination>                     
     </AdditionalBackupInfo>
     <AdditionalBackupInfo>
           <Name>AAA</Name>
           <Source>C:\SourceTest1</Source>
           <Destination>C:\DestTest1</Destination>
     </AdditionalBackupInfo>   
</InstalledProgramInfo>



The code is as follow (The name of the data set is AppConfigurationDataSet):

AppConfigurationDataSet DataSet = new AppConfigurationDataSet();

DataSet.ReadXml("AppConfiguration.xml");

InstalledProgramInfoDataTable Table = (InstalledProgramInfoDataTable)DataSet.Tables["InstalledProgramInfo"];

foreach(InstalledProgramInfoDataRow CurrentRow in Table.Rows)
{
     foreach(DataRow NestedRow in CurrentRow.GetChildRows("InstalledProgramInfo_AdditionalBackupInfo"))
     {
          DoSomething(); // I can't reach this code(the relation exist in CurrentRow!!!)
     }
}


Anyone?

With best regards,
Eli
QuestionLocal database path in csharp Pin
Tunisien8615-Apr-10 0:13
Tunisien8615-Apr-10 0:13 
AnswerRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 0:20
Michel Godfroid15-Apr-10 0:20 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 0:25
Tunisien8615-Apr-10 0:25 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 0:41
Michel Godfroid15-Apr-10 0:41 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 3:49
Tunisien8615-Apr-10 3:49 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 4:16
Michel Godfroid15-Apr-10 4:16 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 4:47
Tunisien8615-Apr-10 4:47 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 5:24
Michel Godfroid15-Apr-10 5:24 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 6:23
Tunisien8615-Apr-10 6:23 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 6:50
Michel Godfroid15-Apr-10 6:50 
GeneralRe: Local database path in csharp Pin
Tunisien8616-Apr-10 0:26
Tunisien8616-Apr-10 0:26 
GeneralRe: Local database path in csharp Pin
Michel Godfroid16-Apr-10 0:50
Michel Godfroid16-Apr-10 0:50 
GeneralRe: Local database path in csharp Pin
Tunisien8616-Apr-10 0:54
Tunisien8616-Apr-10 0:54 
AnswerRe: Local database path in csharp Pin
Tunisien8619-Apr-10 5:15
Tunisien8619-Apr-10 5:15 
Questionconvert vb.net to c# Pin
toto_201014-Apr-10 23:24
toto_201014-Apr-10 23:24 
AnswerRe: convert vb.net to c# Pin
OriginalGriff14-Apr-10 23:30
mveOriginalGriff14-Apr-10 23:30 
GeneralRe: convert vb.net to c# Pin
toto_201014-Apr-10 23:39
toto_201014-Apr-10 23:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.