Click here to Skip to main content
15,905,008 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i rename a file on ftp with .net1.1? Pin
andre_swnpl4-Apr-07 21:06
andre_swnpl4-Apr-07 21:06 
QuestionQuery. Pin
Nekshan4-Apr-07 19:52
Nekshan4-Apr-07 19:52 
AnswerRe: Query. Pin
andre_swnpl4-Apr-07 20:40
andre_swnpl4-Apr-07 20:40 
QuestionRegular Expression to remove single line comments Pin
irsh_is4-Apr-07 19:49
irsh_is4-Apr-07 19:49 
QuestionTo get the country names Pin
John.L.Ponratnam4-Apr-07 19:49
John.L.Ponratnam4-Apr-07 19:49 
AnswerRe: To get the country names Pin
Tamimi - Code4-Apr-07 20:38
Tamimi - Code4-Apr-07 20:38 
GeneralRe: To get the country names Pin
John.L.Ponratnam4-Apr-07 21:07
John.L.Ponratnam4-Apr-07 21:07 
GeneralRe: To get the country names Pin
Tamimi - Code4-Apr-07 21:27
Tamimi - Code4-Apr-07 21:27 
QuestionUpdating Database through datagrid Pin
Raheem MA4-Apr-07 19:44
Raheem MA4-Apr-07 19:44 
AnswerRe: Updating Database through datagrid Pin
Tamimi - Code4-Apr-07 20:44
Tamimi - Code4-Apr-07 20:44 
GeneralRe: Updating Database through datagrid Pin
Raheem MA4-Apr-07 23:08
Raheem MA4-Apr-07 23:08 
GeneralRe: Updating Database through datagrid Pin
Raheem MA4-Apr-07 23:10
Raheem MA4-Apr-07 23:10 
GeneralRe: Updating Database through datagrid Pin
Tamimi - Code4-Apr-07 23:28
Tamimi - Code4-Apr-07 23:28 
GeneralRe: Updating Database through datagrid Pin
Raheem MA5-Apr-07 19:46
Raheem MA5-Apr-07 19:46 
QuestionProtect .NET Source code Pin
karthik_dotnet14-Apr-07 18:41
karthik_dotnet14-Apr-07 18:41 
AnswerRe: Protect .NET Source code Pin
Marek Grzenkowicz4-Apr-07 23:07
Marek Grzenkowicz4-Apr-07 23:07 
GeneralRe: Protect .NET Source code Pin
karthik_dotnet14-Apr-07 23:11
karthik_dotnet14-Apr-07 23:11 
GeneralRe: Protect .NET Source code Pin
Marek Grzenkowicz5-Apr-07 0:22
Marek Grzenkowicz5-Apr-07 0:22 
AnswerRe: Protect .NET Source code Pin
Daniel Grunwald5-Apr-07 4:37
Daniel Grunwald5-Apr-07 4:37 
GeneralRe: Protect .NET Source code Pin
karthik_dotnet15-Apr-07 19:43
karthik_dotnet15-Apr-07 19:43 
QuestionXMl DOm Pin
714-Apr-07 17:53
714-Apr-07 17:53 
AnswerRe: XMl DOm Pin
Scott Dorman4-Apr-07 18:09
professionalScott Dorman4-Apr-07 18:09 
C#
XmlDocument doc=new XmlDocument();
if (File.Exists(@"D:\workjjf\scripts\xml\MajorKeys.xml"))
{
   doc.Load(@"D:\workjjf\scripts\xml\MajorKeys.xml");
}
else
{
   XmlTextWriter tw = new XmlTextWriter(filename,null);
 			
   tw.Formatting = Formatting.Indented;
   tw.WriteStartDocument();
   tw.WriteStartElement("cd");			
   tw.WriteStartElement("genre","Rock and Roll");
   tw.WriteAttributeString("SKU","3224554");
   tw.WriteElementString("artist","Crystal Method");
   tw.WriteElementString("title","Crash Vegas");
   tw.WriteEndElement();
   tw.WriteEndElement();
   tw.WriteEndDocument();			
   tw.Flush();
   tw.Close();
}




-----------------------------
In just two days, tomorrow will be yesterday.

Question[Message Deleted] Pin
gubba4-Apr-07 14:15
gubba4-Apr-07 14:15 
AnswerRe: generating a random number Pin
Christian Graus4-Apr-07 14:30
protectorChristian Graus4-Apr-07 14:30 
AnswerRe: generating a random number Pin
Vikram A Punathambekar4-Apr-07 17:31
Vikram A Punathambekar4-Apr-07 17:31 

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.