diff --git a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs index 410960122..821a231c5 100644 --- a/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs +++ b/dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs @@ -3004,15 +3004,6 @@ public abstract class GXDataArea : GXHttpHandler protected GXMasterPage MasterPageObj { get; set; } - protected override void sendSpaHeaders() - { - base.sendSpaHeaders(); - if (MasterPageObj != null) - { - localHttpContext.Response.AddHeader(GX_SPA_MASTERPAGE_HEADER, MasterPageObj.GetPgmname()); - } - } - protected override void ValidateSpaRequest() { string sourceMasterPage = localHttpContext.Request.Headers[GX_SPA_MASTERPAGE_HEADER]; @@ -3021,6 +3012,10 @@ protected override void ValidateSpaRequest() context.DisableSpaRequest(); sendSpaHeaders(); } + if (MasterPageObj != null) + { + localHttpContext.Response.Headers[GX_SPA_MASTERPAGE_HEADER] = MasterPageObj.GetPgmname(); + } } } public class GXDataAreaControl