没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
handler.aspx
1 <%@PageLanguage="C#"AutoEventWireup="true"CodeFile="handler.aspx.cs"Inheri
ts="handel"%>
2
3 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <htmlxmlns="http://www.w3.org/1999/xhtml">
6 <headrunat="server">
7
<title>未命名頁面</title>
8 </head>
9 <body>
1
0
<formid="form1"runat="server">
1
1
<div>
1
2
<ahref="Handler.ashx">Handler.ashx</a>
1
3
</div>
1
4
</form>
1
5
</body>
1
6
</html>
view plain | print | copy to clipboard | ?
handler.aspx.cs
1 usingSystem;
2 usingSystem.Data;
3 usingSystem.Configuration;
4 usingSystem.Collections;
5 usingSystem.Web;
6 usingSystem.Web.Security;
7 usingSystem.Web.UI;
8 usingSystem.Web.UI.WebControls;
9 usingSystem.Web.UI.WebControls.WebParts;
10 usingSystem.Web.UI.HtmlControls;
11
12 publicpartialclasshandel:System.Web.UI.Page
13 {
14 protectedvoidPage_Load(objectsender,EventArgse)
15 {
16 Session["msg"]="hi..puma";
17 }
18 }
view plain | print | copy to clipboard | ?
Handler.ashx
1 <%@WebHandlerLanguage="C#"Class="Handler"%>
2
3 usingSystem;
4 usingSystem.Web;
5 usingSystem.Web.SessionState;
6
资源评论
- ss_jj_pp2013-11-26还是没有解决问题.
- nakcboy2013-06-24还可以,帮我解决了问题,谢了
- csharp1w2014-08-07貌似还是不行啊
- 普通网友2013-10-21我是这样写的但是session还是无法获取
we_eee
- 粉丝: 3
- 资源: 33
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功