Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
16 Points
23 Posts
Jun 10, 2012 07:46 AM|LINK
Thanks for the reply,
Well yes i tried those steps, i am facing some problems there, here is my code
My code in asp.net VB option 1
Dim xDoc As XDocument = XDocument.Load(mPath & mXmlFile) Dim q = From c In xDoc.Descendants() GridView1.DataSource = q GridView1.DataBind()
when i do this i get the whole data bunched into the left most column.
my code in asp.net VB option 2
Dim xmlContent As String = getContentsFromWebServer(mPath & mXmlFile) Dim rdr As TextReader = New StringReader(xmlContent) Dim ds As New DataSet ds.ReadXml(rdr, XmlReadMode.Auto) GridView2.DataSource = ds.Tables(0).DefaultView GridView2.DataBind()
i am sharing the output as an image below.
option 1 and option1a for first query i have truncated the output for brevity
option 2 for second query
Please help me with this
thanks for all your effort
indavinci
Member
16 Points
23 Posts
Re: Show XML in gridview
Jun 10, 2012 07:46 AM|LINK
Thanks for the reply,
Well yes i tried those steps, i am facing some problems there, here is my code
My code in asp.net VB option 1