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

find web user control using foreach in DataList

P: n/a
Hi,
I want to find the web user control in the datalist. I iterate the datalist
using foreach statement in the DataListItem and in thi DataListItem I
iterate all Controls objects but I can't find web user control, but I found
that it is in the namedcontrols. How can I find the web user control using
foreach in the datalist
Thanks.
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Can you show us the code you are using? How are you testing each
object to know if it is the control you are looking for?

Have you considered using FindControl instead?
http://odetocode.com/Articles/116.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Feb 2005 22:11:56 +0200, "caldera" <ca*****@nomail.com>
wrote:
Hi,
I want to find the web user control in the datalist. I iterate the datalist
using foreach statement in the DataListItem and in thi DataListItem I
iterate all Controls objects but I can't find web user control, but I found
that it is in the namedcontrols. How can I find the web user control using
foreach in the datalist
Thanks.


Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.