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

ÍøÕ¾ÖÐä¯ÀÀÆ÷»º´æµÄ¿ØÖÆ(IIS+ASP.Net)

ÍøÕ¾ÖÐä¯ÀÀÆ÷»º´æµÄ¿ØÖÆ(IIS+ASP.Net)
 
 
 
ÔÚIIS6.0 + Windows Server 2003ͨ¹ý²âÊÔ¡£ÈçÓдíÎó¾´ÇëÖ¸Õý¡£
 
1¡¢  IIS¿ØÖÆ£¨¶ÔJsµÈÎļþ£©£º
ÔÚIIS¹ÜÀíÆ÷Öв鿴ÎļþÊôÐÔ£¬ÔÚHTTPÍ·µÄTabÒ³ÖУ¬ÉèÖÓÆôÓÃÄÚÈݹýÆÚ”¡£
l         IISĬÈÏ£¨²»¹´Ñ¡£©£º
 
 
ÔÚͬһ¸öä¯ÀÀÆ÷´°¿ÚÄÚ£¨°üÀ¨ÄÚ²¿µÄ¿ò¼ÜÄÚ£©£¬²»¹ÜÊÇÄĸöÒ³Ãæ£¬ÒýÓÃÕâ¸öjsÎļþʱ£¬¶¼²»»áÈ¥·þÎñÆ÷ÏÂÔØ¡£µ±¹Øµôä¯ÀÀÆ÷пª´°¿Ú£¬»òÊǵ¯³öеĴ°¿Úʱ£¬»òÊǰ´F5ˢУ¬¶¼»áÖØÐÂÏÂÔØjs¡£
l         Á¢¼´¹ýÆÚ£º
 
ÎÞÂÛÄÄÖÖÇé¿öÏ£¬¶¼»áÖØÐÂÏÂÔØjsÎļþ¡£
l         ÉèÖÃʱÏÞ»ò¹ýÆÚʱ¼ä£º
 
 
µ±ÒѾ­¹ýÆÚʱ£¬ÎÞÂÛÄÄÖÖÇé¿öÏ£¬¶¼»áÖØÐÂÏÂÔØjsÎļþ¡£
µ±Ã»¹ýÆÚʱ£¬²»»áÖØÐÂÏÂÔØjsÎļþ£¬¼´Ê¹¹Øµôä¯ÀÀÆ÷ÖØ¿ª´°¿ÚÒ²²»»á¡£F5ʱ»áÖØÐÂÏÂÔØ¡£
 
 
2¡¢  ·þÎñ¶Ë¿ØÖÆ£¨¶ÔaspxµÈ³ÌÐòÎļþ£©£º
ÔÚ´úÂëÖнøÐÐÉèÖá£
l        ÉèÖûº´æ·½Ê½£ºResponse.Cache.SetCacheability(HttpCacheability.Server);
l        ÉèÖùýÆÚ£º Response.Cache.SetMaxAge(new TimeSpan(1, 1, 1));
       »ò   Response.Cache.SetExpires(DateTime.Now.AddHours(1));
 
»º´æ·½Ê½
Public
Server
NoCache
Private
ÓÐÉèÖùýÆÚ
δ¹ýÆÚʱ£¬ÎÞÂÛÈçºÎ¶¼²»ÖØÐÂÏÂÔØ£¬¼´Ê¹F5Ë¢ÐÂÒ²²»¡£¹ýÆÚºóÈκÎÇé¿ö¶¼ÖØÐÂÏÂÔØ
δ¹ýÆÚʱ£¬³ý·Ç°´F5ˢУ¬·ñÔò²»ÏÂÔØ£¬¹ØµôÖØ¿ª´°¿ÚÒ²²»¡£¹ýÆÚºóÈκÎÇé¿ö¶¼ÖØÐÂÏÂÔØ¡£
ûÉèÖùýÆÚ
ÈκÎÇé¿ö¶¼»áÈ¥·þÎñÆ÷ÏÂÔØ
3¡¢  ²¹³ä˵Ã÷£º
ASPXÎļþÔÚIISÖÐÉèÖÃHTTPÍ·ÎÞЧ¡£
 


Ïà¹ØÎĵµ£º

asp.net(c#)ÍøÒ³Ìø×ªÆßÖÖ·½·¨

1.Response.Redirect("http://www.jb51.net",false);
Ä¿±êÒ³ÃæºÍÔ­Ò³Ãæ¿ÉÒÔÔÚ2¸ö·þÎñÆ÷ÉÏ£¬¿ÉÊäÈëÍøÖ·»òÏà¶Ô·¾¶¡£ºóÃæµÄboolֵΪÊÇ·ñÍ£Ö¹Ö´Ðе±Ç°Ò³¡£
Ìø×ªÏòеÄÒ³Ãæ£¬Ô­´°¿Ú±»´úÌæ¡£"
ä¯ÀÀÆ÷ÖеÄURLΪз¾¶¡£
:Response.Redirect·½·¨µ¼ÖÂä¯ÀÀÆ÷Á´½Óµ½Ò»¸öÖ¸¶¨µÄURL¡£µ±Response.Redirect()·½·¨± ......

asp.net ÖÐʵÏÖÒ³ÃæÃ¿¸ôÒ»·ÖÖÓË¢ÐÂÒ»´ÎµÄЧ¹û

ÔÚGlobal.asax
ÐèÒª»Ø¹ËµÄ֪ʶµãÊÇ Ïß³Ì ºÍ  Îı¾ÎļþµÄ¶Áд¡£
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
    string logpath;
    Thread thread; ......

ASP.NET ²Ù×÷MySQLÊý¾Ý¿âµÄ·½·¨ËµÃ÷

using System;
using System.Data;
using System.Diagnostics;
using System.Collections.Generic;
using MySql.Data.MySqlClient;
namespace System
{
 /// <summary>
 /// Description of MySqlDBUtil.
 /// </summary>
 public class MySqlDBUtil
 {
  &nbs ......

Parameter Queries in ASP.NET with MS Access

Parameter Queries in ASP.NET with MS Access
A selection of code samples for executing queries against MS Access using parameters.
Making use of the ASP.NET 2.0 datasource controls is fine, but it is important to understand how to manually create data access code. Best practice dictates that, at t ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ