我在两个页面之间传递数据我想使用Session但是我从来没有用过Session,不知道怎么用我在第一个页面Session("time1") = Label1.Text;
出错;
第二个页面我Label12.text = Session("time1")还是出错;
System.Web.UI.Page.Session denotes a property where a method was expected
没有用过Session不知道怎么用情指点指点
Session["time1"] = Label1.Text;
Label12.text = (sting)Session["time1"];
你用C#吧?C#中应该是 Session["time1"] 而不是 Session("time1"),注意方括号和圆括号的区别!!
--------------------------------
AspNetPager 免费分页控件4.2版发布,同时发布最新源代码,欢迎下载:http://www.webdiyer.com