F
Fredrik Melin
Using Framwork 2.0
Im trying to load a page through reflection (To allow developers at the
cutomer to override a single page without us knowing it in a precompiled
site)
This code works fine
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim MyAssembly As Reflection.Assembly
Dim oItem As Page
MyAssembly = Reflection.Assembly.LoadFile("c:\Documents and
Settings\Mel\My Documents\Visual Studio
2005\Projects\WebSite1\PrecompiledWeb\WebSite1\bin\App_Web_btf81rpr.dll")
If Not MyAssembly Is Nothing Then
oItem = CType(MyAssembly.CreateInstance("ASP.override_aspx",
True), Page)
End If
End Sub
But how do I show the newly loaded page? Does anyone know if its possible?
Ive tried the basic .RenderControl etc, but it seems that I need to do
something more before that with the page to initialize it.
Tips are welcome.
- Fredrik
Im trying to load a page through reflection (To allow developers at the
cutomer to override a single page without us knowing it in a precompiled
site)
This code works fine
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim MyAssembly As Reflection.Assembly
Dim oItem As Page
MyAssembly = Reflection.Assembly.LoadFile("c:\Documents and
Settings\Mel\My Documents\Visual Studio
2005\Projects\WebSite1\PrecompiledWeb\WebSite1\bin\App_Web_btf81rpr.dll")
If Not MyAssembly Is Nothing Then
oItem = CType(MyAssembly.CreateInstance("ASP.override_aspx",
True), Page)
End If
End Sub
But how do I show the newly loaded page? Does anyone know if its possible?
Ive tried the basic .RenderControl etc, but it seems that I need to do
something more before that with the page to initialize it.
Tips are welcome.
- Fredrik