views:

35

answers:

2
+1  Q: 

XML as DataSource

I have an XML file called employee. I want to bind the XML file to a GridView. pls help... thanx :-)

+1  A: 

You probably is looking for asp:XmlDataSource:

<asp:XmlDataSource runat="server" ID="XmlDataSource1" DataFile="~/App_Data/data.xml" XPath="//item" />

I will be happy to give you more advanced answer after increasing your accept rate. Thank you.

abatishchev
Look at the numbers. Only 5 eligible questions and a user for only 6 days, hardly worth getting steamed up about.
ChrisF
thanx for ur help :)
Sorry. I apologize for my delayed response...
@aparnakarthik: Why don't you increase your `accept rate` approving answers in your previous questions?:) Also - do you have a success in your current question?
abatishchev
yes this is what i need...ur solution worked fine.... thanx a lot :)
@aparnakarthik: Glad it helped! Please mark my post as an answer (green tick)
abatishchev
It solved my issue..... thanx a lot
A: 

yes you can via DataSet then bind dataSet object to datagrid. http://msdn.microsoft.com/en-us/library/84sxtbxh(VS.71).aspx

Arseny
Thanx a lot... Is it possible without using dataset?
@aparnakarthik No. I don't think so
Arseny