ASP.NET 如何通过session值控制前面页面的Label的Text,但不跳转到那个Label的页面。
解决方案 »
- FCKConfig.HtmlEncodeOutput 是否将HTML编码输出是什么意思,有什么作用?
- 控制线程启动
- 急! 急问,asp.net中整个文件夹上传问题
- 新手数据库连接问题
- 求实现批量编辑的方法
- 谁有存储过程分页功能的datagrid分页控件????高分一定给。我有4000多分没送出去呢!
- 可不可以把已经做好的Web程序供局域网内的其他机子访问,怎么做呢,其他机子怎么访问呢?
- GridView 里N多的问题没有解决!!!
- (在线等候!!!!)在textbox里面录入字符的时候如何控制用户录入的字符的数量??或者在用户点击提交的时候判断是否字符数超出限制??
- 公司要用ASP开发文件管理系统,大家有没有好的建议
- checkbox选定,保存
- window.prompt弹不出来
跳转到那个页面的时候再取出来
后面的页面这个session["classid"]值要改变,意思label.text 也要跟着改变。
Label.Text = Session["aa"].ToString();当前页面吗?就是不知道如何获得前一个页面的Label属性
后面的页面这个session["classid"]值要改变,意思label.text 也要跟着改变。
等你回到那個頁面的時候
label.text = session["label"]
<head runat="server">
<title>DX业务管理平台</title>
<link type="text/css" rel="Stylesheet" href="CSS/style.css" />
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript">
function GetPOStatusCount() {
var mid = $("#hdfMid").val();
$.post("Ajax.ashx", { type: "get" }, function(data,textStatus) {
$("#lblSession").text(data); });
}
setInterval(GetPOStatusCount, 60000);
</script>
</head>
<body>
<form id="form1" runat="server">
<label id="lblSession" runat="server"></label>
</form>
</body>
<script type="text/javascript">
GetPOStatusCount()
</script>
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DX.Model.Purchasing;
using DX.BLL;
using System.Text;
using web2.classes.Pojo;
using System.Web.SessionState;
using web3;
using DX.Entity;
using DX.Logic;
using DX.Common;namespace DX.GO.Web.PO.Author
{
/// <summary>
/// Summary description for Ajax
/// </summary>
public class Ajax : IHttpHandler, IReadOnlySessionState
{ public void ProcessRequest(HttpContext context)
{
// context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
string type = context.Request["type"].ToLower();
switch (type)
{
case "get":
GetPOCount(context);
break;
}
} public bool IsReusable
{
get
{
return false;
}
} public void GetSession(HttpContext context)
{
string str =context.Session["aa"]==null?"空值":(string)context.Session["aa"];
context.Response.Write(str; }
}
}
innerHtml=""
using DX.Model.Purchasing;
using DX.BLL;
using System.Text;
using web2.classes.Pojo;
using web3;
using DX.Entity;
using DX.Logic;
using DX.Common;
把这几个删掉