C#Çå³ýÒ³Ãæ»º´æ
C#Çå³ýÒ³Ãæ»º´æ
private void SetPageNoCache()
{
Response.Buffer = true;
Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
}
(1) Response.Buffer = true;
Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
(2) HTML·½·¨
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
(3) ÖØÐµ÷ÓÃÔÒ³ÃæµÄʱºòÔÚ¸øÒ³Ãæ´«Ò»¸ö²ÎÊý: href="****.aspx?random()"
Ïà¹ØÎĵµ£º
Õâ±¾Êé½²½â
C#
ÓïÑÔÊ®·ÖÏêϸ£¬ÎÒ½«ÆäÖеÄÖØÒªÄÚÈÝÕûÀí³ÉÌõ¿î£¬ÒÔ±¸Íü¡£
1.
ʼþÊÇÔÚÂú×ãij¸öÌØ¶¨Ìõ¼þʱ·¢ÉúµÄ£¬´¥·¢
(raise)
ʼþµÄ¶ÔÏó³ÆÎª·¢²¼Õß
(publisher)
£¬¶ÔÕâ¸öʼþ½øÐÐÏìÓ¦µÄ¶ÔÏó³ÆÎª¶©ÔÄÕß
(subscriber)
¡£Ê¼þ´¦Àí³ÌÐòÊÇ×¢²áµ½Ê¼þµÄ·½·¨£¬¿ÉÔÚÈκÎÀà»òÕ߽ṹ ......
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace PortScanner
{
class Program
{
¡¡//ÒÑɨÃè¶Ë¿ÚÊýÄ¿
¡¡internal static int scannedCount = 0;
¡¡//ÕýÔÚÔËÐеÄÏß³ÌÊýÄ¿
¡¡internal static int ru ......
ÒýÓõØÖ·:http://www.cnblogs.com/heyaowen163/articles/1177909.html
C#¹Ø¼ü×ÖµÄÓ÷¨²»µ¥Ö»ÓÐÒ»ÖÖ·½·¨µÄ¡£ÏÖÔÚÎÒ×ܽáÁËÒ»ÏÂUsingºÍNewµÄÓ÷¨£¬Ë³±ã¹®¹ÌÏÂ×Ô¼ºµÄ֪ʶ¡£
Using
£¨1£©ÒýÓÃÃüÃû¿Õ¼ä
using× ......