Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8482043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:43:23+00:00 2026-06-10T19:43:23+00:00

I now have two repeaters that need to look at 1 XML file but

  • 0

I now have two repeaters that need to look at 1 XML file but only the first one works.

The XML currently looks like:

<catalog>
    <categories>
        <ST>Example 1</ST> 
    </categories>

    <SOW>
        <hello>Data Displays</hello>                                                                                    
    </SOW>

</catalog>

My first repeater looks like:

 <form runat="server">
<asp:Repeater id="categories" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<table width="832" border="0" bgcolor="#FFFFFF">


  <tr>
    <td width="134" align="left"  class="list-content-requirement" style="padding-left: 15px;">ST:</td>
    <td width="688" colspan="6" align="left" style="padding-left: 15px;"><%#Container.DataItem("ST")%></td>
  </tr>


 </table>
</ItemTemplate>
<footertemplate>
</footertemplate>
</asp:Repeater>  

and my second looks like this (which is straight after the first):

<asp:Repeater id="SOW" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<table width="832" border="0" bgcolor="#FFFFFF">


  <tr>
    <td width="134" align="left"  class="list-content-requirement" style="padding-left: 15px;">hello:</td>
    <td width="688" colspan="6" align="left" style="padding-left: 15px;"><%#Container.DataItem("hello")%></td>
  </tr>


 </table>
</ItemTemplate>
<footertemplate>
</footertemplate>
</asp:Repeater> 
 </form>

Last but not least here is my script:

<script  runat="server">
Public Sub Page_Load()
    If Not Page.IsPostBack Then
        Dim cat As String = Request.QueryString("cat")
        Dim mycategories As DataSet = New DataSet()
        mycategories.ReadXml(MapPath("XML/" + cat + ".xml"))
        categories.DataSource = mycategories
        categories.DataBind()
    End If
End Sub

</script>

No errors are thrown up but the second repeater does not seem to work

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:43:24+00:00Added an answer on June 10, 2026 at 7:43 pm
    <script  runat="server">
    Public Sub Page_Load()
        If Not Page.IsPostBack Then
            Dim cat As String = Request.QueryString("cat")
            Dim mycategories As DataSet = New DataSet()
            mycategories.ReadXml(MapPath("XML/" + cat + ".xml"))
    
            categories.DataSource = mycategories.Tables("categories")
            categories.DataBind()
    
            SOW.DataSource = mycategories.Tables("SOW")
            SOW.DataBind()
    
        End If
    End Sub
    
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need an XML-serializable dictionary. Actually, I now have two quite different programs that
I have two destinations now and the first calls a SOAP webservice. I want
I have two User Controls already created now I want to use one as
I have two table first is TABLE_SUBJECT and second is TABLE_CHAPTER.Now i want to
Right now I have two repeaters: 1 will be shown when the page loads,
I currently have two XSD schemes and one is a light version of the
I have two repeaters that looks like this : Arrange By: Name | Age
in /usr/local i now have two mysql folders: mysql-5.1.34-osx10.5-x86 mysql-5.1.37-osx10.5-x86_64 is it possible to
I am continuing to enslave the MVC 2 thing: Areas... Now I have two
I have now witnessed two companies move to agile development with Scrum. In both

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.