Solved

asp.net xmldatasource

Posted on 2015-02-16
2
97 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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

11 Experts available now in Live!

Get 1:1 Help Now