I am having an application, now we are adding roles/user/permissions to access... I know we could just put these data into an xml file and then read. we do not want to save into database. . Other then xml file, what are the best ways to handle this kind
of thing?
For this kind of issue,I mean if you don't wanna cope with the problem with sql database but xml,you have to use XDocument or XmlDocument to CRUD xml files and output it to override it.
Besides this, you can also create a memory-based DataTable put into ViewState for avoiding lost during post page the whole page, and then you can use something like ReadXml or WriteXml to input/output to xml file.
justindongqi...
Member
513 Points
149 Posts
asp.net Best ways to save roles / users put into for application to use
Dec 06, 2012 03:30 PM|LINK
I am having an application, now we are adding roles/user/permissions to access... I know we could just put these data into an xml file and then read. we do not want to save into database. . Other then xml file, what are the best ways to handle this kind of thing?
thanks, Justin
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: asp.net Best ways to save roles / users put into for application to use
Dec 07, 2012 03:47 AM|LINK
Hello,
For this kind of issue,I mean if you don't wanna cope with the problem with sql database but xml,you have to use XDocument or XmlDocument to CRUD xml files and output it to override it.
Besides this, you can also create a memory-based DataTable put into ViewState for avoiding lost during post page the whole page, and then you can use something like ReadXml or WriteXml to input/output to xml file.
Reguards!