By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,537 Members | 1,471 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,537 IT Pros & Developers. It's quick & easy.

Problem addressing my textboxes, what are in a repeater

P: n/a
Hi all,

I'm having a problem. I have a repeater that displays two textboxes per row.
I wasn't sure how to address them but someone suggested that I use the
Item.FindControl method to identify each textbox and just let asp.net name
them automatically.

I thought that would be fine.

My current problem is, the items that are stored in the Items collection are
actually RepeaterItems and not textbox items. I can't figure out how to get
the value in the textbox out of the RepeaterItem class.

Can anyone help?

Thanks all

Simon
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,
The RepeatorItem has a findcontrol method which you can use to get the
textbox object out of it.

Regards,
Zuzar L.

"Simon" <sh856531@microsofts_free_email_service.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hi all,

I'm having a problem. I have a repeater that displays two textboxes per row. I wasn't sure how to address them but someone suggested that I use the
Item.FindControl method to identify each textbox and just let asp.net name
them automatically.

I thought that would be fine.

My current problem is, the items that are stored in the Items collection are actually RepeaterItems and not textbox items. I can't figure out how to get the value in the textbox out of the RepeaterItem class.

Can anyone help?

Thanks all

Simon

Nov 18 '05 #2

P: n/a
Hi

Can you show me how to do that?

I don't know the name of the textboxes as they are named automatically. I
could loop through them and test to see if they are textboxes but I can't
get that to work

Thanks

Simon
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.