• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

calling an asp.net program

New Here ,
Feb 24, 2015 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.2K

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
community guidelines
Advocate ,
Feb 24, 2015 Feb 24, 2015

Copy link to clipboard

Copied

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

Votes

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
community guidelines
New Here ,
Feb 24, 2015 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.

Votes

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
community guidelines
Advocate ,
Feb 24, 2015 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?

Votes

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
community guidelines
New Here ,
Feb 24, 2015 Feb 24, 2015

Copy link to clipboard

Copied

Yes.

No.


Votes

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
community guidelines
Advocate ,
Feb 25, 2015 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?

Votes

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
community guidelines
New Here ,
Feb 25, 2015 Feb 25, 2015

Copy link to clipboard

Copied

LATEST

No. Don't know but think no.

Votes

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
community guidelines
Resources
Documentation