TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ivan Peran
NA
16
644
XML LOAD - Not so sure what to do about it
Jan 10 2018 1:21 PM
Hi all
I searched a lot here for this XML and I just cant get it well.. Working on some Win form application and got stucked by that XML .. i have save and load button there.. But that load is so hard to do it..
here is my SAVE code button ( I know i dont need some code from here but i like to have all i got for a short time so i dont need to search two times smae thing..
//...
SaveFileDialog sfd = new SaveFileDialog();
sfd.ShowDialog();
XElement element = new XElement("Items");
foreach (var item in UsersTextbox.Items)
foreach(var item1 in PasswordTextbox.Items)
{
element.Add(new XElement("Name", item));
}
//..
XDocument document = new XDocument();
document.Add(element);
document.Save("datasave.xml", SaveOptions.DisableFormatting);
Problem is that. I have two listboxes of users and password.. all that needs to be saved somwhere user want.. than that save, load it up so you can log in again as same user after exiting the program.
TY all
p.s i saw a 5-6 Topics here of this xml but im confused as hell for that XML load..
Reply
Answers (
1
)
how to resize exporting PDF format export from Data Table?
Screenshot with ArcGIS map contents