Solved

Repeater xpathnodeiterator

Posted on 2004-09-28
7
467 Views
Last Modified: 2008-01-09
Hi


i want to bin xpathnodeiterator to repeater control.
Is it possible if yes can you pleade guide me
Thanks
Ravi
0
Comment
Question by:pprasadravi
  • 2
7 Comments
 
LVL 17

Expert Comment

by:AerosSaga
Comment Utility
0
 
LVL 17

Expert Comment

by:AerosSaga
Comment Utility
<%@ Page Language="C#" autoEventWireup="false"%>
<%@ Import Namespace="System.Xml" %>

<script language="c#" runat="server">

override protected void OnInit(EventArgs e)
{
    base.OnInit(e);
    this.Load += new System.EventHandler(this.Page_Load);
}

private void Page_Load(object sender, System.EventArgs e)
{
    XmlDocument d = new XmlDocument();
    d.LoadXml("<root><county><id>1</id><name>FULTON</name><state>GA</state></county><county><id>2</id><name>DE
KALB</name><state>GA</state></county></root>");

    myRepeater.DataSource = d.SelectNodes("//county");
    myRepeater.DataBind();
}
   
</script>

<html>
<body>

<h2>Counties List</h2>

<asp:Repeater id="myRepeater" runat="server">
<HeaderTemplate>
<table>
<tr><th>ID</th><th>County Name</th><th>State Name</th></tr>
</HeaderTemplate>
    <ItemTemplate>
     <tr>
     <td><%# ((XmlNode)Container.DataItem).ChildNodes[0].InnerText %></td>
     </tr>
    </ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>

</body>
</html>
0
 

Author Comment

by:pprasadravi
Comment Utility
but i want to bind with xpathnodeiterator
0
 
LVL 3

Accepted Solution

by:
w_shaila earned 250 total points
Comment Utility
http://builder.com.com/5102-31-5075449.html

I think you can solve ur issue by following this.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
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 …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

15 Experts available now in Live!

Get 1:1 Help Now