Begginer XML question.
-
I have an XML file that need to be shown as a table. I know that I can do it by XslTransform, but I need to let the user to edit the data and save it in the XML file. How can I do it using C# in ASP.NET? Thank you Chagit
I believe the DataGrid (or something similar ) provided by WebForms can be bound to an XML source and is editable. But I'm just startng with this stuff, so I'm not sure. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
-
I have an XML file that need to be shown as a table. I know that I can do it by XslTransform, but I need to let the user to edit the data and save it in the XML file. How can I do it using C# in ASP.NET? Thank you Chagit
Chagit wrote: How can I do it using C# in ASP.NET? There are many ways, both conventional and unconventional. As Christian mentioned you can use the power of the
DataGrid
to do most of the grunt work for you. This article explains how it is done. You can also do it manually by having a master/detail setup as you would have had in ASP with a SQL data source. Remember XML is just a data source really, not a full query/input technology. You still need processing from ASP or ASP.NET or some other language to get data into an XML source. So for example you would use XSL to output the HTML which included a FORM element back to a handling ASP page which goes through the FORM child-input-elements writing the changed data back into the XML file.Paul Watson
Bluegrass
Cape Town, South Africa