Modifying output in Repeater

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!!
 
M

Mario Vargas

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
 
A

AspDotNetDeveloper

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,091
Messages
2,570,605
Members
47,225
Latest member
DarrinWhit

Latest Threads

Top