Skip to main content
February 24, 2015
Question

calling an asp.net program

  • February 24, 2015
  • 1 reply
  • 1392 views

When I put an asp.net program name in a form tag's action attribute, I get a page not found error.

How can I call an asp.net program from a ColdFusion one and pass form element values ?

    This topic has been closed for replies.

    1 reply

    Inspiring
    February 24, 2015

    Can you give us an idea of the code you are trying to do this with??!?

    February 24, 2015

    <html>

       <head>

          <title>

          </title>

       </head>

       <body>

          <cfset va='a'>

          <form name="fa" action="a.aspx" method="post">

             <cfoutput>

                <input name="va" type="text" value="#va#">

             </cfoutput>

             <input name="sa" type="submit" value="click">

          </form>

       </body>

    </html>

    this is the start of a.aspx

    <%@ Page Language="C#" Debug="true" AutoEventWireup="true" %> <%-- CodeFile="Default.aspx.cs"  Inherits="_Default" --%>
    <%@ Import Namespace="System" %>
    <%@ Import Namespace="System.Data" %>
    <%@ Import Namespace="System.Data.SqlClient" %>

    <!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>
             Untitled Page
          </title>

    etc.

    Inspiring
    February 24, 2015

    Is the aspx page within the same folder as the cfm page?

    Are you able to call the aspx page directly in the browser?