![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2004
Posts: 37
Rep Power: 0
![]() |
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.
__________________
<span style='color:red'>El Hombre que tiene Amigos, debe mostrarse Amigo...</span> |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Feb 2005
Posts: 16
Rep Power: 0
![]() |
Loop through the controls in your place holder and increment a counter. If your counter is 0 then there are no controls on your place holder.
bobc |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Oct 2004
Posts: 37
Rep Power: 0
![]() |
Thanks you Bobc
__________________
<span style='color:red'>El Hombre que tiene Amigos, debe mostrarse Amigo...</span> |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|