回发后如何保留动态创建的linkbutton [英] how to retain dynamically created linkbutton after postback

查看:54
本文介绍了回发后如何保留动态创建的linkbutton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

回发后如何保留动态创建的链接按钮

how to retain dynamically created linkbutton after postback

推荐答案

您需要了解viewstate.阅读以下链接:

http://msdn.microsoft.com/en-us/library/ms972976.aspx [ ^ ]
You need to get an understanding of viewstate. Have a read in the link below:

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


使用动态创建的控件时,您有责任在每次回发中重新创建它们(如果需要).如果您希望ASP.NET自动解析控件的值,则通常在页面的OnInit重载中完成.
When using dynamically created controls, you take the responsibility to re-create them on every postback (if needed). Usually this is done in page''s OnInit overload, if you want ASP.NET to automatically parse control''s values.


这篇关于回发后如何保留动态创建的linkbutton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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