如何将数据传送到另一页 [英] How to transfer data to another page
本文介绍了如何将数据传送到另一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
海,我有150控制ASP.NET页面,我想这些控件的数据传输到另一个ASP.NET页面。用什么方法将是最适合这个任务?的控制数量可能会增加。
Hai, I have an ASP.NET page with 150 controls and i want to transfer data of these controls to another ASP.NET page. what method would be best for this task? Number of controls may increase.
在此先感谢
推荐答案
有很多种方式:
- 使用查询字符串(的可能无法在你的情况下工作,只能用于传输数据量小好的)
- 从源页获取信息后
- 使用会话状态
- 获取公共属性值从源代码页
- 从源页面获取控制信息在同一应用程序
它总是preferable包你想在一个对象来传输,并使用PT传递给它的数据。 3或Pt。 4,但如果你有控制,铂任意数字。 5可以更好地为你。
Its always preferable to wrap the data you want to transfer in an object and pass it using pt. 3 or Pt. 4 , though in case you have arbitrary number of controls, Pt. 5 may work better for you.
这应该包括它的COM prehensively:
This should cover it comprehensively:
ASP.NET 2.0:在$ P $访问控制pvious网页
这篇关于如何将数据传送到另一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文