Solved

Repeater xpathnodeiterator

Posted on 2004-09-28
7
468 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
ID: 12173210
0
 
LVL 17

Expert Comment

by:AerosSaga
ID: 12173280
<%@ 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
ID: 12173324
but i want to bind with xpathnodeiterator
0
 
LVL 3

Accepted Solution

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

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Json and asp.net mvc 2 45
Any Third party toll for Integrating chat system on ASP.NET ? 2 34
Entity Framework 7 32
Adware on IIS hosted asp.net website 1 17
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…
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 …
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 …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 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

18 Experts available now in Live!

Get 1:1 Help Now