Solved

How to use a repeater for two different data sources?

Posted on 2004-09-13
2
267 Views
Last Modified: 2012-06-21
Hi,
 I have a situation where a data repeater in my Term.aspx  page can be accessed by two different data sources.
 The Term.aspx page can be accessed by browsing the categories, subcategories of terms, finally reaching to my 3rd page where the Terms are listed. If the user clicks a Term, the user will be redirected to the Term.aspx page where this Term ID is used to display the details of the term using a data repeater (TermDetails) as a datasource.

 I also happen to have a textbox and a search button (on my first page) where the user enters a search word for a Term, the user will be redirected to the Term.aspx page. In this particular situation, depending on how I set the search criteria, there might be more than one Term details to be displayed. What will happen if I try to set the same data repeater I used for my other data source (From 3 page>TermDetails) as the data source of this serach text box results?

What do I need to do to make it happen?
Or what should I change?
Please let me know.

Thx.
_Esam
0
Comment
Question by:_Esam
2 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 125 total points
ID: 12043446
Hi,

the main think is to keep the structure of the datasource of the repeater control the same ( or at least to have the columns that you want to display )

Regards,
B..M
0
 

Author Comment

by:_Esam
ID: 12048759
Hi,
 Yes, the structure is the same for both cases since they are retrieving the Term details from the same table.
 I was specifically curious, if it is possible to have paging functionality within the repeater for the 2nd case where there might be more than one term details to show. Since Term details will take good amount of space, one term detail is good to show in one page.
 And can I still use this repeater for the 1st case, where I will simply show one result?

 I believe it's possible.
 I should have tried, and then ask then.
 I just wanted to make sure, before I delve into problems..


Thanks.
_Esam
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

786 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