Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Can I inject/execute server side scripts in DNN page without creating custom module?Can I inject/execute server side scripts in DNN page without creating custom module?
Previous
 
Next
New Post
12/4/2008 6:01 PM
 

Hello, all..

I would like some suggestions on how to incorporate/execute some generic server side script of mine within a DNN page without having to develop a custom module.  I figure there could be a way to do so using an HTML, IFrame or other module. Perhaps there is a way to import the needed namespaces and inject the code somewhere.

Just so you have an idea of my development skill level: I'm a DNN beginner, but can install, skin and use basic modules. I have years of experience in development, but my programming background is procedure oriented. I have done some windows development with VB and some simple web development scripting with ASP (feedback forms, sending emails).

I'd like to migrate a simple stand-alone site to DNN as quickly as possible without having to learn custom DNN module development and integration. (I can make the code elegant later).

My existing non-DNN site has simple scripts to perform a couple of simple functions.
1. At the top of the home page, a script composes and sends an email using system.net.mail. (which it seems I shouldn't use)
2. I have a feedback form which also composes and sends an email.

Does anyone have an idea for an approach to use or point me to appropriate reference material?

Thank you.

 
New Post
12/5/2008 9:44 AM
 

DNN has it owns architecture. By following DNN's architecture, your module can utilitize many benefit from it's framework.

If you are putting your application without integration with DNN architecture, I think DNN will not gave you a lot of benefit. Learning curve to create custom module is not too long, especially if you had an experience with some programming technique before.

My suggest is, spend a time for learning custom module development.


Regarding to your question, can you please explain about your application's flow? If you just send an email in periodic time, maybe you can use DNN scheduler and put your code inside custom library to execute. Or maybe you can create your own HttpHandler to handle your scenario. If your user can enter feedback form, then you have to choose one of the two :

- Using Feedback module (or maybe buying some cheap module in Snowcovered or DNN marketplace)
- Create custom module

CMIIW.

HTH.

 

 
New Post
12/8/2008 11:06 PM
 

Sorry I took a while to reply.  I was expecting email notification about reply from the forum, but I didn't get any.

I understand the benefits of creating a custom module integrated to the DNN framework.  I don't intend to work outside the module/framework always.  I just want to see if there's a quick work around to inserting and executing custom code on a page.  The learning curve for module development may not seem too long, but it's not a couple of hours either.

About the flow, I have two requirements as I said on the original post: One is a script that executes OnLoad of the Home page (whenever a visitor requests the page), composes an email and sends it. (not time scheduled)  The other is a feedback form that takes answers submitted, composes an email and sends it.

It would like to work on the first one first, which needs to execute OnLoad of the page.  The second could maybe be solved using an IFrame with my code on a page.

Thanks.

PS: I'll take a look at HTTPHandler techniques.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Can I inject/execute server side scripts in DNN page without creating custom module?Can I inject/execute server side scripts in DNN page without creating custom module?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out