如何在移动到其他页面时保持复选框状态 [英] how to maintain checkboxes state while moving to other pages
问题描述
我有3个网页表格,每个网页表格都有复选框..... web1.aspx,web2.aspx,web3.aspx
i have 3 web forms n each web forms have the checkboxes.....web1.aspx ,web2.aspx,web3.aspx
n每页都有n下一个按钮导航到其他页面...当我检查web1.apsx den中的一些checkboxex到web2.aspx时,当我回到web1.aspx ..........它没有被选中.. ....我怎么能用会话变量来消除..........并在最后一个地方
i想要显示所有选中的复选框....
n each page has previous n next button to navigate to other pages...when i checked some checkboxex in web1.apsx den got to web2.aspx ,when i go back to web1.aspx..........its not selected......how can i do dis with session varaible..........and on last place i wanted to display all selected checkboxes ....
推荐答案
HI,创建一个将保持复选框状态的类结构。然后将您的类实例存储在会话中。在您的页面加载事件中检查会话对象并填充您的值。
Create a class structure which will maintain your check box state. Then store your class instance in session. On your page load event check the session object and populate your values.
这篇关于如何在移动到其他页面时保持复选框状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!