Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralC# equivelant of Eval() Pin
JMichael246818-May-05 4:55
JMichael246818-May-05 4:55 
GeneralRe: C# equivelant of Eval() Pin
Marc Clifton18-May-05 5:47
mvaMarc Clifton18-May-05 5:47 
GeneralProblem in Uploading Files Pin
Anand for every one18-May-05 4:54
Anand for every one18-May-05 4:54 
Questionwhat does the keyword "static" mean? Pin
Sasuko18-May-05 4:43
Sasuko18-May-05 4:43 
AnswerRe: what does the keyword "static" mean? Pin
Tom Larsen18-May-05 4:53
Tom Larsen18-May-05 4:53 
AnswerRe: what does the keyword "static" mean? Pin
Peter Vertes18-May-05 5:09
Peter Vertes18-May-05 5:09 
GeneralRe: what does the keyword "static" mean? Pin
leppie18-May-05 9:34
leppie18-May-05 9:34 
Generalupdate particular attribute's value from xml file Pin
ksanju100018-May-05 4:23
ksanju100018-May-05 4:23 
Hi
my program updates only farm name I want to search through loop farm name and it should
update address,
user and password from the existing file name

XmlDocument xmldoc = new XmlDocument();
xmldoc.Load("c:/farm-config.xml");
XmlNode farm=xmldoc.SelectSingleNode("/root/farm-config/farm/@name");
MessageBox.Show(farm.InnerText);
farm.InnerText="devxcv1";
MessageBox.Show(farm.InnerXml);
xmldoc.Save("c:/farm-config.xml");

My XMl strucutrue is as given below
<?xml version="1.0" encoding="UTF-8"?>
<root>
<farm-config>
<farm name="sanjay">
<connection address="127.0.0.1" user="dog" password="cat">
<lastjob>Copy-All</lastjob>
<lastconnection startdate="2005-05-10" starttime="12:43:23" enddate="2005-05-10" endtime="12:58:32" />
<state>1</state>
</connection>
</farm>
<farm name="ram">
<connection address="localhost" user="root" selectedConnection="1" password="daask">
<lastJob>Copy-All</lastJob>
<lastConnection startdate="2005-05-10" starttime="12:43:23" enddate="2005-05-10" endtime="12:58:32" />
<state>1</state>
</connection>

</farm>
</farm-config>
</root>

--- supoose i want to find thr loop ram and i want o change address,user and password attribues value thr loop
if i change it changes the upper ones farm name=sanjay 's address,user and password

regards
sanjeev
QuestionArraylist bound to datagrid problem when arraylist is part of another class? Pin
spAAwn18-May-05 4:23
spAAwn18-May-05 4:23 
Generalreal challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 4:15
jinzhecheng18-May-05 4:15 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 4:21
mvaMarc Clifton18-May-05 4:21 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 4:41
jinzhecheng18-May-05 4:41 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Tom Larsen18-May-05 4:48
Tom Larsen18-May-05 4:48 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 5:04
jinzhecheng18-May-05 5:04 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 5:41
mvaMarc Clifton18-May-05 5:41 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
S. Senthil Kumar18-May-05 5:48
S. Senthil Kumar18-May-05 5:48 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 6:21
jinzhecheng18-May-05 6:21 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 6:53
mvaMarc Clifton18-May-05 6:53 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
18-May-05 6:59
suss18-May-05 6:59 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
DavidNohejl18-May-05 6:55
DavidNohejl18-May-05 6:55 
Generaldeleting particular node element from xml file through LOOP Pin
ksanju100018-May-05 4:13
ksanju100018-May-05 4:13 
QuestionAVISaveOptions Invisible Font? Pin
Member 190300618-May-05 4:07
Member 190300618-May-05 4:07 
GeneralSelecting row Index of datagrid Pin
Ashishhere18-May-05 3:34
Ashishhere18-May-05 3:34 
GeneralRe: Selecting row Index of datagrid Pin
Marc Clifton18-May-05 4:17
mvaMarc Clifton18-May-05 4:17 
GeneralComboBox - remove focus Pin
NortonC18-May-05 2:05
NortonC18-May-05 2:05 

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.