Modifying output in Repeater

  • Thread starter Thread starter AspDotNetDeveloper
  • Start date Start date
A

AspDotNetDeveloper

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!!
 
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
 
Back
Top