我嘗試了一些數據保存到ViewState的,但我得到這個錯誤: 微軟JScript運行時錯誤:Sys.WebForms.PageRequestManagerServerErrorException:錯誤序列化值「HeRMeSSAAS.BussinesProcess.BussinesServices.CandidateService」的鍵入'HeRMeSSAAS.BussinesProcess.BussinesServices.CandidateService'。 代碼:保存數據到ViewState的
private IActionService ActionService
{
get
{
return ViewState["ActionService"] as IActionService;
}
set
{
ViewState["ActionService"] = value;
}
}
private void InitializeField(IActionService service)
{
ActionService = service;
}
我如何保存價值ViewState的?
Спасибобольшое。 – isxaker 2011-01-26 09:33:44