Solved

How to use a repeater for two different data sources?

Posted on 2004-09-13
2
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

710 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