Accessing Textboxes in Repeater Control

Posted by CccTrash on Stack Overflow See other posts from Stack Overflow or by CccTrash
Published on 2010-03-20T21:16:18Z Indexed on 2010/03/20 21:21 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

All the ways I can think to do this seem very hackish. What is the right way to do this, or at least most common?

I am retrieving a set of images from a LINQ-to-SQL query and databinding it and some other data to a repeater. I need to add a textbox to each item in the repeater that will let the user change the title of each image, very similar to Flickr.

How do I access the textboxes in the repeater control and know which image that textbox belongs to?

Here is what the repeater control would look like, with a submit button which would update all the image rows in Linq-to-SQL:

alt text

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#