Solved

How to use a repeater for two different data sources?

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

11 Experts available now in Live!

Get 1:1 Help Now