Dear Dnn Guru
We know when we creat a page in DNN, it is a TabId-Based URL and worked as a ascx in default.aspx when load module in this created page. But sometimes we need some aspx pages accompanied with the developped module. That means this builded module consists with not only Edit, Setting, View ascxes, but also with some aspxes. These aspx pages should be called by internal and external of the DNN system. I tried to simply put an aspx page into a fold within DNN web plateform, but not successful. So I hope to get general knoledge for help from you guys, DNN guru.
Best Regards
Jimmy
Normally a DNN module cannot be an aspx. You could place the module on a page with a special theme layout / skin and solve your issue that way (as the Theme is just a page layout, you can create a virtual page in a way) When you want to allow external access to you data and you want to be more future proof it's better to use a web service or something alike.
Dear Joe Craig
Thank you very much for your answer. I don't want the aspx page to be injected into DNN page. I hope the aspx page can be worked as a normal page like in common asp.net web site. When I develop a module by using module termplate, I hope this aspx page is a member in this module. For example, the PayPalIPN.aspx is in store module and working well. But I don't know how it is put into module and can be working well, I don't know the mechanism. This is just what I want to know. I also need to process some return/notify information come from external website. I know I can develop another module to receive the return information as long as I told the external website where the return information should go, but this will do too much job, not like an aspx page easy.
Sorry, but I don't understand what you are trying to accomplish here.
You have a .aspx file in your module folder and it works. (As it should, it's not recommended, but I also have several projects where I do this).
The mechanism is quite simple: if you have a url to an aspx, the page just gets executed.
So, what is it that does not work?
Greetz, Stefan Kamphuis
As Stefan mentions, this can be quite simple. You just include it where you want it, then navigate to it directly.
There are numerous reasons I can think of why I'd suggest against doing this, but there are certainly use cases where this may be necessary. Just know, that when you do include and use ASPX pages, you're basically circumventing all of the benefits of using DNN in the first place, including security, role assignment, visibility, dynamic navigation, and more. In some cases where we've had to resolve hacked DNN websites, this was found to be the cause. :(
If possible, I'd love to hear more about what you're actually trying to accomplish. We may be able to suggest a more future-proof and secure way to accomplish your goals. In fact, there could even be an easy and built-in way to do it that you may not be aware of. DNN has so many features that even those of us who've been using it since the beginning are still learning about them to this day. :)
Dear Will Strohl
Many Thankls for your advices. My website need to communicate with other website's APIs. Every API will notify my website with some information. Basically I develop one module with functions vs one API. I can develop another module for receiving notification from the API and display on ascxes. That means I need to develop two modules vs one API. If many APIs need to develop modules to satisfied, this will double my jobs. So I think if I can develop one module with a specific aspx page for receiving return information and popup to display. This will decrease the develop works. These were what I hope to accomplish.
I totally agree with your opinion that aspx page may resuli in some unsecured factors. So I hope I can learn from you if you have some about the easy and built-in way to achieve the goals. Thanks again!
Thank you very much! I did created a page and drop it to the module fold. The page can be display, but the url was clearly displayed on the adreess box if navigate to this page by normal navigation. I agree with Will Strohl's opinion that this way is not safe. I hope if we can display this page by using DNN url rewrite function.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.