Here is my situation.
I create a dll file that includes the name WebUserControl "EditRecord" and inside the WebUserControl, there is a RadGrid.
EditRecord is the Embed Resource DLL. At the exit I have this: ExampleCustomModule.dll.
Dll file is saved in the database. When necessary, I made the following code:
When I check: myControl.Controls.Count it m'inidique I 0 control.
I'm putting as much control, there is nothing. I also try with: LoadControl (controlType, Nothing) but no success.
Have you any idea how I should do to recreate my control but also contains the controls inside?
Is my approach to backup my dll in the database is wrong or should I save in my bin?
I create a dll file that includes the name WebUserControl "EditRecord" and inside the WebUserControl, there is a RadGrid.
EditRecord is the Embed Resource DLL. At the exit I have this: ExampleCustomModule.dll.
Dll file is saved in the database. When necessary, I made the following code:
Dim
assembly
As
System.Reflection.
Assembly
= System.Reflection.
Assembly
.Load(data)
Dim
controlType
As
System.Type = assembly.
GetType
(
"ExampleCustomModule.EditRecord"
)
Dim
myControl
As
Control =
DirectCast
(Activator.CreateInstance(controlType), Control)
When I check: myControl.Controls.Count it m'inidique I 0 control.
I'm putting as much control, there is nothing. I also try with: LoadControl (controlType, Nothing) but no success.
Have you any idea how I should do to recreate my control but also contains the controls inside?
Is my approach to backup my dll in the database is wrong or should I save in my bin?