CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 How to add headers?

Print topic Send  topic

Author Message
csierra

Posts: 123
Posted: 07/22/2009, 11:51 PM

I am trying to add some headers using plain script, no isapi, If i do
  
<% Public sAction   
Response.Expires = now() - 10000  
Response.Expires = 0  
Response.AddHeader "pragma","no-cache"  
Response.CacheControl = "no-cache"  
%>  
In a plain asp page, it works fine; however codecharge template processing tech stills being a mistery to me (steps as per how it does, what it does first, then, after and finally) so I just can´t add this to the asp code page of a CCS generated plain page, it is causing errors and this is a must to avoid crappy IIS to catch includables...

Thnaks for sharing
_________________
Yes! I Can!!!
View profile  Send private message
Oper


Posts: 1195
Posted: 08/05/2009, 8:59 AM

Do you want this for entery appliaction
or just by specific Pages?


_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
csierra

Posts: 123
Posted: 08/05/2009, 9:36 AM

Just for specific pages.Í´ve tried many times, many different ways, no joy. If I just make a plain .asp file works just fine, but not with templated pages...
_________________
Yes! I Can!!!
View profile  Send private message
Oper


Posts: 1195
Posted: 08/05/2009, 4:01 PM

Remember dont use the Grey part.

  
<%@ CodePage=28591 %>  
<%  
'Include Common Files @1-93D1ADC6  
%>  
<!-- #INCLUDE FILE=".\Common.asp"-->  
<!-- #INCLUDE FILE=".\Cache.asp" -->  
<!-- #INCLUDE FILE=".\Template.asp" -->  
<!-- #INCLUDE FILE=".\Sorter.asp" -->  
<!-- #INCLUDE FILE=".\Navigator.asp" -->  
<!-- #INCLUDE FILE=".\Services.asp" -->  
<%  
'End Include Common Files  
  
Response.CacheControl="public"  
Response.AddHeader "Pragma", "public"  
response.Buffer=false  
response.expires=-1  
  
'Initialize Page @1-79D236E1  
' Variables  
Dim PathToRoot, ScriptPath, TemplateFilePath  
Dim FileName  
Dim Redirect  
Dim IsService  
Dim Tpl, HTMLTemplate  
Dim TemplateFileName  
Dim ComponentName  
Dim PathToCurrentPage  
Dim Attributes  

_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.