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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Usign a  aspx formUsign a aspx form
Previous
 
Next
New Post
7/10/2009 6:50 AM
 

Hi All,
I am writing an application that uses a South African based CC gateway.  This gateway requires that a form be posted to their site with all the relevant information on it.

To achieve this I have created a page called NetCashForward.aspx which contains the code.

<%

@ Page Language="vb" AutoEventWireup="false" CodeBehind="NetCashForward.aspx.vb" Inherits="SBIS.PortalCreator.NetCashForward1" %>

<!

<

<

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">html xmlns="http://www.w3.org/1999/xhtml" >head runat="server">

 

</

<

<title></title>head>body onload="document.PayForSite.submit();">

 

 

 

 

<form method="post" name="PayForSite" id="PayForSite" action="https://gateway.netcash.co.za/vvonline/ccnetcash.asp"> <input id="m_1" type="hidden" name="m_1" runat="server" /> <input id="m_2" type="hidden" name="m_2" runat="server" /> <input id="m_3" type="hidden" name="m_3" runat="server" />

 

 

 

 

 

 

 

 

 

 

 

</

</

 

Public

 

 

 

<input id="p1" type="hidden" name="p1" runat="server" /> <input id="p2" type="hidden" name="p2" runat="server" /> <input id="p3" type="hidden" name="p3" runat="server" /> <input id="p4" type="hidden" name="p4" runat="server" /> <input id="p10" type="hidden" name="p10" value="" runat="server" /> <input id="Budget" type="hidden" name="Budget" value="N" runat="server" /> <input id="m_4" type="hidden" name="m_4" value="Extra 1" runat="server" /> <input id="m_5" type="hidden" name="m_5" value=" Extra 2" runat="server" /> <input id="m_6" type="hidden" name="m_6" value=" Extra 3" runat="server" /> <input id="m_9" type="hidden" name="m_9" value="jack@test.com" runat="server" /> </form>body>html> 
I assign the values to the form from the code below which is part of NetCashForward.aspx.vb. Partial Class NetCashForwardInherits System.Web.UI.PageProtected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadIf Not (Session("NetCashUsername") Is Nothing) Then

 

 

Me.m_1.Value = Session("NetCashUsername").ToStringEnd If

 

If Not (Session("NetCashPassword") Is Nothing) Then

 

 

Me.m_2.Value = Session("NetCashPassword").ToStringEnd If

 

If Not (Session("TextBoxNetCashPIN") Is Nothing) Then

 

 

Me.m_3.Value = Session("TextBoxNetCashPIN").ToStringEnd If

 

If Not (Session("TextBoxNetCashTerminalNumber") Is Nothing) Then

 

 

Me.p1.Value = Session("TextBoxNetCashTerminalNumber").ToStringEnd If

 

If Not (Session("UniqueCose") Is Nothing) Then

 

 

Me.p2.Value = Session("UniqueCose").ToStringEnd If

 

If Not (Session("InitialFee") Is Nothing) Then

 

 

Me.p4.Value = Session("InitialFee").ToStringEnd If

 

If Not (Session("") Is Nothing) Then

 

 

 

Me.p1.Value = Session("").ToStringEnd If

 

End

 

Server Error in '/DotNetNuke/DesktopModules/SBIS.PortalCreator' Application.

Configuration Error

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 

End Sub ClassWhen I try to process payment, by loading this form I get the error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The code subdirectory '/DotNetNuke/DesktopModules/SBIS.PortalCreator/App_Code/HTML/' does not exist.

Source Error:

Line 110:      -->
Line 111:      <codeSubDirectories>
Line 112:        <add directoryName="HTML" />
Line 113:      </codeSubDirectories>
Line 114:    </compilation>

Source File: c:\inetpub\wwwroot\dotnetnuke\web.config    Line: 112


 
Please help.
Thank you
 

 
New Post
7/10/2009 7:30 AM
 

you probably created a seperate application in a subfolder in dnn. web.config settings of the parentapplication are inherited.

 


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
7/14/2009 3:45 AM
 

Ok, so just to be clear on that,  I am using a WAP to write this app and created a V Directry in the site, is that what is causing this issue?

Thanx

 
New Post
7/21/2009 2:23 PM
 

Your WAP projects web.config file is inheriting its parent web.config file and this is causing the issue. If the web.config file in your WAP project is not necessary then you can remove the file and it will resolve the problem. If this web.config is necessary then you need to create a directory named HTML under app_code folder in your WAP project.

Usually you can remove any inherited configuration in your web.config file using remove and clear. But this remove and clear does not works with codeSubDirectories although according to msdn it should work . So if you write

  <system.web>
      <compilation>
        <codeSubDirectories>
          <remove directoryName="/mysite/code/mySubDir"/>
        </codeSubDirectories>
       </compilation>
   </system.web>

it will not work (may be its a bug of asp.net !!!).

I dont know how you are creating your WAP project. I like to develop my WAP module by following this method.

 

 

 
New Post
7/21/2009 3:28 PM
 

Vexander, If I may put in my 2-cents...

Paypal does something similar, I suggest taking a look at the code in the Admin\Sales folder in the Source code version to see how the DNN core uses it.  They also use aspx pages for both the outbound submission and the inbound confirmation.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Usign a  aspx formUsign a aspx form


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