Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
Omiting a record from a bound control (ASP Repeater)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="AC, post: 4289483"] I have an ASP Repeater control I'm using to display data. The data source I'm binding to the control contains more records than what I want do display in my repeater (I'll explain why in a second). I've tried catching the various events (OnItemCreated, OnItemDatabound, OnPostCreated) to check if the item is to be displayed or not. That does work, but the content wtihin the ItemTemplate tags in my repeater that aren't ASP.NET controls are still output (there's a HR and elipses in there). Is there a way to catch an event BEFORE when the item is bound to the current Repeater iteration, but BEFORE it renders the inner HTML of the ItemTemplate. Why don't I just select the needed records from the DB before I bind the datasource? The datasource is a custom collection from MS's Content Management Server 2002 (PostingCollection). I can't filter it based on what I need... I can only sort and grab the entire collection. My only other option is to iterate through the PostingCollection, stuff the ones I want into an array, and then bind the array to the Repeater... not very desireable though. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
Omiting a record from a bound control (ASP Repeater)
Top