Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

How to redirect to the same page ?

$
0
0

i am using the following code to open a file on a cfm page ie.,when user clicking on a hyperlink it opens the cfm page and displays the pop up to save the file 

 

<cfif isdefined("url.isemailPopUP") and trim(url.isemailPopUP) eq "Y">


<cfif isdefined("url.fileName")>

<cfif #find(url.fileName,#fileWithThePath#,1)#>


<cfheader name="Content-Disposition" value="attachment; filename=#url.fileName#">

<cfcontent type="text/plain" file="#fileWithThePath#"> 

 

</cfif>

</cfif>

 

</cfif>

 

but after the file has been downloaded .it does not displays the contents of the page or  redirects to the same page ....

 

i have used cflocation. but it does not help....


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>