G
Guest
I should appeal to your experience to have a suggest as to solve my problem.
I have developed an application using .Net (1.1) where a handler (derived by
IHttpHandler) intercepts every web request beucase the files, formed the
page, are stored in a database.
No problem happens if the page is a pure html: in fact I fetch it from the
database and output it as reponse. If it contains an image (for example), a
new request is fired afterwards. However a problem happens if the page is
..aspx with a related code-behind file (the file .cs is, on its turn, stored
in the database).
In this case I suppose that I have to compile it on fly, but I don't know
the exact sequence of the operations to do.
Must I read the content of the .aspx file, parser the directive <%@ Page
src="..." %>, fetch the .cs file, save it on disk and compile it on fly..?
Have you a bit code as example to solve this drawback with elegance?.
I will be greatful to you for any suggestion forever.
Thanks and best regards.
Maurizio
I have developed an application using .Net (1.1) where a handler (derived by
IHttpHandler) intercepts every web request beucase the files, formed the
page, are stored in a database.
No problem happens if the page is a pure html: in fact I fetch it from the
database and output it as reponse. If it contains an image (for example), a
new request is fired afterwards. However a problem happens if the page is
..aspx with a related code-behind file (the file .cs is, on its turn, stored
in the database).
In this case I suppose that I have to compile it on fly, but I don't know
the exact sequence of the operations to do.
Must I read the content of the .aspx file, parser the directive <%@ Page
src="..." %>, fetch the .cs file, save it on disk and compile it on fly..?
Have you a bit code as example to solve this drawback with elegance?.
I will be greatful to you for any suggestion forever.
Thanks and best regards.
Maurizio