| Mei Ying \(MVP\) 2004-08-25, 4:19 am |
| Hi Susan
The first approach should work. Just ensure that option
explicit isn't declared on your custom ASP script and that
resolution.inc is included only once.
If you can, post your script here and we can take a look
at it.
regards
Mei Ying
>-----Original Message-----
>I am trying to create postings from a script,
>unfortunately in cms 2001. I found what seems to be the
>perfect sample code (thanks to links suggested earlier
>this week) but unfortunately I've failed to get it to
>work, or even a small portion of it, though I tried
>everything I can think of. Here is the sample script:
>
>"Importing Existing HTML Content into Microsoft Content
>Management Server" found here:
>http://msdn.microsoft.com/library/default.asp?
>url=/library/en-us/dnmscms01/html/imphtmlcnt.asp
>
>I've tried running it as a separate script in /nr/shared,
>I've tried incorporating it into a template, I've tried
>half and half. I keep running into the same two
>(seemingly simple) problems:
>
>(1) when it's a standalone script, it complains at the
>first real line in resolution.inc (which goes to
>authenticate.inc) "option explicit".
>
>(2) This doc and the api help seem to say I can change to
>mode update by doing a redirect as shown here, but it's
>not working, any suggestions?
>
>If Not Autosession.IsModeUpdate Then
> ' redirect to this file, but with an update mode query
>string added
> Response.Redirect("thisFile?" + _
> Autosession.RootChannel.QueryStringModeUpdate)
>End If
>
>thanks-
>Susan
>
>(2)
>.
>
|