ASP.NETѧϰ¾ÑéÊÕ¼¯£¨²»¶Ï¸üУ©
ÔÚÈÕ³£Ñ§Ï°ºÍʹÓÃASP.NETµÄ¹ý³ÌÖУ¬ÓÐЩ±È½ÏÌØÊâÓÐÓõľÑéÊÕ¼¯ÔÚÕâÀ·½±ã×Ô¼º¼ÇÒäºÍÀí½â£¬Ò²Ï£ÍûÄܰïÖúµ½Ò»Ð©³õѧÕ߲ο¼¡£Èç¹ûÓÐЩ²»×ãµÄµØ·½Ï£Íû¸ßÊÖ²»Áߴͽ̣¡£¡£¡
Ò»¡¢ÔÚÒ»°ã´¦ÀíÎļþ(ashx)ÖÐʹÓÃSessionʱ£¬ÐèÒªÒý½øÃüÃû¿Õ¼ä£ºusing System.Web.SessionState; ²¢ÇÒʹ¸ÃÀàʵÏÖIRequiresSessionState½Ó¿Ú£¬È»ºó¾ÍÄÜͨ¹ýHttpContext.Current.SessionʹÓÃSessionÁË£¡
¼òÒ×´úÂëÈçÏ£º
using System.Web.SessionState;
........
public class Handler : IHttpHandler, IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
HttpContext.Current.Session["user"] = "luoyisheng";
}
public bool IsReusable
{
get
{
return false;
}
}
}
Ïà¹ØÎĵµ£º
ÕÒµ½Ò»±é½²½âÈý²ã½á¹¹±È½ÏÇå³þÒ×¶®µÄÎÄÕ£¬ÒýÓÃһϣ¬ÁôΪѧϰ¡£
Èý²ãʽ¿ª·¢ÖеIJã´Î»®·ÖÌÖÂÛ
ÏȾÙÒ»¸öÔø¾ÔÚÄı¾ÊéÉÏ¿´µ½µÄÀý×Ó£ºÏÖÔÚÄãÏëÔÚ1Ã׿íµÄСϪÉϽ¨Ò»×ùÇÅ£¬Äã»áÔÚÉÏÃæ·Å¿éľ°å¾ÍÍêÁË¡£Èç¹ûÏëÔÚ¿íÒ»µãµÄСºÓÉϽ¨ÕâÇÅ£¬Äã¾ÍÐèÒª¼ÆËãľ²ÄÓÃÁÏ£¬¼Û¸ñµÈ£¬Èç¹ûÐèÒª±ðÈ˰ïæ£¬Ä㻹Ҫ¶àһЩͼֽʲôµÄÈñðÈËÀí½âÄãµÄÏë ......
ASP.NET²Ù×÷Êý¾Ý¿â
ͨ¹ý¶ÔADO.NETµÄ»ù±¾½²½â£¬ÒÔ¼°½²½âÁËһЩÊý¾ÝÔ´¿Ø¼þµÄ»ù±¾Ó÷¨ºó£¬±¾Õ½«½éÉÜһЩASP.NET²Ù×÷Êý¾Ý¿âµÄ¸ß¼¶Ó÷¨£¬°üÀ¨Ê¹ÓÃSQLHelper£¬ÒÔ¼°Êý¾ÝÔ´¿Ø¼þ¶ÔÊý¾ÝµÄ²Ù×÷¡£±¾ÕÂÊǶÔÇ°ÃæµÄÊý¾Ý¿â֪ʶµÄÒ»ÖÖ²¹³äºÍÌáÉý¡£
9.1 ʹÓÃADO.NET²Ù×÷Êý¾Ý¿â
ÉÏÒ»ÕÂÖнéÉÜÁËADO.NETµÄ»ù±¾¸ÅÄî¡¢ADO.NETµÄ¶ÔÏó£¬ÒÔ¼ ......
<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
prote ......
×î½ü¿´µ½Ò»Ð©ÏûÏ¢£¬¸Ð¾õHTML5ÈÔȻңңÎÞÆÚ£¬ÍøÒ³ä¯ÀÀÆ÷±íÏÖ²ãµÄ¶«Î÷£¬ÒÀÈ»¸÷×ÔΪÖ÷£¬Ajax¹ã·ºÁ÷ÐУ»AdobeµÄFlashÇ¿´ó¼áͦ£»Î¢ÈíSilverLightÒ°Ðĸü´ó£¬´òË㿪·ÅCOM½Ó¿Ú£¬ÉõÖÁ´«³ö»ùÓÚSilverLightµÄ²Ù×÷ϵͳ¡£ÕâЩ¶«Î÷ţƤ´µµÃ´ó´óµÄ£¬µ«ÔÚÍøÉÏÒªÕÒ¸ö±È½ÏºÃÓõÄÊýѧ¹«Ê½£¨»ò»¯Ñ§Ê½×Ó£©±íʾ£¬¶¼±È½ÏÄÑ¡£
Ïò¼ÆËã»úÊä ......
Á˽âʹÓà ASP.NET AJAX ½øÐоֲ¿Ò³Ãæ¸üÐÂ
¼ò½é
MicrosoftµÄ ASP.NET ¼¼ÊõÌṩÁËÒ»¸öÃæÏò¶ÔÏó¡¢Ê¼þÇý¶¯µÄ±à³ÌÄ£ÐÍ£¬²¢½«ÆäÓëÒѱàÒë´úÂëµÄÓÅÊÆ½áºÏÆðÀ´¡£µ«Æä·þÎñÆ÷¶ËµÄ´¦ÀíÄ£ÐÍÈÔ´æÔÚ¼¼Êõ±¾ÉíËù¹ÌÓеļ¸µã²»×㣺
½øÐÐÒ³Ãæ¸üÐÂÐèÒªÍù·µ·þÎñÆ÷£¬Òò´ËÐèÒªÒ³ÃæË¢Ð£»
À´»ØÍù·µ²»»á±£Áô Javascript »òÆäËû¿Í»§¶Ë¼¼Êõ£¨Èç Ad ......