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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...adding existing aspx code to DotNetNukeadding existing aspx code to DotNetNuke
Previous
 
Next
New Post
6/2/2011 5:22 PM
 
I'm new to DotNetNuke and not a developer, so I start playing and create new portal I get the concept and can create website using modules, now I get to the point where I want to add existing code from old website that was develop as .net I cannot find way of doing this.Basically at the old website we had simple subscription page where people would put their email address and click subscribe, this action would then verify if email exist in database and if not insert it to table in another MSSQL database, I have .aspx and .aspx.vb 2 files which works perfectly fine but I don't see how can I get code of these 2 files and import into website I just built using DotNetNuke, I'd like this subscription to be part of the hone screen, is this doable?







same question aplies to other pieces of codes that are provided by 3rd party, for instance I have paypal button that I want to add to one of the pages how do I do this?



 
New Post
6/2/2011 8:49 PM
 
You can either run these alonside the DNN application (outside of DNN) or you can migrate them to a DNN module. There are a lot of reallg good "how to build a dnn module" tutorials available. Not being a developer is going to be a problem however.

Adding PayPal code is something you can do within the HMTL editor. PayPal will generate your code then you can past it into the editor on a page using the HTML view of the text editor.


Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
New Post
6/3/2011 3:27 PM
 
ok so let say I will run this custom code as another website so I'm trying to create button on home page created in DNN that will open this "outside" website with following code



<html>

<head>

<script type="text/javascript">

function open_win()

{

window.open("http://www.dotnetnuke.com","_blank","..., location=yes, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=800, height=400");

}

</script>

</head>

<body>

<form>

<input type="button" value="Open Window" onclick="open_win()">

</form>

</body>

</html>



button shows up on my home page, but when I click on it does nothing and I see error on page and popup does not open



since I cannot add my custom asp.net code to web page in DNN unless it is build as module and I'm ok with running it as popup box redirectling to another website how can I do this?

 
New Post
6/3/2011 8:01 PM
 
You can't put a FORM in an HTML module. Just transfer that Window.Open to your link

something like onclick="window.open()"

Though I must admit my javascript is unfortunately rusty

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
6/7/2011 9:37 AM
 
Thnaks I got it to work with link to external website hosting my subscription aspx page I wish this could be done as part of the home page I does not look as good as I'd like when I need to open another window just for this one purpose, but at least it works
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...adding existing aspx code to DotNetNukeadding existing aspx code to DotNetNuke


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