User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 373,932 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,241 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 930 | Replies: 0
Reply
Join Date: Sep 2007
Posts: 77
Reputation: justapimp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
justapimp justapimp is offline Offline
Junior Poster in Training

Help Calling .cfm page from ASP.NET

  #1  
Feb 1st, 2008
I have coldfusion file that I am calling from my ASP page using the response.redirect() method. Inside my url string, I am passing a variable/value pair as shown below.
Response.Redirect("http://www.gpsit.com/tools/glr/index.cfm?acctuid=" + accntData.Uid);
The page that I am calling is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>GPSIT GLR (GPS Location Recorder) Scheduler</title>
	<script type="text/javascript" src="../../includes/js/calendar.js"></script>
	<script type="text/javascript" src="../../includes/js/calendar-en.js"></script>
	<script type="text/javascript" src="../../includes/js/calendar-setup.js"></script>
	<script type="text/javascript" src="../../includes/js/formcheck.js"></script>
	<script>
	var isHREF = false; //this is used to override a goTo event when the user clicks directly on a link (protects against double posts)

	function goTo(url) {
	    if (!isHREF) {
	        window.location.href = url;
	    }
	}
	</script>

	<link rel="stylesheet" type="text/css" media="all" href="../../includes/css/calendar-system.css" title="system" />	
	<link rel="stylesheet" href="../../includes/css/gpsCart_style.css">
</head>

<cfscript>
	intArr = arrayNew(2);
	//intArr[1][1] = '30 Seconds';
	//intArr[1][2] = 0.5;
	
	//intArr[2][1] = '1 Minute';
	//intArr[2][2] = 1;
	
	intArr[1][1] = '3 Minutes';
	intArr[1][2] = 3;
	
	intArr[2][1] = '5 Minutes';
	intArr[2][2] = 5;
	
	intArr[3][1] = '10 Minutes';
	intArr[3][2] = 10;
	
	intArr[4][1] = '15 Minutes';
	intArr[4][2] = 15;
	
	intArr[5][1] = '30 Minutes';
	intArr[5][2] = 30;
	
	zoneArr = arraynew(1);
	zoneArr[1] = 'PST';
	zoneArr[2] = 'CST';
	zoneArr[3] = 'EST';
</cfscript>

<body>
<cfif isdefined("cookie.acctuid")>
		<cfif isdefined("url.acctuid")>
		<cfcookie name="acctuid" value="#url.acctUID#"> 
		</cfif>
<cfelse>
	<cfif isdefined("url.acctuid")>
		<cfcookie name="acctuid" value="#url.acctUID#"> 
	<cfelse>
		<cfset v = "error">
	</cfif>
</cfif>

<cfif isdefined("action")>
	<cfinclude template="glr_actions.cfm">
</cfif>
<cfparam name="v" default="main">

<cfswitch expression="#v#">
	<cfcase value="main">
		<cfinclude template="view_devices.cfm">
	</cfcase>
	<cfcase value="create">
		<cfinclude template="disp_Schedule.cfm">
	</cfcase>
	
	<cfcase value="error">
	<cfoutput>#session.acctuid#</cfoutput>
		An Account has not been specified.
	</cfcase>

</cfswitch>


</body>
</html>

The accntData.Uid is the account information needed to create the session for that page. The call to the page goes well and the account comes up with no problem. However, once in the account, nothing can be accomplished because the account information seems to get lost when I tried to access the other .cfm page.

Can anyone help?
(thanks)
Last edited by justapimp : Feb 1st, 2008 at 4:51 pm.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ColdFusion Marketplace
Thread Tools Display Modes

Other Threads in the ColdFusion Forum

All times are GMT -4. The time now is 6:07 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC