Label12.text = Session("time1").ToString()

解决方案 »

  1.   

    Session["time1"] = Label1.Text;Label12.text = (sting)Session["time1"];
      

  2.   

    但是我这样还是出错阿Session("time1") = Label1.Text;
    C:\Inetpub\wwwroot\ITSM\servers\quary_list8.aspx.cs(56): 'System.Web.UI.Page.Session' denotes a 'property' where a 'method' was expected
      

  3.   

    你用C#吧?C#中应该是 Session["time1"] 而不是 Session("time1"),注意方括号和圆括号的区别!!--------------------------------
    AspNetPager 免费分页控件4.2版发布,同时发布最新源代码,欢迎下载:http://www.webdiyer.com