asp.netÉú³É¾²Ì¬Ò³Ãæ
Default..aspx
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
Default..aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using sqlpublic;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string url = Server.MapPath("~/default.html");
if (File.Exists(url))
File.Delete(url);
Response.Filter = new ResponseFilter(Response.Filter, Server.MapPath("~/Default.html"));
}
}
ResponseFilter.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace sqlpublic
{
public class ResponseFilter : Stream
{
private Stream m_sink;
private long m_position;
private FileStream fs;
public ResponseFilter(Stream sink, string path)
{
m_sink = sink;
fs = new FileStream(path, FileMode.OpenOrCreate, FileAccess.Write);
}
// The following members of Stream must be overriden.
public override bool CanRead
{
get
{
return true;
}
}
public override bool CanSeek
{
get
{
return false;
}
}
public override bool CanWrite
{
get
{
return false;
}
}
public override long Length
{
get
{
return 0;
}
}
public override long Position
{
get
{
return m_position;
}
set
{
m_p
Ïà¹ØÎĵµ£º
ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼Æ÷¡£
ΪÁ˼ӿìËٶȣ¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ãæ£ ......
asp.netÖг£ÓõÄ26¸öÓÅ»¯ÐÔÄܵķ½·¨
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯¡¡
¡¡
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄ ......
×î½ü×öÁËÒ»¸öÃâ·Ñ·¢¶ÌÐŵÄСÍøÕ¾(http://freesms.cloudapp.net/)£¬µ«·¢ÏÖ×î½üÓÐÈËÆƽâÁËÎÒµÄÑéÖ¤Â룬ÒÔÿ3Ãë/ÌõµÄËÙ¶ÈÓÃÎҵĶÌÐÅ·þÎñÀ´·¢ËûµÄ¹ã¸æ¡£¸ü»»ÑéÖ¤Âë³ÌÐòºÍ¹ýÂ˹ؼü×ÖÖ»ÊÇÖα겻Öα¾µÄ·½·¨£¬ÎªÁ˳¹µ××èÖ¹´ËÀàʼþµÄ·¢Éú£¬ÎÒÃÇ»¹ÊÇÀ´¿´Ò»ÏÂÔõÑùͨ¹ýÓÅ»¯³ÌÐòÀ´ÊµÏÖ¡£
& ......
1¡¢Í¨¹ý¸½¼ÓÒ»¸öcookiecontainerµ½httprequest¶ÔÏóÖУ¬¿ÉÒԵõ½µÇ¼ºó·µ»ØµÄ´ú±íSESSION IDµÄCOOKIE¡£
2¡¢½«´ËCOOKIE°üº¬ÔÚÒ»¸öcookiecontainerÖв¢¸½¼Óµ½ÁíÒ»¸öHTTPREQUESTÇëÇóÖУ¬Ôò¿ÉÒÔʵÏÖSESSIONµÄ»¹Ô¡£
²¿·ÖÖ÷Òª´úÂ룺
CookieContainer cookieContainer =& ......