Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.netµÄÄÚÖöÔÏó

ASP.NETµÄÄÚÖöÔÏó½éÉÜ
1.Response
2.Request
3.Server
4.Application
5.Session
6.Cookie
Request¶ÔÏóÖ÷ÒªÊÇÈ÷þÎñÆ÷È¡µÃ¿Í»§¶Ëä¯ÀÀÆ÷µÄһЩÊý¾Ý,°üÀ¨´ÓHTML±íµ¥ÓÃPost»òÕßGET·½·¨´«µÝµÄ²ÎÊý¡¢CookieºÍÓû§ÈÏÖ¤¡£ÒòΪRequest¶ÔÏóÊÇPage¶ÔÏóµÄ³ÉÔ±Ö®Ò»£¬ËùÒÔÔÚ³ÌÐòÖв»ÐèÒª×öÈκεÄÉùÃ÷¼´¿ÉÖ±½ÓʹÓã»ÆäÀàÃûΪ HttpRequestÊôÐԺܶ࣬µ«·½·¨ºÜÉÙ£¬Ö»ÓÐÒ»¸öBinaryRead()
1.ʹÓÃRequest.FormÊôÐÔ»ñÈ¡Êý¾Ý
ͨ¹ý¸ÃÊôÐÔ£¬¶ÁÈ¡Ö®¼äµÄ±íµ¥Êý¾Ý.×¢Ò⣺Ìá½»·½Ê½ÒªÉèÖÃΪ¡°Post¡±¡£ÓëGet·½·¨Ïà±È½Ï£¬Ê¹ÓÃPost·½·¨¿ÉÒÔ½«´óÁ¿Êý¾Ý·¢Ë͵½·þÎñÆ÷¶Ë
2.ÀûÓÃRequest.QueryStringÊôÐÔ»ñÈ¡Êý¾Ý
Request¶ÔÏóµÄQueryStingÊôÐÔ¿ÉÒÔ»ñÈ¡ HTTP ²éѯ×Ö·û´®±äÁ¿¼¯ºÏ ¡£ ͨ¹ý¸ÃÊôÐÔ£¬ÎÒÃÇ¿ÉÒÔ¶ÁÈ¡µØÖ·ÐÅÏ¢  http://localhost/aaa.aspx?uid=tom&pwd=abcÆäÖбêʶΪºìÉ«²¿·ÖµÄÊý¾Ý.×¢Ò⣺Ìá½»·½Ê½ÒªÉèÖÃΪ¡°Get¡±
3.ÎÊÌ⣺Request.FormÓÃÓÚ±íµ¥Ìá½»·½Ê½ÎªPostµÄÇé¿ö£¬¶øRequest.QueryStringÓÃÓÚ±íµ¥Ìá½»·½Ê½ÎªGetµÄÇé¿ö£¬Èç¹ûÓÃ´í£¬Ôò»ñÈ¡²»µ½Êý¾Ý¡£½â¾ö·½·¨£ºÀûÓÃRequest(¡°ÔªËØÃû¡±)À´¼ò»¯²Ù×÷¡£
4.Request.ServerVariables("»·¾³±äÁ¿Ãû³Æ")
ÀàËƵĻ¹ÓУºUserHostAddress,Browser,Cookies,ContentType,IsAuthenticatedItem,ParamsResponse¶ÔÏóÓÃÓïÊä³öÊý¾Ýµ½¿Í»§¶Ë£¬°üÀ¨Ïòä¯ÀÀÆ÷Êä³öÊý¾Ý¡¢Öض¨Ïòä¯ÀÀÆ÷µ½ÁíÒ»¸öURL»òÏòä¯ÀÀÆ÷Êä³öCookieÎļþ¡£ÆäÀàÃûΪhttpResponseÊôÐԺͷ½·¨¡£
Write() Ïò¿Í»§¶Ë·¢ËÍ×Ö·û´®ÐÅÏ¢
BufferOutPutÊôÐÔ      ÊÇ·ñʹÓûº´æ
Clear() Çå³ý»º´æ
Flush()    Ç¿ÖÆÊä³ö»º´æµÄËùÓÐÊý¾Ý
Redirect() ÍøҳתÏòµØÖ·
End() ÖÕÖ¹µ±Ç°Ò³µÄÔËÐР
WriteFile() ¶ÁÈ¡Ò»¸öÎļþ£¬²¢ÇÒдÈë¿Í»§¶ËÊä³öÁ÷ (ʵÖÊ£º´ò¿ªÎļþ£¬²¢ÇÒÊä³öµ½¿Í»§¶Ë¡£)
1.Response.Write ±äÁ¿Êý¾Ý»ò×Ö·û´®
Response.Write (±äÁ¿Êý¾Ý»ò×Ö·û´®)
Response.Write("") 
Response.Write(" ") 
2.Response¶ÔÏóµÄRedirect·½·¨½«¿Í»§¶Ëä¯ÀÀÆ÷Öض¨Ïòµ½ÁíÍâµÄURLÉÏ£¬¼´Ìøתµ½ÁíÒ»¸öÍøÒ³¡£ÀýÈç:Response.Redirect("http://www.example.com/")
3. Response.End() ÖÕÖ¹µ±Ç°Ò³µÄÔËÐÐ
4.Response.WriteFile(FileName)ÆäÖУºFileName Ö¸´úÐèÏòä¯ÀÀÆ÷Êä³öµÄÎļþµÄÎļþÃû
Server¶ÔÏóÌṩ¶Ô·þÎñÆ÷Éϵķ½·¨ºÍÊôÐÔ½øÐеķÃÎÊ .ÆäÀàÃû³ÆÊÇHttpServerUtility.
Server¶ÔÏóµÄÖ÷ÒªÊôÐÔÓУº
MachineName£º»ñÈ¡·þÎñÆ÷µÄ¼ÆËã»úÃ


Ïà¹ØÎĵµ£º

ASP.NETµÄ(HttpModule,HttpHandler)

ÔÚÒÔÇ°µÄASPʱºò£¬µ±ÇëÇóÒ»¸ö*.aspÒ³ÃæÎļþµÄʱºò£¬Õâ¸öHTTPÇëÇóÊ×ÏȻᱻһ¸öÃûΪinetinfo.exe½ø³ÌËù½Ø»ñ£¬Õâ¸ö½ø³Ìʵ¼ÊÉϾÍÊÇwww·þÎñ¡£½Ø»ñÖ®ºóËü»á½«Õâ¸öÇëÇóת½»¸øasp.dll½ø³Ì£¬Õâ¸ö½ø³Ì¾Í»á½âÊÍÕâ¸öaspÒ³Ã棬Ȼºó½«½âÊͺóµÄÊý¾ÝÁ÷·µ»Ø¸ø¿Í»§¶Ëä¯ÀÀÆ÷¡£ÆäʵASP.DLLÊÇÒ»¸öÒÀ¸½ÔÚIISµÄISAPIÎļþ£¬Ëü¸ºÔðÁ˶ÔÖîÈçASPÎļþ£¬A ......

ÔõÑùÉèÖÃÒÑ·¢ËÍÓʼþ²»ÔÙ·¢ËÍ asp.net

¾ÍÊÇÔÚʹÓÃjmail·¢ËÍÓʼþʱ£¬Ê¹ÓõÄÊÇ×Ô¶¯É¨Ãè¹æ¶¨¼ä¸ôʱ¼ä×Ô¶¯·¢Ë͵ģ¬ÏÖÔÚÊÇÏëʵÏÖÒѾ­·¢Ë͵ÄÓʼþ½«²»ÔÙ·¢ËÍ£¬¸÷λ´óϺÔõôʵÏÖ£¬ÇóÖú£¡
Ê×ÏÈÃ÷È·µÄÊÇÔÚÊý¾Ý¿â±íÖв¢Ã»Óбêʶ×Ö¶ÎÀ´±æ±ðÓʼþÊÇ·ñÒѾ­·¢ËÍ¡£Èç¹ûÎÒÀ´ÉèÖÃÒ»¸öÈ«¾Ö±äÁ¿À´´æ´¢ÕâЩÒѾ­·¢ËÍÓʼþµÄID£¬È»ºóÔÚÔÙ´ÎɨÃèʱÀ´±æ±ðÕâЩIDÊÇ·ñÒѾ­´æÔڵķ½Ê½À´Åжϣ¬¸ ......

asp.net ²Ù×÷xml

asp.net ¶ÔxmlÎļþµÄ¶Áд,Ìí¼Ó,ÐÞ¸Ä,ɾ³ý²Ù×÷
ÏÂÃæÓдúÂëµ÷ÊÔÕýÈ·
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using&nb ......

asp.net(C#) Êý¾Ý¿â±¸·Ý»¹Ô­ Ô´Âë

Backup.aspx
  protected void Button1_Click(object sender, EventArgs e)
    {
        string path = Server.MapPath("") + @"\Backup";
        if (!Directory.Exists(path))
       ......

CookieÓ¦ÓÃÍêÈ«½âÎö£¨Ò»£©£ºasp.netÖÐCookie¼¼Êõ

Cookie ÊÇʲô£¿
 
ÔÚasp.netÖУ¬ÈçºÎʹÓã¿
 
 
 
1   Cookie ÊÇʲô£¿
 
Cookie£ºµçÄÔÖмǼÓû§ÔÚÍøÂçÖеÄÐÐΪµÄÎļþ£»ÍøÕ¾¿Éͨ¹ýCookieÀ´Ê¶±ðÓû§ÊÇ·ñÔø¾­·ÃÎʹý¸ÃÍøÕ¾¡££¨Õª×Ô http://gb.cri.cn/17004/2007/03/08/121@1487554.htm£©
2ÔÚasp.netÖУ¬ÈçºÎʹÓã¿
 
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ