see07 Posted March 4, 2005 Posted March 4, 2005 Hello: In a web form I�m using a place holder, into it, which contains or not a web user control created ado with next code: Example.Controls.C1lear(); Control control = this.Page.LoadControl("WebUserControl3.ascx"); Example.Controls.Add(control); Where Example is my place holder. Is there some way to ask if place holder contains a web user control or if it�s empty? I�ll thank you your help. A.L. Quote
*Gurus* Derek Stone Posted March 4, 2005 *Gurus* Posted March 4, 2005 Iterate over the Controls collection, checking the types returned. Quote Posting Guidelines
see07 Posted March 4, 2005 Author Posted March 4, 2005 It's working through: Examples.HasControls(), or Examples.Controls.Count; thanks you very much. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.