M
Mythran
I have 2 projects, a Web project and a Class Library project. In the class
project, I have a class called Class1. Pseudo below:
Class Class1
...
Public Static Sub Generate()
If True
' Create Page and display to user.
End If
End Sub
End Class
The ASPX page follows:
Class MyASPXPage
...
Public Sub Page_Load(...)
MyClassProject.Class1.Generate()
End Sub
End Class
How can I make the Generate() method create a new aspx page with a web
control (Button) that, when clicked, will execute the event handler stored
in Class1? The new aspx page we want to be created does not exist on the
web server. We want to create it ourselves and possibly store it as a
resource in the Class Library project.
Basically, we want to include this class in any of our WebUI projects and if
certain criteria are met, this page would be loaded and prompt the user for
input. We do not want to create a new web application out of it (which is
what we are currently doing).
Any and all help appreciated.
Thanks,
Mythran
project, I have a class called Class1. Pseudo below:
Class Class1
...
Public Static Sub Generate()
If True
' Create Page and display to user.
End If
End Sub
End Class
The ASPX page follows:
Class MyASPXPage
...
Public Sub Page_Load(...)
MyClassProject.Class1.Generate()
End Sub
End Class
How can I make the Generate() method create a new aspx page with a web
control (Button) that, when clicked, will execute the event handler stored
in Class1? The new aspx page we want to be created does not exist on the
web server. We want to create it ourselves and possibly store it as a
resource in the Class Library project.
Basically, we want to include this class in any of our WebUI projects and if
certain criteria are met, this page would be loaded and prompt the user for
input. We do not want to create a new web application out of it (which is
what we are currently doing).
Any and all help appreciated.
Thanks,
Mythran