asp.net 调用变量的问题

来源:百度知道 编辑:UC知道 时间:2024/05/17 01:26:04
请问在asp.net中可以在一个页面类中调用前一个页面中的变量么??谢谢 如何操作??

把那个变量传过来就可以 可以使用session

vs.net2005 has a attribute named "postbackurl" ,you can use it pass any attributes as your can

see more about msdn
or
http://ajunsj.blog.163.com/blog/static/1067534200731115941337/

用Session还是很方便的,但要占用服务器的内存,你可以用继承的方法,第二个页面类,继承第一个页面类!然后调用第一个页面的变量!