Highlighted

calling an asp.net program

New Here ,
Feb 24, 2015

Copy link to clipboard

Copied

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 ?

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

calling an asp.net program

New Here ,
Feb 24, 2015

Copy link to clipboard

Copied

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 ?

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 24, 2015 0
Advocate ,
Feb 24, 2015

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 24, 2015 0
New Here ,
Feb 24, 2015

Copy link to clipboard

Copied

<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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 24, 2015 0
Advocate ,
Feb 24, 2015

Copy link to clipboard

Copied

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

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 24, 2015 0
New Here ,
Feb 24, 2015

Copy link to clipboard

Copied

Yes.

No.


Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 24, 2015 0
Advocate ,
Feb 25, 2015

Copy link to clipboard

Copied

Then it wont be anything wrong with Coldfusion. What you are trying to do is perfectly possible,  but if you are unable to even run the page in the browser directly then you have bigger issues. Are you sure its even on the server you are calling it from? Is asp enabled via IIS on this server etc?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 25, 2015 0
lwfg LATEST
New Here ,
Feb 25, 2015

Copy link to clipboard

Copied

No. Don't know but think no.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 25, 2015 0