Click here to Skip to main content
15,909,039 members
Home / Discussions / C#
   

C#

 
AnswerRe: ASP.NET: Buttons generated in code behind will not fire event Pin
Richard Deeming13-Feb-18 4:38
mveRichard Deeming13-Feb-18 4:38 
QuestionI had an error of Email in line " dynamic email = new Email("ChngPasswordEmail");" which say's The type or Namespace name "Email" could not be found Pin Pin
Member 1367430013-Feb-18 0:33
Member 1367430013-Feb-18 0:33 
AnswerRe: I had an error of Email in line " dynamic email = new Email("ChngPasswordEmail");" which say's The type or Namespace name "Email" could not be found Pin Pin
CHill6013-Feb-18 1:07
mveCHill6013-Feb-18 1:07 
GeneralRe: I had an error of Email in line " dynamic email = new Email("ChngPasswordEmail");" which say's The type or Namespace name "Email" could not be found Pin Pin
Member 1367430013-Feb-18 1:12
Member 1367430013-Feb-18 1:12 
AnswerRe: I had an error of Email in line " dynamic email = new Email("ChngPasswordEmail");" which say's The type or Namespace name "Email" could not be found Pin Pin
OriginalGriff13-Feb-18 1:10
mveOriginalGriff13-Feb-18 1:10 
AnswerRe: I had an error of Email in line " dynamic email = new Email("ChngPasswordEmail");" which say's The type or Namespace name "Email" could not be found Pin Pin
Dave Kreskowiak13-Feb-18 3:19
mveDave Kreskowiak13-Feb-18 3:19 
QuestionC# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 4:00
Travis Jacobson12-Feb-18 4:00 
AnswerRe: C# need help reading XML config file with multiple values in windows forms app Pin
Richard MacCutchan12-Feb-18 6:04
mveRichard MacCutchan12-Feb-18 6:04 
AnswerRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 6:13
mveGerry Schmitz12-Feb-18 6:13 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 6:22
Travis Jacobson12-Feb-18 6:22 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 6:35
mveGerry Schmitz12-Feb-18 6:35 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 7:27
Travis Jacobson12-Feb-18 7:27 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 7:36
mveGerry Schmitz12-Feb-18 7:36 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 7:57
Travis Jacobson12-Feb-18 7:57 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 8:03
mveGerry Schmitz12-Feb-18 8:03 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 8:43
Travis Jacobson12-Feb-18 8:43 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 9:17
J. Calhoun12-Feb-18 9:17 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 10:29
Travis Jacobson12-Feb-18 10:29 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 10:44
J. Calhoun12-Feb-18 10:44 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 10:55
Travis Jacobson12-Feb-18 10:55 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 11:06
J. Calhoun12-Feb-18 11:06 
QuestionRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 11:46
Travis Jacobson12-Feb-18 11:46 
this is working really well and displays the results in a message box. The only issue is that when the message boxes are done being displayed the application seems to freeze up and then finally errors out. i think it is because the loop is still running.

One question... is there a way to change the code i have below to include the name= tag in the filter? If i can do that i might not need the loop and can call the nodes directly. example...;
xmlvalue = node.SelectSingleNode("/setting name="AppXml"/value").InnerText;


private void LoadXMLData_Click(object sender, EventArgs e)
        {
            XmlDocument xdoc = new XmlDocument();
            xdoc.Load("C:\\user.config");
            XmlNodeList nodes = xdoc.DocumentElement.SelectNodes("/configuration/userSettings/nextnode/setting");
            string xmlvalue = "";
            foreach (XmlNode node in nodes)
            {
                if (xmlvalue != null)
                {
                    xmlvalue = node.SelectSingleNode("value").InnerText;
                    string xmlvalue2 = System.Text.Encoding.UTF8.GetString(System.Convert.FromBase64String(xmlvalue));
                    MessageBox.Show(xmlvalue2);
                }
            }
        }


modified 12-Feb-18 19:05pm.

GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 11:48
Travis Jacobson12-Feb-18 11:48 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 8:43
Travis Jacobson12-Feb-18 8:43 
AnswerRe: C# need help reading XML config file with multiple values in windows forms app Pin
Dave Kreskowiak12-Feb-18 11:43
mveDave Kreskowiak12-Feb-18 11:43 

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.