Solved

How to use a repeater for two different data sources?

Posted on 2004-09-13
2
266 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

912 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

21 Experts available now in Live!

Get 1:1 Help Now