spaceclown
|
| Posted: 02/13/2002, 7:08 AM |
|
I have an .asp page previously written and would like to diplay it with the header and footer made with CC. I am assuming I use a custom show in the events section for the page and not the form. This is the link that I need inserted to show the page ../metrics/sms/dorepo.asp?RPTYEAR=2000&Location=GL My question is where in the custom show do I put this?
'===============================
' Display page
'-------------------------------
' Load HTML template for this page
'-------------------------------
LoadTemplate sAppPath & sTemplateFileName, "main"
'-------------------------------
' Load HTML template of Header and Footer
'-------------------------------
LoadTemplate sHeaderFileName, "Header"
LoadTemplate sFooterFileName, "Footer"
'-------------------------------
SetVar "FileName", sFileName
'-------------------------------
' Set page styles
'-------------------------------
SetVar "PageBODY", stylePageBODY
SetVar "FormTABLE", styleFormTABLE
SetVar "FormHeaderTD", styleFormHeaderTD
SetVar "FormHeaderFONT", styleFormHeaderFONT
SetVar "FieldCaptionTD", styleFieldCaptionTD
SetVar "FieldCaptionFONT", styleFieldCaptionFONT
SetVar "DataTD", styleDataTD
SetVar "RecordSeparatorTD", styleRecordSeparatorTD
SetVar "DataFONT", styleDataFONT
SetVar "ColumnFONT", styleColumnFONT
SetVar "ColumnTD", styleColumnTD
SetVar "HeaderFormTABLE", styleHeaderFormTABLE
SetVar "HeaderFormHeaderTD", styleHeaderFormHeaderTD
SetVar "HeaderFormHeaderFONT", styleHeaderFormHeaderFONT
SetVar "HeaderFieldCaptionTD", styleHeaderFieldCaptionTD
SetVar "HeaderFieldCaptionFONT", styleHeaderFieldCaptionFONT
SetVar "HeaderDataTD", styleHeaderDataTD
SetVar "HeaderDataFONT", styleHeaderDataFONT
SetVar "HeaderColumnTD", styleHeaderColumnTD
SetVar "HeaderColumnFONT", styleHeaderColumnFONT
SetVar "HeaderRecordSeparatorTD", styleHeaderRecordSeparatorTD
'-------------------------------
' Step through each form
'-------------------------------
footer_Show
Header_Show
GL2001_Show
'-------------------------------
' Process page templates
'-------------------------------
Parse "Header", False
Parse "Footer", False
Parse "main", False
'-------------------------------
' Output the page to the browser
'-------------------------------
Response.write PrintVar("main")
Thanks
|
|
|
 |
Alex Alexapolsky
|
| Posted: 02/13/2002, 8:37 AM |
|
use this code
SetVar "main" , asp_page
above
Parse "main", False
but before you should get your asp page into asp_page variable via Inet.Ctls
control like it's done in MetaSearch example shipped with CC
|
|
|
 |
spaceclown
|
| Posted: 02/13/2002, 1:44 PM |
|
Can I get a simplier answer, I only have a simple mind.
|
|
|
 |
|