Click here to Skip to main content
15,888,803 members
Home / Discussions / C#
   

C#

 
QuestionPost an unselected ListBoxFor in MVC Pin
VK1913-Feb-18 9:36
VK1913-Feb-18 9:36 
QuestionRe: Post an unselected ListBoxFor in MVC Pin
Eddy Vluggen13-Feb-18 10:57
professionalEddy Vluggen13-Feb-18 10:57 
AnswerRe: Post an unselected ListBoxFor in MVC Pin
BillWoodruff13-Feb-18 18:11
professionalBillWoodruff13-Feb-18 18:11 
QuestionASP.NET: Buttons generated in code behind will not fire event Pin
Member 958444513-Feb-18 3:10
Member 958444513-Feb-18 3:10 
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 
that sounds good. I have made that modification.

Currently here is what i have for the methods;

My question from this point is how would i say what <value> node i would like to retrieve from the xml and where it returns that data.

Im looking to input the file name and be able to retrieve each of the individual <value> node values.

public void XMLStrings(string filename)
        {
            // Create an instance of the XmlSerializer specifying type and namespace.
            XmlSerializer serializer = new
            XmlSerializer(typeof(XMLClass));

            // A Stream is needed to read the XML document.
            XMLClass i = new XMLClass();
            using (StreamReader stream = new StreamReader(filename))
                i = (XMLClass)serializer.Deserialize(stream);                            
        }
<pre>private void loadXMLData_Click(object sender, EventArgs e) =>
            // Read XML file
            XMLStrings(@"C:\User.config");

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 

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.