473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Customising XML Output using Repeaters

I'm builing a webpage with a drop-down menu and an XML-generated output, the latter of which is generated by the asp:Repeater tool.

The ASP code looks like this:
Expand|Select|Wrap|Line Numbers
  1. <asp:Repeater ID="rptRssFeed2" OnItemDataBound="rptRssFeed_ItemDataBound2" runat="server" 
  2.                     Visible="False">
  3.     <ItemTemplate>
  4.             <asp:Literal ID="litTitle2" OnLoad="litTitleCheck" runat="server"/><br />
  5.             <asp:Literal ID="litDescription2" runat="server" /><br />
  6.             <asp:HyperLink ID="hypLink2" Text="View" runat="server" />
  7.     </ItemTemplate>
  8.     <SeparatorTemplate>
  9.         <hr />
  10.     </SeparatorTemplate>
  11.     </asp:Repeater>
Basically, I have a databse containing a list of academic papers (titles are shown on the drop-down menu) and associated keywords. Based on the paper selected by the user, I want to find a way of customising the RSS output so that it is reduced to showing only the news items containing the keywords from the user’s selected paper (e.g. containing the keywords ‘mobile’, ‘laptop’ or ‘interface’) and not any other news items which don’t contain any for these keywords.

Although the Repeater tools contain literals and hyperlinks, it's not possible to access these from the C# code page. It is only possible to access the repeater tool, which doesn't have a text property.

Is it possible to customise the output of a Repeater once it has been generated and, if so, how? Else, should I go about reading the XML file in a different way?

Cheers
Matt
Mar 26 '10 #1
0 860

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: David B | last post by:
Bare with me this is my first post. Objective: To dynamically create repeaters in a WebForm based on sets of data. Problem: When I attempt to create any Repeater from C# I get a big fat white...
3
by: DonRex | last post by:
Hello all! I couldn't find a web application-newsgroup for ASP.NET, so I'm sorry if this is the wrong forum! Synopsis: In my webform I have 3 nested repeaters: rpWeeks ----- rpTime
0
by: Paul | last post by:
I want to be able to nest a repeater in a datagrid or datalist. I'm not unduly bothered about a master/child relationship as such as there'll at this stage only ever be one record on the page, but...
1
by: Bijoy Naick | last post by:
I have a query that spits out a single column of text rows. For example, City "London" "New York" "Toronto" "Chicago" I have a repeater that I'd like to use to spit out the output as...
3
by: robin9876 | last post by:
In an asp.net (VB) web page I have created a HTML table that has some server side labels which has information populated to at runtime from code. This works for when there is only one recorded...
1
by: garethdjames | last post by:
Please can some on offer some practicle advice, I am designing a page that displays details about a product, the page will be navigated from a datagrid (this bit no problem), The details page...
1
by: Roy | last post by:
No errors here, I'm just looking for ways to make my code more efficient. As the subject line suggests, I have a LOT of repeaters on a certain page. They are visible or hidden depending on user...
2
by: Josh | last post by:
I have a nested repeater situation with a Link Button on the nested repeater. However when the link button is clicked I get a postback but the event never takes place. I'm trying to wire up the...
1
by: andrew.douglas11 | last post by:
Hello all, Is it possible to share controls inside a child repeater? Here's the situation: I have a web page that needs to display data grouped by A, and alternatively by B (only one grouping...
3
by: Leon Mayne | last post by:
If I have a datatable which looks like this: Record Id, Group Id, Name 1, 1, Test 1 2, 1, Test 2 3, 2, Test 3 4, 3, Test 4 Is it possible to use nested repeaters to group the information by...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.