如何在Ascx控件的ViewState中保留自定义属性。 [英] How to persist custom properties in ViewState of ascx control.

查看:89
本文介绍了如何在Ascx控件的ViewState中保留自定义属性。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有复合控件,这是一个容器,在这个复合控件里面我有一个ascx控件问题是这个ascx控件的自定义属性不是回发后保留。



ascx控件在设计模式下拖放



我希望你能帮助我解决这个问题。



问候。

Hi,

I have compositecontrol, this is a container, inside this compositecontrol i have a ascx control the problem is that custom properties of this ascx control are not preserved after postback.

The ascx controls are dragged and dropped in design mode

I hope you can help me with this problem.

Regards.

推荐答案

请参阅: http://msdn.microsoft.com/en-us/library/vstudio/1whwt1k7% 28v = vs.100%29.aspx [ ^ ]。



背景信息,请从这里开始:

http://msdn.microsoft.com/en-us/library/bb386448.aspx [ ^ ]。



此CodeProject文章也可能有用:初学者指南查看状态 [ ^ ]。



-SA
Please see: http://msdn.microsoft.com/en-us/library/vstudio/1whwt1k7%28v=vs.100%29.aspx[^].

For the background, please start here:
http://msdn.microsoft.com/en-us/library/bb386448.aspx[^].

This CodeProject article could also be useful: Beginner's Guide To View State [^].

—SA


这篇关于如何在Ascx控件的ViewState中保留自定义属性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆