Modifying output in Repeater

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Modifying output in Repeater

    I am having trouble figuring out how to modify the databound field data that
    is bound to a Repeater control, before it is output to the browser. I'm
    trying to add a hyperlink, with some querystring parameters, and one of the
    parameters would be the record number of the row that is being processed.

    I did this all the time in ASP but where and how exactly to do it in ASP
    ..Net is perplexing me. I have the repeater control all setup, and it's
    displaying my data just fine, I just need to figure out how to grab the data
    before it's output, and add some formatting to an <asp:hyperlink> control.

    Any help would be appreciated!!


    AspDotNetDeveloper Guest

  2. Similar Questions and Discussions

    1. Modifying pages
      I have already built my site and have added some extra content to my pages. Each page has a footer with 3 buttons - Right now if I move the header...
    2. Modifying with odd characters
      My primary key can be numbers or text and sometimes has # and + in its value. When I try to modify values with # or + it will not allow me to pull...
    3. modifying extensions
      I'm using Web Photo Album 2.2 and need to find a way to add an option for the navigational elements. Currently, it allows you to choose sequential...
    4. Modifying a HP/GL2 output file using Perl
      Hi gurus, I read some docs about Perl and I think it would be the best language to suit my acutal need. I have to change plotter pen widths...
    5. Secure Database-Driven output to Web-Controls like Repeater
      scenario: users can store data (guestbook entries, ther usernames and so on) on a database-driven website and i have to care about that they don't...
  3. #2

    Default Re: Modifying output in Repeater

    Take a look at the ItemDataBound event. You can use it to dynamically
    manipulate an existing or add a new control to a particular Cell within the
    current ListItem.

    Mario

    "AspDotNetDeveloper" <aspdotnetdeveloper@hotmail.com> wrote in message
    news:%23q9WPXGTDHA.1588@TK2MSFTNGP11.phx.gbl...
    > I am having trouble figuring out how to modify the databound field data
    that
    > is bound to a Repeater control, before it is output to the browser. I'm
    > trying to add a hyperlink, with some querystring parameters, and one of
    the
    > parameters would be the record number of the row that is being processed.
    >
    > I did this all the time in ASP but where and how exactly to do it in ASP
    > .Net is perplexing me. I have the repeater control all setup, and it's
    > displaying my data just fine, I just need to figure out how to grab the
    data
    > before it's output, and add some formatting to an <asp:hyperlink> control.
    >
    > Any help would be appreciated!!
    >
    >

    Mario Vargas Guest

  4. #3

    Default Re: Modifying output in Repeater

    Thanks Mario.... I think your advice is leading me in the right direction.

    "Mario Vargas" <mariovargas@thecourier.com> wrote in message
    news:eHce%23%23GTDHA.1992@TK2MSFTNGP12.phx.gbl...
    > Take a look at the ItemDataBound event. You can use it to dynamically
    > manipulate an existing or add a new control to a particular Cell within
    the
    > current ListItem.
    >
    > Mario
    >
    > "AspDotNetDeveloper" <aspdotnetdeveloper@hotmail.com> wrote in message
    > news:%23q9WPXGTDHA.1588@TK2MSFTNGP11.phx.gbl...
    > > I am having trouble figuring out how to modify the databound field data
    > that
    > > is bound to a Repeater control, before it is output to the browser. I'm
    > > trying to add a hyperlink, with some querystring parameters, and one of
    > the
    > > parameters would be the record number of the row that is being
    processed.
    > >
    > > I did this all the time in ASP but where and how exactly to do it in ASP
    > > .Net is perplexing me. I have the repeater control all setup, and it's
    > > displaying my data just fine, I just need to figure out how to grab the
    > data
    > > before it's output, and add some formatting to an <asp:hyperlink>
    control.
    > >
    > > Any help would be appreciated!!
    > >
    > >
    >
    >

    AspDotNetDeveloper Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139