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 ?
Copy link to clipboard
Copied
Can you give us an idea of the code you are trying to do this with??!?
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.
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?
Copy link to clipboard
Copied
Yes.
No.
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?
Copy link to clipboard
Copied
No. Don't know but think no.