Hi, I want to embed aspx web form in aspNetPanel.
Because, if I compiled and deploy the WiseJ project, the aspx forms which are used in aspNetPanel are not included in the compilation. I want to copy the webform explicitly in the webserver, like default.htm. If somebody removes the file or change the script, then aspNetPanel won’t work correctly. So, to secure the aspx webforms for aspNetPanel, is there any way to embed?
Your help is more appreciated.
Embed an aspx in the assembly?
You could but it’s a bit difficult and may create other issues with ASP.NET.
You’d have to register a VirtualPathProvider (https://docs.microsoft.com/en-us/dotnet/api/system.web.hosting.virtualpathprovider?view=netframework-4.8) and a VirtualFile.
We have done it for the AspNetControl, you can get the source code here: https://github.com/iceteagroup/wisej-extensions/blob/2.1/Wisej.Web.Ext.AspNetControl/HttpModule.cs
HTH, but this is beyond the Wisej scope.
Please login first to submit.