简单介绍一下,一般都是设置一个图片,然后图片src后面的地址填上一般处理程序,比如这个样子的:GetYouCode.ashxusingSystem;usingSystem.Web;usingSystem.Drawing;usingSystem.Web.SessionState;//一般处理程序中使用...
分类:
Web程序 时间:
2014-11-14 13:58:19
阅读次数:
173
HTML页面
-------------------------------------------------------------Page1.aspx处理页面(一般处理程序)
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/html"...
分类:
其他好文 时间:
2014-11-14 12:35:10
阅读次数:
357
1.上传文件,在一般处理程序中处理 1 //1.接收post过来的文件 2 HttpPostedFile file = context.Request.Files[0]; 3 if (file.ContentLength > 0 || file.ContentLength > 1024) 4 { 5...
分类:
Web程序 时间:
2014-11-14 10:41:33
阅读次数:
465
1. GetTime.html 1 2 3 4 5 6 49 50 51 52 53 54 View Code2. GetTime.ashx 1 2 3 using System; 4 using System.Web; 5 6 public ...
分类:
其他好文 时间:
2014-11-13 14:40:01
阅读次数:
161
1. GetClassData.html 1 2 3 4 5 6 39 40 41 44 45 View Code2. GetClassData.ashx 1 2 3 using System; 4 using System.Web; 5 using S...
分类:
其他好文 时间:
2014-11-13 14:30:13
阅读次数:
164
jQuery("#btn").click(function () { var commentMessahe = jQuery("#CommentNote").val(); var num = jQuery("#CommentNote").val().length; if (username != ....
分类:
Web程序 时间:
2014-11-11 18:17:03
阅读次数:
273
在平常的页面上是用是很容易就的到request,response对像,从而对其进行一些操作,但在ashx(一般处理程序)中却是有一点的不同,在ashx你无法正常的使用session,即1 context.session["TestA"]="1111";虽然生成的时候是不报错的,但是是赋值不了的,而且...
分类:
其他好文 时间:
2014-11-11 15:46:41
阅读次数:
208
一. 浏览器提交数据方式1. Get传参(Url传参)地址栏输入url;js跳转(window.location);表单get提交;超链接操作;异步get提交数据;2. Post传参表单post提交;二.Request常用成员1. QueryString属性(获取get方式传输的数据)2. Form...
分类:
其他好文 时间:
2014-11-10 19:50:59
阅读次数:
205
$.ajax({ type: 'POST', url: 'server/login.ashx', dataType: "json", data: { ...
分类:
Web程序 时间:
2014-11-07 18:22:00
阅读次数:
130
最近做一个项目,有使用Ajax调用ashx文件 ,其中ashx文件里面有用到Session,但是总无法获取Session,经过调试,出现的错误的原因:大体如下Session["loginName"]为空,无法toString();context.Session["Id"]“context.Sessi...
分类:
其他好文 时间:
2014-11-07 16:48:37
阅读次数:
142