Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Change Selected LinkButtons On Paging Repeater

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Resolved [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.

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    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...

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width