//TODO: CleanUp duplication with other PostProcessSubFunction-implemenations public override void ExecuteSubFunction(WxeContext context) { ArgumentUtility.CheckNotNull("context", context); // Correct the PostBack-Sequence number Parameters.PostBackCollection[WxePageInfo.PostBackSequenceNumberID] = context.PostBackID.ToString(); // Provide the executed sub-function and backed up postback data to the executing page ExecutionStateContext.SetReturnState(Parameters.SubFunction, true, Parameters.PostBackCollection); ExecutionStateContext.SetExecutionState(NullExecutionState.Null); }
//TODO: CleanUp duplication with other PostProcessSubFunction-implemenations public override void ExecuteSubFunction(WxeContext context) { ArgumentUtility.CheckNotNull("context", context); bool isPostRequest = string.Equals(context.HttpContext.Request.HttpMethod, "POST", StringComparison.OrdinalIgnoreCase); if (isPostRequest) { // Provide the executed sub-function to the executing page and use original postback data ExecutionStateContext.SetReturnState(Parameters.SubFunction, false, null); } else { // Correct the PostBack-Sequence number Parameters.PostBackCollection[WxePageInfo.PostBackSequenceNumberID] = context.PostBackID.ToString(); // Provide the executed sub-function and the backed up postback data to the executing page ExecutionStateContext.SetReturnState(Parameters.SubFunction, true, Parameters.PostBackCollection); } ExecutionStateContext.SetExecutionState(NullExecutionState.Null); }