On Dec 17, 1:23 am, Brock <[email protected]> wrote: > Thanks Cerebus... you're the best
I'm also the most absent minded. I forgot all about your data being XML halfway through writing my reply. :P On second thoughts, however, maybe that impression was propagated by your use of a DataView. IMO, you can directly bind a Datagrid to an XML file (eg, using XmlDataSource) without going through the XML -> DataSet -> DataView route. > I think the Querystring is my best bet with a details view on > another .aspx page. > I've had a devil of a time finding any textbook examples or web > resources for embedding > SELECT-FROM-WHERE type sql querying to choose a particular node of the > XML file > and make the node's data accessible to the new .aspx page through a > querystring. > I've seen some reference to the "FOR XML AUTO" phrase but I'm not sure > if that > is on the right track (?). Any examples in websites would be very > helpful. This is not part of my job > but I just personally want to learn how to query into XML files to > grab "records/nodes", edit them, delete, etc. > I use vb.net and know nothing of C# (us vbers are "parenthetically > challenged", pardon my humor!) Since we're selecting XML, our best bet is to use .NET's built in capabilities for selecting and querying XML. Use the XPathNavigator with an appropriate XPath expression. (If you have trouble with this part, post the XML and what you want to select) to return another XPathNavigator that can be assigned to the Datasource property of the FormView / DetailsView.
