Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure)

How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure)

Scheduled Pinned Locked Moved XML / XSL
helptutorialadobegame-devxml
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vishnu Narayan Mishra
    wrote on last edited by
    #1

    Hello every one I am facing a problem to display attribute of parent node and corresponding child nodes.Suppose I have to display Label attributes of all . There can be multiple inside parent node . In this case I have to display Label 'rediffHomePage' and 'rediffHomePage1' of both node. There is no issue to diplay these two Label. I done this by taking a repeater control. But problem arrises when I have to display corresponding Label of 'FieldsToSupport/FieldToSupport' of .. For example on click an Item like rediffHomePage from a repeater It should display like 'HotJobs' and 'Game'. How can I display Label of corresponding FieldsToSupport/FieldToSupport on click on corresponding Label of .. Should I take Repeater inside Repeater or I Repeater inside DataList. following is the structure of XML file -------------------------------------------------------------------- 199d1dfd-63ca-4271-b234-77da0f579e0e ... 1 ... HotJobs ... ... Game ... rediffHomePage e62abc49-efc7-4a5d-908f-33f2f4df070b ... 2 .. Images .. ... Air Tickets ... rediffHomePage1 -------------------------------------------------------------------- and following is my .cs file -------------------------------------------------------------------- <%@ Page Languag

    P 1 Reply Last reply
    0
    • V Vishnu Narayan Mishra

      Hello every one I am facing a problem to display attribute of parent node and corresponding child nodes.Suppose I have to display Label attributes of all . There can be multiple inside parent node . In this case I have to display Label 'rediffHomePage' and 'rediffHomePage1' of both node. There is no issue to diplay these two Label. I done this by taking a repeater control. But problem arrises when I have to display corresponding Label of 'FieldsToSupport/FieldToSupport' of .. For example on click an Item like rediffHomePage from a repeater It should display like 'HotJobs' and 'Game'. How can I display Label of corresponding FieldsToSupport/FieldToSupport on click on corresponding Label of .. Should I take Repeater inside Repeater or I Repeater inside DataList. following is the structure of XML file -------------------------------------------------------------------- 199d1dfd-63ca-4271-b234-77da0f579e0e ... 1 ... HotJobs ... ... Game ... rediffHomePage e62abc49-efc7-4a5d-908f-33f2f4df070b ... 2 .. Images .. ... Air Tickets ... rediffHomePage1 -------------------------------------------------------------------- and following is my .cs file -------------------------------------------------------------------- <%@ Page Languag

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      You should look at using nested Repeater controls[^] to solve your problem. BTW, why are you mixing your server-side code and markup in the same file? You should really consider splitting the server-side code out into a code-behind file for the sake of maintainability. I haven't seen code mixed like this since the bad old days of ASP...

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      V 1 Reply Last reply
      0
      • P pmarfleet

        You should look at using nested Repeater controls[^] to solve your problem. BTW, why are you mixing your server-side code and markup in the same file? You should really consider splitting the server-side code out into a code-behind file for the sake of maintainability. I haven't seen code mixed like this since the bad old days of ASP...

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        V Offline
        V Offline
        Vishnu Narayan Mishra
        wrote on last edited by
        #3

        Sir, can you give me any solution to how can i do this. I will very thankful to you..

        P 1 Reply Last reply
        0
        • V Vishnu Narayan Mishra

          Sir, can you give me any solution to how can i do this. I will very thankful to you..

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          Have you looked at the examples I suggested? Have you attempted to solve the problem yourself? Seriously, if you can't be bothered to help yourself then I can't give you any further advice.

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups