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
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
West Wind Technologies
Making waves on the Web
from Maui
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