Solved

asp.net xmldatasource

Posted on 2015-02-16
2
99 Views
Last Modified: 2015-02-16
Can you show me how to call BondAmount in asp.net/c# ?
I basically want to get the list of bond amount so i will be

10000
15000

How can I do that using gridview and xmldatasource?

Thanks

<Bonds>
<Bond>
    <State>CA</State>
    <BondAmountListing>
      <BondAmount>10000</BondAmount>
      <BondAmount>15000</BondAmount>
     
    </BondAmountListing>
 /Bond>
</Bonds>
0
Comment
Question by:ITsolutionWizard
2 Comments
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 40612448
Hi  ITsolutionWizard;

You have posted this exact same question three times with no real results. In your last question I hopefully  gave some direction on what to post the title of the question to get the right experts involved.  I can only assume you will most likely not get the right people to look inside to help with this question. Good Luck.
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 40612452
Try something like:
    <asp:XmlDataSource ID="XmlDS1" runat="server" DataFile="C:\temp\test.xml" XPath="/Bonds/Bond/BondAmountListing/BondAmount" />

    <asp:GridView ID="GridView1" runat="server" DataSourceID="XmlDS1" AutoGenerateColumns="false">
        <Columns>
            <asp:TemplateField HeaderText="Wibble">
                <ItemTemplate>
                    <%#XPath(".") %>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now