Microsoft Content Management Server - Legacy ASP Code

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > November 2004 > Legacy ASP Code





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Legacy ASP Code
Will Thompson

2004-11-30, 5:49 pm

Hi folks, we have a critical need to preserve some ASP pages from legacy
website (non-MCMS) in our MCMS 2002 roll-out.

Ideally, I think I would like to be able to cut-and-paste legacy code and
put into placeholder. But, this doesn't seem to work even in mixed mode. As
a test, I have a Response.Write inside a text placeholder. The literal code
(<% Response.Write("test"); %> is output in the client html, but it is not
evaluated on the server.

To make matters worse, the code in the legacy ASP pages is, of course,
VBScript.

It seems my only options at the moment are:
1) Reskin the ASP pages and place into website. But this requires massive
HTML tinkering and then these pages will not be sucked into breadcrumb and
side nav because they are not postings.

2) Create new template page and template definition for each ASP legacy page
and cut-paste ASP code into the code-behind for the template. This is pretty
time consuming and still requires that the VBScript be re-written as C#
code-behind.

Any ideas would be GREATLY appreciated.
Stefan [MSFT]

2004-11-30, 5:49 pm

Hi Will,

placeholder content cannot be executable ASP code.
Only static html content.
You will have to create a separate template for each page.

Cheers,
Stefan.


"Will Thompson" <Will Thompson@discussions.microsoft.com> wrote in message
news:2E53329F-F659-41A4-9B58-EFA6B9A60A4D@microsoft.com...
> Hi folks, we have a critical need to preserve some ASP pages from legacy
> website (non-MCMS) in our MCMS 2002 roll-out.
>
> Ideally, I think I would like to be able to cut-and-paste legacy code and
> put into placeholder. But, this doesn't seem to work even in mixed mode.

As
> a test, I have a Response.Write inside a text placeholder. The literal

code
> (<% Response.Write("test"); %> is output in the client html, but it is not
> evaluated on the server.
>
> To make matters worse, the code in the legacy ASP pages is, of course,
> VBScript.
>
> It seems my only options at the moment are:
> 1) Reskin the ASP pages and place into website. But this requires massive
> HTML tinkering and then these pages will not be sucked into breadcrumb and
> side nav because they are not postings.
>
> 2) Create new template page and template definition for each ASP legacy

page
> and cut-paste ASP code into the code-behind for the template. This is

pretty
> time consuming and still requires that the VBScript be re-written as C#
> code-behind.
>
> Any ideas would be GREATLY appreciated.



Will Thompson

2004-11-30, 5:49 pm

Thanks. That's about what I expected. It's painful reality over here, but
at least I have some confirmation that I'm missing a silver bullet. Thanks
much!

"Stefan [MSFT]" wrote:

> Hi Will,
>
> placeholder content cannot be executable ASP code.
> Only static html content.
> You will have to create a separate template for each page.
>
> Cheers,
> Stefan.
>
>
> "Will Thompson" <Will Thompson@discussions.microsoft.com> wrote in message
> news:2E53329F-F659-41A4-9B58-EFA6B9A60A4D@microsoft.com...
> As
> code
> page
> pretty
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com