Solved

Repeater xpathnodeiterator

Posted on 2004-09-28
7
476 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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