Solved

Duplicating repeater layout with new data

Posted on 2011-03-01
3
222 Views
Last Modified: 2012-05-11
I have a user control with a very basic table structure. The data is split by three types...B,U,C. The output I'm looking for is:

Title A
Data for rows - type B & C, 1 row per table cell

Title B
Data for rows - type U, 1 row per table cell

There will not always be both C & U data, so if both arent there, it should only show the first or last half of the above. I was wondering if there would be a way to only use one repeater and one dataset to get the above results, instead of having two repeaters and 2 sql calls. Can filters be used in some way? Or something else?
0
Comment
Question by:JDEE8297
  • 2
3 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35021099
Is the type U data child of Type A/B?
0
 

Accepted Solution

by:
JDEE8297 earned 0 total points
ID: 35057735
I've found my own solution. Not sure it's the most efficient, but it works.
Using 2 repeaters with 1 dataset that retrieves all 3 types. Then creating 2 views filtering by type.
0
 

Author Closing Comment

by:JDEE8297
ID: 35115181
Didnt get much response to my question.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

14 Experts available now in Live!

Get 1:1 Help Now