Alice
|
Posted: 03/25/2003, 4:46 PM |
|
CC2.05, ASP, with templates:
1. Following closely articles on gotocode I have in header of a page:
Show me {memvar}
2. In the Open Event of the page I fill the variable with some content:
SetVar "memvar", "display me this comment"
3. When run ,this error occurs:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'ParsedBlocks'
/test/TemplateObj.asp, line 65
What must I do to seed and display a variable??
Thanks,
Alice
|
|
|
cornwell
|
Posted: 03/26/2003, 12:53 PM |
|
You wont get it work from page header but it's OK if you put the event code
in form header. The output can still go in the page header section.
When you read the asp code generated you'll see the template is not loaded
until after the page open event, so the setvar call bombs beacuse the other
functions aren't loaded yet.
"Alice" <keijen@ozemail.com.au> wrote in message
news:b5qt9v$oai$1@news.codecharge.com...
> CC2.05, ASP, with templates:
>
> 1. Following closely articles on gotocode I have in header of a page:
> Show me {memvar}
>
> 2. In the Open Event of the page I fill the variable with some content:
> SetVar "memvar", "display me this comment"
>
> 3. When run ,this error occurs:
>
> Error Type:
> Microsoft VBScript runtime (0x800A01A8)
> Object required: 'ParsedBlocks'
> /test/TemplateObj.asp, line 65
>
> What must I do to seed and display a variable??
>
> Thanks,
> Alice
>
>
|
|
|
|