Here's a quick example :
<%@ Import Namespace="System.Data" %>
<script runat="server">
sub Page_Load(sender as Object, e as EventArgs)
Dim myDataSet as New DataSet()
myDataSet.ReadXml(Server.MapPath("some.xml"))
dgSome.DataSource = myDataSet
dgSome.DataBind()
end sub
</script>
<body>
<asp:datagrid id="dgSome" runat="server" />
</body>
If you are getting the XML from a stream,
you'll need to write it to disk before using this method.
That shouldn't present too many complications.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"david" <da***@discussions.microsoft.comwrote in message
news:81**********************************@microsof t.com...
>I have searched Yahoo and Microsoft web, some info seems useful but doesn't
work.
I will try to find some.
David
"Juan T. Llibre" wrote:
>http://www.google.com/search?hl=en&q...+to+dataset%22
There's good info in the links returned by that Google query.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"david" <da***@discussions.microsoft.comwrote in message
news:A2**********************************@microso ft.com...
When I check the syntax of dataset, It seems that dataset can only read data
from file. (e.g., dataset.read(string filename), dataset.readxml(string filename)).
If I have a string with XML format that is transfered from somewhere else,
how can I read the string and populate it into a dataset, then display the
data in a data grid?
Thanks for any help.
David