This is a migrated thread and some comments may be shown as answers.

Dinamically load controls: how to manage their events

1 Answer 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jean-Marc
Top achievements
Rank 1
Jean-Marc asked on 05 Sep 2011, 08:34 AM
hello everyone, it's not a telerik issue, hope someone will answear anyway

My aspx page loads user controls (ascx) dinamically
code example:
ASCXlist.Add("/Admin/ASCX/Seasons.ascx")
ASCXlist.Add("/Admin/ASCX/Arrangements.ascx")
Dim UControl As Control PlaceHolder_UC.Controls.Clear()
For Each l As String In ASCXlist
 UControl = New Control
 UControl = CType(LoadControl(l), UserControl)
 PlaceHolder_UC.Controls.Add(UControl)
Next

those ascx raise events that I have to catch on aspx page
I don't have any idea how to do it.
Having load user controls dinamically I don't know where to write the code, how do i catch them?

Thank you

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Oct 2011, 07:12 AM
Hello Jean,

Take a look at the following demo.
Ajax / Loading User Controls.

Thanks,
Princy.
Tags
General Discussions
Asked by
Jean-Marc
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or