Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
AnswerRe: pass multiplae parameter in crystal report Pin
Calla3-Sep-09 0:44
Calla3-Sep-09 0:44 
GeneralRe: pass multiplae parameter in crystal report Pin
OriginalGriff3-Sep-09 1:06
mveOriginalGriff3-Sep-09 1:06 
QuestionXElement vs XmlWriter Question Pin
Programm3r2-Sep-09 23:03
Programm3r2-Sep-09 23:03 
AnswerRe: XElement vs XmlWriter Question Pin
Keith Barrow2-Sep-09 23:28
professionalKeith Barrow2-Sep-09 23:28 
GeneralRe: XElement vs XmlWriter Question Pin
Programm3r2-Sep-09 23:37
Programm3r2-Sep-09 23:37 
GeneralRe: XElement vs XmlWriter Question Pin
Keith Barrow2-Sep-09 23:43
professionalKeith Barrow2-Sep-09 23:43 
GeneralRe: XElement vs XmlWriter Question Pin
Programm3r3-Sep-09 0:31
Programm3r3-Sep-09 0:31 
AnswerRe: XElement vs XmlWriter Question Pin
Programm3r3-Sep-09 1:42
Programm3r3-Sep-09 1:42 
--- XElement Code ---
foreach (var controller in ControllerList)
{
    xElement.Element("plant").Element("building").Add(new XComment(String.Format("Controller: {0} Declaration", controller.Key)));

    XElement con = new XElement("controller",
        new XAttribute("name", controller.Value.ControllerName),
        new XAttribute("description", controller.Value.ControllerDescription),
        new XAttribute("area", controller.Value.ControllerArea),
        new XAttribute("startdate", DateTimeClass.DateTimeYearMonthDay(controller.Value.StartDate)),
        new XAttribute("enddate", DateTimeClass.DateTimeYearMonthDay(controller.Value.EndDate)),
        new XAttribute("updatemode", controller.Value.UpdateMode)
        );
    // write the reader element and attributes
    foreach (var reader in controller.Value.ReaderList)
    {
        con.Add(new XElement("reader",
            new XAttribute("name", reader.Value.ReaderName),
            new XAttribute("readergroup", reader.Value.ReaderGroup),
            new XAttribute("host", reader.Value.ReaderHost),
            new XAttribute("type", reader.Value.ReaderType),
            new XAttribute("startdate", DateTimeClass.DateTimeYearMonthDay(reader.Value.StartDate)),
            new XAttribute("enddate", DateTimeClass.DateTimeYearMonthDay(reader.Value.EndDate)),
            new XAttribute("description", reader.Value.ReaderDescription)
            ));
    }

    xElement.Element("plant").Element("building").Add(con);
}

 <br />
<br />
<div class="ForumSig"><br />
<table width="100%" align="center"><tbody><tr><td>  <font color="#FF9900">The only programmers that are better C# programmers, are those who look like this -> :bob:</font></td></tr></tbody></table> <br />
<br />
  <font color="#429DFF"><br />
:java: Programm3r</font><br />
My Blog: <a href="http://www.codeproject.com/script/profile/whos_who.asp?msg=1917620&id=2823228#xx1917620xx">^_^</a></div>

GeneralRe: XElement vs XmlWriter Question Pin
Keith Barrow3-Sep-09 2:15
professionalKeith Barrow3-Sep-09 2:15 
GeneralRe: XElement vs XmlWriter Question Pin
Programm3r3-Sep-09 3:21
Programm3r3-Sep-09 3:21 
QuestionUpdate the XElement - Question Pin
Programm3r3-Sep-09 5:04
Programm3r3-Sep-09 5:04 
AnswerRe: XElement vs XmlWriter Question Pin
PIEBALDconsult3-Sep-09 6:30
mvePIEBALDconsult3-Sep-09 6:30 
GeneralRe: XElement vs XmlWriter Question Pin
Programm3r7-Sep-09 2:20
Programm3r7-Sep-09 2:20 
QuestionNavigating Internet Explorer Pin
Vijay Mudunuri2-Sep-09 22:50
Vijay Mudunuri2-Sep-09 22:50 
AnswerRe: Navigating Internet Explorer Pin
Jacobb Michael2-Sep-09 23:31
Jacobb Michael2-Sep-09 23:31 
GeneralRe: Navigating Internet Explorer Pin
Vijay Mudunuri3-Sep-09 2:00
Vijay Mudunuri3-Sep-09 2:00 
Questionconnectionstring Pin
sepehr_sepehr2-Sep-09 22:13
sepehr_sepehr2-Sep-09 22:13 
AnswerRe: connectionstring Pin
Mohammad Dayyan2-Sep-09 22:22
Mohammad Dayyan2-Sep-09 22:22 
QuestionAn issue in windows service ? Pin
Mohammad Dayyan2-Sep-09 21:59
Mohammad Dayyan2-Sep-09 21:59 
AnswerRe: An issue in windows service ? Pin
N a v a n e e t h3-Sep-09 0:23
N a v a n e e t h3-Sep-09 0:23 
GeneralRe: An issue in windows service ? [modified] Pin
Mohammad Dayyan3-Sep-09 1:22
Mohammad Dayyan3-Sep-09 1:22 
GeneralRe: An issue in windows service ? Pin
N a v a n e e t h3-Sep-09 5:43
N a v a n e e t h3-Sep-09 5:43 
GeneralRe: An issue in windows service ? [modified] Pin
Mohammad Dayyan4-Sep-09 0:49
Mohammad Dayyan4-Sep-09 0:49 
GeneralRe: An issue in windows service ? Pin
N a v a n e e t h4-Sep-09 5:57
N a v a n e e t h4-Sep-09 5:57 
GeneralRe: An issue in windows service ? Pin
Mohammad Dayyan4-Sep-09 6:32
Mohammad Dayyan4-Sep-09 6:32 

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.