Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : asp.net

ASP.NETÖÐcookie¶Áд·½·¨½éÉÜ

Cookie (HttpCookieµÄʵÀý)ÌṩÁËÒ»ÖÖÔÚ Web Ó¦ÓóÌÐòÖд洢Óû§Ìض¨ÐÅÏ¢µÄ·½·¨¡£ÀýÈ磬µ±Óû§·ÃÎÊÄúµÄÕ¾µãʱ£¬Äú¿ÉÒÔʹÓÃCookie ´æ´¢Óû§Ê×Ñ¡Ïî»òÆäËûÐÅÏ¢¡£µ±¸ÃÓû§ÔٴηÃÎÊÄúµÄÍøվʱ£¬Ó¦ÓóÌÐò±ã¿ÉÒÔ¼ìË÷ÒÔÇ°´æ´¢µÄÐÅÏ¢¡£
ASP.NETÖеÄcookie£º´´½¨Cookie·½·¨ (1)
Response.Cookies["userName"].Value = “admin";
Response.Cookies[“userName”].Expires = DateTime.Now.AddDays(1);
//Èç¹û²»ÉèÖÃʧЧʱ¼ä,CookieÐÅÏ¢²»»áдµ½Óû§Ó²ÅÌ,ä¯ÀÀÆ÷¹Ø±Õ½«»á¶ªÆú¡£
ASP.NETÖеÄcookie£º´´½¨Cookie·½·¨ (2)
HttpCookie aCookie = new HttpCookie(“lastVisit”);
//ÉÏÒ»´Î·ÃÎÊʱ¼ä
aCookie.Value = DateTime.Now.ToString();
aCookie.Expires = DateTime.Now.AddDays(1);
Response.Cookies.Add(aCookie);
ASP.NETÖеÄcookie£º·ÃÎÊCookie·½·¨(1)
if(Request.Cookies["userName"] != null)
Label1.Text = Server.HtmlEncode(Request.Cookies["userName"].Value);
·ÃÎÊCookie·½·¨(2)
if(Request.Cookies["userName"] != null) {
HttpCookie aCookie = Request.Cookies["userName"];
Label1.Text = Server.HtmlEncode(aCookie.Value);
} ......

ASP.NETÖÐǰ̨javascriptÓëºǫ́´úÂëµ÷ÓÃ

C#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃ
ÎÊ£º
1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
ÎÊÌâ1´ð°¸ÈçÏ£º
javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò»¸ö°´Å¥£¬ÔÚºǫ́½«µ÷Óûò´¦ÀíµÄÄÚÈÝдÈëbutton_clickÖÐ;
          2¡¢ÔÚǰ̨дһ¸öjsº¯Êý£¬ÄÚÈÝΪdocument.getElementById("btn1").click();
          3¡¢ÔÚǰ̨»òºǫ́µ÷ÓÃjsº¯Êý£¬¼¤·¢clickʼþ£¬µÈÓÚ·ÃÎʺǫ́c#º¯Êý£»
·½·¨¶þ£º1¡¢º¯ÊýÉùÃ÷Ϊpublic             
             ºǫ́´úÂë(°Ñpublic¸Ä³ÉprotectedÒ²¿ÉÒÔ)
             public string ss()
             {
          &nb ......

ASP.NETÖÐǰ̨javascriptÓëºǫ́´úÂëµ÷ÓÃ

C#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃ
ÎÊ£º
1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
ÎÊÌâ1´ð°¸ÈçÏ£º
javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò»¸ö°´Å¥£¬ÔÚºǫ́½«µ÷Óûò´¦ÀíµÄÄÚÈÝдÈëbutton_clickÖÐ;
          2¡¢ÔÚǰ̨дһ¸öjsº¯Êý£¬ÄÚÈÝΪdocument.getElementById("btn1").click();
          3¡¢ÔÚǰ̨»òºǫ́µ÷ÓÃjsº¯Êý£¬¼¤·¢clickʼþ£¬µÈÓÚ·ÃÎʺǫ́c#º¯Êý£»
·½·¨¶þ£º1¡¢º¯ÊýÉùÃ÷Ϊpublic             
             ºǫ́´úÂë(°Ñpublic¸Ä³ÉprotectedÒ²¿ÉÒÔ)
             public string ss()
             {
          &nb ......

Jquery ×éºÏformÔªËØΪjson¸ñʽ,asp.net·´ÐòÁл¯

×÷Õߣº°½Ê¿Î° Email£ºikmb@163.com תÔØ×¢Ã÷×÷Õß
˵Ã÷£º 1¡¢js¸ù¾Ý±íµ¥ÔªËØclassÊôÐÔ£¬°Ñ±íµ¥ÔªËصÄnameºÍvalue×éºÏΪjson¸ñʽ;ÓÃ±íµ¥ÔªËØclassÊôÐÔ¿ÉÒÔÕë¶ÔÐÔµØ×éºÏJSONÊý¾Ý¡£
2¡¢ºó¶ËASP.NETÓÃJavaScriptSerializer·´ÐòÁл¯Îª¶ÔÏóʵÁС£
3¡¢ºÃ´¦£º¼ò»¯ÁËÇ°¶ËÊý¾Ý¶ÁÈ¡Óëºó¶ËÊý¾Ý¸³Öµ¡£
 
function GetJSONStr(class_name) {
var a = [];
//Îı¾¿ò
$("." + class_name).filter(":text").each(function(i) {
//alert(this.name);
//alert(this.value);
a.push({ name: this.name, value: this.value });
});
//ÏÂÀ­Áбí
$("." + class_name).filter("select").each(function(i) {
//alert(this.name);
//alert(this.value);
a.push({ name: this.name, value: this.value });
});
//µ¥Ñ¡¿ò
$("." + class_name).filter(":radio").filter(":checked").each(function(i) {
//alert(this.name);
//alert(this.value);
a.push({ name: this.name, value: this.value });
});
//¸´Ñ¡¿ò¿ªÊ¼
var temp_cb = "";
$("." + class_name).filter(":c ......

ASP.NET Ä£°åÒ³ Ö´ÐÐ˳Ðò

Page Ö´ÐÐÖн«°´ÕÕÈçÏÂ˳Ðò¼¤»îʼþ£º
Page.PreInit
Page.Init
Page.InitComplite
Page.PreLoad
Page.Load
Page.LoadComplete
Page.PreRender
Page.PreRenderComplete
Èç¹ûÒ³Ãæ´ÓÁîÒ»¸öÒ³Ãæ¼Ì³Ð£¬ÈçBasePage:System.Web.UI.Page£¬ÔÚBasePageÖÐ×öÁËһЩÀ©Õ¹£¬ÈçȨÏÞ¼ì²é£¬¶øÆäËûÒ³Ãæ´ÓBasePage¼Ì³Ð£¬ÔòBasePageºÍ×îÖÕPageµÄʼþ¼¤»î˳ÐòÊÇ£º
UI.PreInit
Page.PreInit
UI.Init
Page.Init
UI.InitComplite
Page.InitComplite
UI.PreLoad
Page.PreLoad
UI.Load
Page.Load
UI.LoadComplete
Page.LoadComplete
UI.PreRender
Page.PreRender
UI.PreRenderComplete
Page.PreRenderComplete

Èç¹ûʹÓÃÁËMasterPage£¬ÔòMasterPageÖеÄʼþºÍContentPageÖеÄʼþ°´ÕÕÏÂÃæ˳Ðò¼¤»î£º
ContentPage.PreInit
Master.Init
ContentPage.Init
ContentPage.InitComplite
ContentPage.PreLoad
ContentPage.Load
Master.Load
ContentPage.LoadComplete
ContentPage.PreRender
Master.PreRender
ContentPage.PreRenderComplete
¸ü½øÒ»²½£¬Èç¹ûContentPage¼Ì³ÐBasePage£¬ÄÇô£¬¸÷ʼþµÄÖ´ÐÐ˳Ðò½«±ä³É£º
UI.PreInit
ContentPage.PreInit
Master.Init UI. ......

¸÷°æ±¾IISÏÂASP.netÇëÇó´¦Àí¹ý³Ì

ASP.NETÊÇÒ»¸ö·Ç³£Ç¿´óµÄ¹¹½¨WebÓ¦ÓõÄƽ̨£¬ËüÌṩÁ˼«´óµÄÁé»îÐÔºÍÄÜÁ¦ÒÔÖÂÓÚ¿ÉÒÔÓÃËüÀ´¹¹½¨ËùÓÐÀàÐ͵ÄWebÓ¦Óá£
¾ø´ó¶àÊýµÄÈËÖ»ÊìϤ¸ß²ãµÄ¿ò¼ÜÈ磺 WebForms ºÍ WebServices --ÕâЩ¶¼ÔÚASP.NET²ã´Î½á¹¹ÔÚ×î¸ß²ã¡£
ÕâƪÎÄÕµÄ×ÊÁÏÊÕ¼¯ÕûÀí×Ô¸÷ÖÖ΢Èí¹«¿ªµÄÎĵµ£¬Í¨¹ý±È½Ï IIS5¡¢IIS6¡¢IIS7 ÕâÈý´ú IIS ¶ÔÇëÇóµÄ´¦Àí¹ý³Ì£¬ ÈÃÎÒÃÇÊìϤ ASP.NETµÄµ×²ã»úÖÆ ²¢¶ÔÇëÇó(request)ÊÇÔõô´ÓWeb·þÎñÆ÷´«Ë͵½ASP.NETÔËÐÐʱÓÐËùÁ˽⡣ͨ¹ý¶Ôµ×²ã»úÖƵÄÁ˽⣬¿ÉÒÔÈÃÎÒÃÇ¶Ô ASP.net ÓиüÉîµÄÀí½â¡£
IIS 5 µÄ ASP.net ÇëÇó´¦Àí¹ý³Ì
¶ÔͼµÄ½âÊÍ£º
IIS 5.x Ò»¸öÏÔÖøµÄÌØÕ÷¾ÍÊÇ Web Server ºÍÕæÕýµÄ ASP.NET Application µÄ·ÖÀë¡£×÷Ϊ Web Server µÄIISÔËÐÐÔÚÒ»¸öÃûΪ InetInfo.exe µÄ½ø³ÌÉÏ£¬InetInfo.exe ÊÇÒ»¸öNative Executive£¬²¢²»ÊÇÒ»¸öÍйܵijÌÐò£¬¶øÎÒÃÇÕæÕýµÄ ASP.NET Application ÔòÊÇÔËÐÐÔÚÒ»¸ö½Ð×ö aspnet_wp µÄ Worker Process ÉÏÃ棬Ôڸýø³Ì³õʼ»¯µÄʱºò»á¼ÓÔØCLR£¬ËùÒÔÕâÊÇÒ»¸öÍйܵĻ·¾³¡£
ISAPI£º  Ö¸Äܹ»´¦Àí¸÷ÖÖºó׺ÃûµÄÓ¦ÓóÌÐò¡£ ISAPI ÊÇÏÂÃæµ¥´ÊµÄ¼òд £ºInternet Server Application Programe Interface£¬»¥ÁªÍø·þÎñÆ÷Ó¦ÓóÌÐò½Ó¿Ú¡£
IIS 5 ģʽµÄÌصã ......

ASP.NET 2.0ÔËÐÐÔ­Àí¼°Æä¹ý³Ì¼òÒª·ÖÎö


¡¾Õª Òª¡¿ ±¾ÎÄ»ùÓÚASP.NET 2.0µÄÔ´´úÂ룬¶ÔASP.NET 2.0ÔËÐÐʱ½øÐÐÁ˼òÒªµÄ·ÖÎö£¬Ï£ÍûÄÜ°ïÖúÄãÀí½âASP.NET 2.0ÖÐÇëÇó´¦Àí¹ý³Ì¼°Ò³Ãæ±àÒëÄ£ÐÍ¡£
¡¡¡¡Ö÷ÒªÀࣺ
¡¡¡¡System.Web.HttpRuntime
¡¡¡¡System.Web.HttpApplicationFactory
¡¡¡¡System.Web.HttpApplication
¡¡¡¡System.Web.Compilation.BuildManager
¡¡¡¡System.Web.Compilation.ApplicationBuildProvider
¡¡¡¡System.Web.Compilation.BuildProvidersCompiler
¡¡¡¡System.Web.UI.PageHandlerFactory
¡¡¡¡ÇëÇó´¦Àí¼òÒªÁ÷³Ìͼ:
ÔĶÁ½¨Ò飺
¡¡¡¡ÓÃReflector¹¤¾ß±ß²é¿´ASP.NET 2.0µÄÔ´´úÂë±ßÔĶÁ¡£
 
¡¡¡¡·ÖÎö£º
      µ±ÎÒÃÇͨ¹ýä¯ÀÀÆ÷ÏòASP.NET 2.0ÍøÕ¾µÄÒ»¸öasp.netÒ³Ãæ·¢ÆðÇëÇóʱ£¬ÔÚ·þÎñÆ÷¶ËÊ×ÏÈÊÇIISÊÕµ½ÇëÇó£¬IISÒ»¿´ÊÇasp.netÒ³Ã棬ÐÄÀïºÜ¿ªÐÄ£¬ÒòΪÕâ¸öÇëÇó²»ÓÃËü´¦Àí£¬½»¸øASP.NET ISAPI¾ÍÐÐÁË¡£ASP.NET ISAPIµÄ¹¤×÷Ò²±È½ÏÇáËÉ£¬ËûµÄÖ÷ÒªÈÎÎñ¾ÍÊÇ°²ÅÅaspnet_wp.exe´¦ÀíÇëÇ󣬲¢¼àÊÓaspnet_wp.exe½ø³ÌµÄÖ´ÐÐÇé¿ö£¬Èç¹ûaspnet_wp.exe½ø³ÌÌ«ÀÛÁË£¬²»ÄܳöÉ«µØÍê³ÉÈÎÎñ£¬ASP.NET ISAPI¾ÍÒªÈÃËûϸڣ¬»»Ò»¸öеÄaspnet_wp.exeÀ´´¦Àí¹¤×÷¡£ 
¡¡¡¡aspnet_wp.exeµÄÖ÷Ò ......
×ܼǼÊý:2672; ×ÜÒ³Êý:446; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [5] [6] [7] [8] 9 [10] [11] [12] [13] [14]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ