R
Ranginald
Hi!
I have a SQL Server view that ends with a FOR XML EXPLICIT command --
problem: I know more about databases than C#!
1. How would I go about writing a C# method that would take the XML
results of this view, and use a save as dialog box to save it to a
file.
Even better, I'd love to be able to generate the XML file,
automatically add appropriate line breaks and tab out the hierarchy,
and then save the file.
2. For whatever it's worth, the end goal is to be able to update the
..XML file for an ASP.NET 2.0 tree control for a web site. I figure
that when the pages change (dynamically generated from SQL Server DB)
-- which is NOT often, I would just run the program from Question #1
above to re-export and reformat the XML file from the view, and then
copy that file to the server for the tree navigation web control. Is
this the correct way to approach this overall issue?
Thanks in advance!
Ranginald
I have a SQL Server view that ends with a FOR XML EXPLICIT command --
problem: I know more about databases than C#!
1. How would I go about writing a C# method that would take the XML
results of this view, and use a save as dialog box to save it to a
file.
Even better, I'd love to be able to generate the XML file,
automatically add appropriate line breaks and tab out the hierarchy,
and then save the file.
2. For whatever it's worth, the end goal is to be able to update the
..XML file for an ASP.NET 2.0 tree control for a web site. I figure
that when the pages change (dynamically generated from SQL Server DB)
-- which is NOT often, I would just run the program from Question #1
above to re-export and reformat the XML file from the view, and then
copy that file to the server for the tree navigation web control. Is
this the correct way to approach this overall issue?
Thanks in advance!
Ranginald