Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: generating a random number Pin
led mike4-Apr-07 17:55
led mike4-Apr-07 17:55 
QuestionArrayList Pin
blackjack21504-Apr-07 12:49
blackjack21504-Apr-07 12:49 
AnswerRe: ArrayList Pin
Christian Graus4-Apr-07 13:07
protectorChristian Graus4-Apr-07 13:07 
GeneralRe: ArrayList Pin
Aaron VanWieren4-Apr-07 13:08
Aaron VanWieren4-Apr-07 13:08 
GeneralRe: ArrayList Pin
Christian Graus4-Apr-07 13:36
protectorChristian Graus4-Apr-07 13:36 

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.