Delphi ASP.Net 中的 SQL Viewstate - 如何重写 PageStatePersister
我正在遵循将视图状态存储在数据库中的示例。然而,我已经到了页面的末尾,它要求我覆盖一个属性..我不知道如何在delphi中实现这一点。有人能指出我正确的方向吗?
我正在使用母版页设置和 .NET 2.0
编辑:有关更多信息,这是我尝试过的:
TDefault = class(System.Web.UI.Page)
//Code excluded
public
function GetPageStatePersister: PageStatePersister;
property PageStatePersister: PageStatePersister read GetPageStatePersister;
end;
但不会调用 GetPageStatePersister 内的代码。
谢谢。
I am following this example of storing the view state in the database. However, I have come to the end of the page and its asking me to override a property .. I have no idea how to achieve this in delphi. Can someone point me in the right direction?
I am using a Masterpage setup and .NET 2.0
EDIT: For more information, this is what I have tried:
TDefault = class(System.Web.UI.Page)
//Code excluded
public
function GetPageStatePersister: PageStatePersister;
property PageStatePersister: PageStatePersister read GetPageStatePersister;
end;
But the code inside GetPageStatePersister isn't called.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,设法解决了这个问题。使用 .NET Reflecter,我深入挖掘了 System.Web.UI.Page 程序集,发现该函数名为
get_PageStatePersiter
,所以我刚刚完成了:Ok, managed to sort this out. Using .NET Reflecter I dug through the System.Web.UI.Page assembly and found that the function is called
get_PageStatePersiter
so I have just done: