Hello
I want will receive a xml document from a webservice and I want to receive the xml response and display it in a list.
I was thinking which control to use and have excluded user control as I want to be able to use it many places and otionly compile it once + toolbox feature...++
So I was thinking just to create a web control and acept a xmldocument as input parameter.. use XMLReader to parse the document and write the result
in a list in the render method...
Does this seem like a good solution? To me it seems like the quickes one.. As opposed to using the gridview or datalist or even repeater.. as long as i dont need the
paging facilities I guessed this was the best... anyone have any input to this?
Have you looked at the DataSet, and simply doing a ds.ReadXML().
I've found it much easier to work with DataSets then an XmlDocument or XmlReader for any display or manipulation.
Hi
But how would you display the dataset? Write it out in the render method in the web control or use other web server controls like datagrid ??
I want to avoid this for performance issues with the gridview.. I could use a repeater but... seem to me that its just as easy to create a web control
and parse through the xml and write it out in the render method...
also i use css so i write this in the render method as well.. this way I have 100% control of the look and feel
0 comments:
Post a Comment