|
-
Oct 22nd, 2008, 11:01 AM
#1
[RESOLVED] [2005] Change Selected LinkButtons On Paging Repeater
I have put together a paging Repeater control based on information from a separate Repeater, similar to a post here. The seperate Repeater has a paged datasource, and all the Paging Repeater does is get the number of pages in the paged datasource, and binds the number list to its own datasource. The ItemTemplate displays a LinkButton with the page number for each number in the list, and has an Itemcommand with a CommandArgument which changes the current page number in viewstate and re-loads the data in the seperate Repeater.
The problem: How to change the look of the linkbutton when it is clicked? I want the current linkbutton that they chose to display some other way...
Last edited by gigemboy; Oct 22nd, 2008 at 11:05 AM.
-
Oct 22nd, 2008, 12:31 PM
#2
Re: [2005] Change Selected LinkButtons On Paging Repeater
Solved the problem. After databinding the pages repeater, looped through controls in the repeateritem to grab a reference to the Linkbutton, then set enabled to false...
-
Oct 23rd, 2008, 04:10 AM
#3
Re: [RESOLVED] [2005] Change Selected LinkButtons On Paging Repeater
Or you could set the CssClass to something different.
Or you could use .Styles.Add to add inline CSS styles.
Or you could remove the hyperlink and put a label instead so that it appears as text rather than a link.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|