Click here to Skip to main content
15,924,402 members
Home / Discussions / C#
   

C#

 
Question.net 2.0 generic type collection - loop Pin
arkiboys7-Mar-07 2:47
arkiboys7-Mar-07 2:47 
AnswerRe: .net 2.0 generic type collection - loop Pin
User 66587-Mar-07 3:02
User 66587-Mar-07 3:02 
GeneralRe: .net 2.0 generic type collection - loop Pin
Dario Solera7-Mar-07 5:03
Dario Solera7-Mar-07 5:03 
GeneralRe: .net 2.0 generic type collection - loop Pin
User 66587-Mar-07 5:27
User 66587-Mar-07 5:27 
GeneralWith .Net 2.0 not so much Pin
Ennis Ray Lynch, Jr.7-Mar-07 6:01
Ennis Ray Lynch, Jr.7-Mar-07 6:01 
Questionwhat is this error about? Pin
pashitech7-Mar-07 2:31
pashitech7-Mar-07 2:31 
AnswerRe: what is this error about? Pin
Pete O'Hanlon7-Mar-07 2:48
mvePete O'Hanlon7-Mar-07 2:48 
GeneralRe: what is this error about? Pin
pashitech7-Mar-07 2:53
pashitech7-Mar-07 2:53 
Hi i sorry, if any big blunders
i am very new to this kind of programming plese help me

actually i have collected some values from xml file and i need to disply them
so
i wrote

public string[] GetLaserProp(string laserid, string parentnode1, string childnode1)
{
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(@"E:\Dropdown_XML\laserProp.xml");
string[] str = new string[5];

// XmlNodeList xmlnodelst = xmldoc.GetElementsByTagName("laser");
XmlNodeList xmlnodelst = xmldoc.GetElementsByTagName(parentnode1);
//return xmlnodelst;
//foreach (XmlNode.parentnode in xmlnodelst)
foreach (XmlNode parentnode in xmlnodelst)
{
//MessageBox.Show(parentnode.Attributes.Item(0).Value);
if (parentnode.Attributes.Item(0).Value == laserid)
{
xmldoc.LoadXml(parentnode.InnerXml);
//XmlNodeList xmlchildnodelst=xmldoc.GetElementsByTagName("gauge");
XmlNodeList xmlchildnodelst = xmldoc.GetElementsByTagName(childnode1);
// cmbChildLaser.Items.Clear();
foreach (XmlNode childnode in xmlchildnodelst)
{
for (int i = 0; i < childnode.ChildNodes.Count; i++)
{

//cmbChildLaser.Items.Add(childnode.ChildNodes.Item(i).Attributes.Item(0).Value);
for (int j = 0; j < childnode.ChildNodes.Item(i).Attributes.Count; j++)
{
// MessageBox.Show(
str[j]= childnode.ChildNodes.Item(i).Attributes.Item(j).Value;
//cmbChildLaser.Items.Add(xmlnodelst1.Item(ii).ChildNodes.Item(0).InnerText);
return str;
}
}
}
}

}
//return (Student []) students.ToArray();}
return str;




prashanth,
s/w Engineer,
Syfnosys.

GeneralRe: what is this error about? Pin
Colin Angus Mackay7-Mar-07 3:17
Colin Angus Mackay7-Mar-07 3:17 
GeneralRe: what is this error about? Pin
User 66587-Mar-07 3:27
User 66587-Mar-07 3:27 
GeneralRe: what is this error about? [modified] Pin
Pete O'Hanlon7-Mar-07 3:29
mvePete O'Hanlon7-Mar-07 3:29 
GeneralRe: what is this error about? Pin
Guffa7-Mar-07 3:58
Guffa7-Mar-07 3:58 
GeneralRe: what is this error about? Pin
Pete O'Hanlon7-Mar-07 4:05
mvePete O'Hanlon7-Mar-07 4:05 
QuestionMultiple opennings of same form at a time. Pin
Janu_M7-Mar-07 2:20
Janu_M7-Mar-07 2:20 
AnswerRe: Multiple opennings of same form at a time. Pin
Victor Boba7-Mar-07 3:02
Victor Boba7-Mar-07 3:02 
AnswerRe: Multiple opennings of same form at a time. Pin
RedRummy7-Mar-07 3:03
RedRummy7-Mar-07 3:03 
AnswerRe: Multiple opennings of same form at a time. [modified] Pin
Russell Jones7-Mar-07 5:48
Russell Jones7-Mar-07 5:48 
GeneralRe: Multiple opennings of same form at a time. Pin
Janu_M7-Mar-07 17:44
Janu_M7-Mar-07 17:44 
QuestionIs that possible to check ports are scanned Pin
F.E.L.I.X.7-Mar-07 2:10
F.E.L.I.X.7-Mar-07 2:10 
AnswerRe: Is that possible to check ports are scanned Pin
Ennis Ray Lynch, Jr.7-Mar-07 6:06
Ennis Ray Lynch, Jr.7-Mar-07 6:06 
QuestionDateTimePicker Pin
hadad7-Mar-07 1:53
hadad7-Mar-07 1:53 
AnswerRe: DateTimePicker Pin
PIEBALDconsult7-Mar-07 4:48
mvePIEBALDconsult7-Mar-07 4:48 
AnswerRe: DateTimePicker Pin
V.7-Mar-07 4:50
professionalV.7-Mar-07 4:50 
Questionhow to use multiple description coding in c# Pin
Member 38122567-Mar-07 1:09
Member 38122567-Mar-07 1:09 
AnswerRe: how to use multiple description coding in c# Pin
Colin Angus Mackay7-Mar-07 2:16
Colin Angus Mackay7-Mar-07 2:16 

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.