Web Connection
ScriptMode Mix-n-Match
Gravatar is a globally recognized avatar based on your email address. ScriptMode Mix-n-Match
  n/a
  All
  Oct 15, 2014 @ 10:59am
Hello.

I have a server that has several process classes, and they each use classic script pages (npagescriptmode=1). But I want to start using Web Control pages in that server and was wondering, in the same server EXE, can I have one process class that uses classic, and another process class that uses WebControl pages?

Thanks,
Kirk

Gravatar is a globally recognized avatar based on your email address. Re: ScriptMode Mix-n-Match
  Rick Strahl
  Kirk
  Oct 15, 2014 @ 03:49pm
Kirk,

Yes you can mix and match. At the high level you can set the nPageScriptMode on each process class individually. On the lower level you can use ExpandScript()/ExpandTemplate()/ExpandPage() to mix and match any of the request types. The script mode flags just control the default for script handling when not matching a method for a given endpoint. IOW, you can always override the individual behavior by creating a method that does the appropriate Response.ExpandXXXX() call.

+++ Rick ---



Hello.

I have a server that has several process classes, and they each use classic script pages (npagescriptmode=1). But I want to start using Web Control pages in that server and was wondering, in the same server EXE, can I have one process class that uses classic, and another process class that uses WebControl pages?

Thanks,
Kirk




Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: ScriptMode Mix-n-Match
  n/a
  Rick Strahl
  Oct 20, 2014 @ 12:36pm
Thanks Rick!


Kirk,

Yes you can mix and match. At the high level you can set the nPageScriptMode on each process class individually. On the lower level you can use ExpandScript()/ExpandTemplate()/ExpandPage() to mix and match any of the request types. The script mode flags just control the default for script handling when not matching a method for a given endpoint. IOW, you can always override the individual behavior by creating a method that does the appropriate Response.ExpandXXXX() call.

+++ Rick ---



Hello.

I have a server that has several process classes, and they each use classic script pages (npagescriptmode=1). But I want to start using Web Control pages in that server and was wondering, in the same server EXE, can I have one process class that uses classic, and another process class that uses WebControl pages?

Thanks,
Kirk




© 1996-2024