Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
QuestionDataTable.Select() error Pin
CandyMe21-Nov-05 19:43
CandyMe21-Nov-05 19:43 
AnswerRe: DataTable.Select() error Pin
Stanciu Vlad22-Nov-05 4:08
Stanciu Vlad22-Nov-05 4:08 
GeneralRe: DataTable.Select() error Pin
CandyMe22-Nov-05 13:12
CandyMe22-Nov-05 13:12 
Questionplz help me to solve this problem Pin
Ankush Bindra21-Nov-05 19:13
Ankush Bindra21-Nov-05 19:13 
AnswerRe: plz help me to solve this problem Pin
cshaaaa21-Nov-05 19:26
cshaaaa21-Nov-05 19:26 
QuestionApp.config - Can you contribute? Pin
SheenSylesh21-Nov-05 19:00
SheenSylesh21-Nov-05 19:00 
AnswerRe: App.config - Can you contribute? Pin
cshaaaa21-Nov-05 19:16
cshaaaa21-Nov-05 19:16 
AnswerRe: App.config - Can you contribute? Pin
Asad Mahmood21-Nov-05 19:50
Asad Mahmood21-Nov-05 19:50 
To Write in coniguration File name "App1.config"
XmlTextWriter xw= new XmlTextWriter("App1.Config",null);
xw.Formatting=Formatting.Indented;
xw.WriteStartDocument();
xw.WriteStartElement("configuration");
xw.WriteStartElement("appSettings");
xw.WriteStartElement("add");
xw.WriteAttributeString("key","Name Of Key");
xw.WriteAttributeString("value","Place Actual value here");
xw.WriteFullEndElement();
xw.WriteFullEndElement();
xw.WriteFullEndElement();
//xw.WriteEndElement();

xw.Flush();
xw.Close();
to Read From file

XmlTextReader xr = new XmlTextReader("App.config");

while(xr.Read())
{
switch(xr.NodeType)
{
case XmlNodeType.Element:
Console.Out.WriteLine("Element: "+ xr.Name);
while(xr.MoveToNextAttribute())
Console.Out.WriteLine(" Attribute: ["+xr.Name+"]='"+xr.Value+"'");
break;
case XmlNodeType.DocumentType:
Console.Out.WriteLine("Document: "+xr.Value);
break;
case XmlNodeType.Comment:
Console.Out.WriteLine("Comment: "+xr.Value);
break;
}
}
to Use in Application
SetConnectionString(ConfigurationSettings.AppSettings["Name of key you want to use"]);

regards


Asad Mahmood
QuestionHow to get the code(["SerialNumber"]) of harddisk of local area network Pin
koenemy21-Nov-05 18:53
koenemy21-Nov-05 18:53 
AnswerRe: How to get the code(["SerialNumber"]) of harddisk of local area network Pin
MoustafaS22-Nov-05 0:27
MoustafaS22-Nov-05 0:27 
Questionhow to get XML tag of different sites for use in our sites for news reading Pin
v.k.s21-Nov-05 18:30
v.k.s21-Nov-05 18:30 
QuestionReading Active Directory user password? Pin
devvvy21-Nov-05 16:01
devvvy21-Nov-05 16:01 
AnswerRe: Reading Active Directory user password? Pin
mav.northwind21-Nov-05 20:29
mav.northwind21-Nov-05 20:29 
GeneralRe: Reading Active Directory user password? Pin
devvvy21-Nov-05 20:35
devvvy21-Nov-05 20:35 
GeneralRe: Reading Active Directory user password? Pin
mav.northwind21-Nov-05 21:32
mav.northwind21-Nov-05 21:32 
GeneralRe: Reading Active Directory user password? Pin
devvvy21-Nov-05 21:43
devvvy21-Nov-05 21:43 
QuestionConfused about shallow and deep copy in C# Pin
Johny Ng21-Nov-05 13:00
Johny Ng21-Nov-05 13:00 
AnswerRe: Confused about shallow and deep copy in C# Pin
Joshua Quick21-Nov-05 14:14
Joshua Quick21-Nov-05 14:14 
AnswerRe: Confused about shallow and deep copy in C# Pin
ABC_Developer21-Nov-05 18:26
ABC_Developer21-Nov-05 18:26 
Question[very urgent]!! combobox question Pin
Sam 200621-Nov-05 12:26
Sam 200621-Nov-05 12:26 
AnswerRe: [very urgent]!! combobox question Pin
enjoycrack21-Nov-05 12:48
enjoycrack21-Nov-05 12:48 
AnswerRe: [very urgent]!! combobox question Pin
cshaaaa21-Nov-05 19:09
cshaaaa21-Nov-05 19:09 
Questionbarcode: code 128 from c# Pin
grahamcere21-Nov-05 12:02
grahamcere21-Nov-05 12:02 
AnswerRe: barcode: code 128 from c# Pin
Christian Graus21-Nov-05 14:53
protectorChristian Graus21-Nov-05 14:53 
GeneralRe: barcode: code 128 from c# Pin
grahamcere22-Nov-05 5:15
grahamcere22-Nov-05 5:15 

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.