页面导航传参与接参

//页面传参
System.Collections.Specialized.NameValueCollection paras = new System.Collections.Specialized.NameValueCollection();
paras.Add("ID", sb.ToString());
paras.Add("Count", parasCount.ToString());
//导航页面
if (paras.Count > 0)
{
//parentTaskID 传入 _part.TaskId.ToString(),表示共享当前页面Model;传入null,表示不共享当前页面Model
_part.ShowModalDialog("UFIDA.U9.Cust.MO.BatchSubstituteUIModel.BatchSubstituteUIFormWebPart", "批量替代", "992", "504", _part.TaskId.ToString(), paras, true);
}
1、传递Session
//Page级
this.CurrentState["WeightingDocID"] = this.Model.Weighting.FocusedRecord.ID;
//Session级
this.CurrentSessionState["WeightingDocID"] = this.Model.Weighting.Focus
页面导航传参与接参
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



