范例代码:
Context.Items.Add("strFlowUsers", strRet);
Context.Items.Add("strAttXml", strAttXml);
Context.Items.Add("strOpinion", strOpinion);
Context.Items.Add("strFormXMLValue", strFormXMLValue);
Server.Transfer("../Forms/flow_Sender.aspx?MessageID=" + lngMessageID.ToString() + "&ActionID=" + strActionID, true);
获取参数范例:
strUsersXml = Context.Items["strFlowUsers"].ToString();
strValues = Context.Items["strFormXMLValue"].ToString();
strAttXml = Context.Items["strAttXml"].ToString();
strOpinion = Context.Items["strOpinion"].ToString();
strValues = Context.Items["strFormXMLValue"].ToString();
strAttXml = Context.Items["strAttXml"].ToString();
strOpinion = Context.Items["strOpinion"].ToString();
应用场景:
E8.Net工作流平台,移动应用架构中,需要为下一个页面提交非常复杂的参数,如表单值(XML)等,由于XML标记的特殊性,和URL长度限制,同时Web Form中又不方便 POST方法提交参数,因此采用 Server.Transfer方法进行页面提交. 参数通过上述方法进行传递.