Solved

How to use a repeater for two different data sources?

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

627 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