asp.net×Ô¶¯Ö´ÐÐÈÎÎñ
ÔÚ¸´ÔÓµÄÒµÎñÓ¦ÓóÌÐòÖУ¬ÓÐʱºò»áÒªÇóÒ»¸ö»òÕß¶à¸öÈÎÎñÔÚÒ»¶¨µÄʱ¼ä»òÕßÒ»¶¨µÄʱ¼ä¼ä¸ôÄڼƻ®½øÐУ¬±ÈÈ綨ʱ±¸·Ý»òͬ²½Êý¾Ý¿â£¬¶¨Ê±·¢Ë͵ç×ÓÓʼþ£¬¶¨ÆÚ´¦ÀíÓû§×´Ì¬ÐÅÏ¢£¬Ö§¸¶ÏµÍ³Öж¨ÆÚͬ²½Òì³£Õ˵¥µÈµÈ£¬ÎÒÃdzÆÖ®Îª¼Æ»®ÈÎÎñ¡£ÊµÏּƻ®ÈÎÎñµÄ·½·¨Ò²Óкܶ࣬¿ÉÒÔ²ÉÓÃSQLAgentÖ´Ðд洢¹ý³Ì£¬²ÉÓÃWindowsÈÎÎñµ÷¶È³ÌÐòÀ´ÊµÏÖ£¬Ò²¿ÉÒÔʹÓÃWindows·þÎñÀ´Íê³ÉÎÒÃǵļƻ®ÈÎÎñ£¬ÕâЩ·½·¨¶¼ÊDz»´íµÄ½â¾ö·½°¸¡£µ«ÊÇ£¬ÒÔÉÏÕâЩ¶¼ÐèÒªÓзþÎñÆ÷µÄȨÏÞ²ÅÄܽøÐУ¬¶ø¶ÔÓÚÐéÄâÖ÷»ú¿Í»§Ê¹ÓõÄWebÓ¦ÓóÌÐòÀ´Ëµ£¬ÕâЩ·½·¨ÊµÏÖÆðÀ´²¢²»ÊǺܼòµ¥µÄ£¬Ö÷»ú·þÎñÌṩÉÌ»òÕß²»ÄÜÖ±½ÓÌṩÕâÑùµÄ·þÎñ£¬»òÕßÐèÒªÄãÖ§¸¶Ðí¶à¶îÍâµÄ·ÑÓᣠ¿´¹ýһЩÕâ·½ÃæµÄÎÄÕ£¬·¢ÏÖÓÐÒ»¸ö¹²Í¬µÄȱµã£ºIISÔËÐе½Ò»¶¨Ê±ÆÚ£¬¼Æ»®ÈÎÎñ¾ÍÍ£Ö¹ÁË¡£²éÕÒÔÒò·¢ÏÖÊÇIISµÄÓ¦ÓóÌÐò³Ø¶¨ÆÚ»ØÊÕµ¼Ö¼ƻ®ÈÎÎñÍ£Ö¹¡£±¾ÎĵÄÕâ¸ö·½·¨¿ÉÒÔ½â¾öÓ¦ÓóÌÐò³Ø»ØÊÕÎÊÌâ¡£
Global.asax.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Timers;
using System.Net;
using System.IO;
using System.Text;
using System.Threading;
namespace qumiao.com
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
//¶¨Ò嶨ʱÆ÷
System.Timers.Timer myTimer = new System.Timers.Timer(5000);
myTimer.Elapsed += new ElapsedEventHandler(myTimer_Elapsed);
myTimer.Enabled = true;
 
Ïà¹ØÎĵµ£º
<%
set conn= server.createobject("ADODB.connection")
conn.open "driver={sybase driver 10};"
"srvr=SYBASE;"
"UID=sa;"
"pwd=sybase;"
sql="select no from tab_st ......
//Ìæ»»ËùÓÐ
Regex reg = new Regex(@"(?is)</?a\b[^>]*>(?:(?!</?a).)*</a>");
string result = reg.Replace(yourStr, "");
//±£Áôwww.abc.comÁ´½Ó
Regex reg = new Regex(@"(?is)</?a\b.*?href=(['""]?)(?!(?:http://)?www\.abc\.com)[^'""\s>]+\1[^>]*>(?<text>(?:(?!</?a).) ......
The MVC bits have finally arrived and I’ve spent a while digesting them. I’ve been waiting for the bits to be released to begin working on a side-project, so the first thing I did after downloading them last night was crank it up and start working on a new ASP.NET MVC Web Application p ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......
(Ò»).Web.ConfigÊÇÒÔXMLÎļþ¹æ·¶´æ´¢,ÅäÖÃÎļþ·ÖΪÒÔϸñʽ
1.ÅäÖýڴ¦Àí³ÌÐòÉùÃ÷
ÌØµã£º λÓÚÅäÖÃÎļþµÄ¶¥²¿£¬°üº¬ÔÚ<configSections>±êÖ¾ÖС£
2.ÌØ¶¨Ó¦ÓóÌÐòÅäÖÃ
ÌØµã: λÓÚ<appSetting>ÖС£ ¿ÉÒÔ¶¨ÒåÓ¦ÓóÌÐòµÄÈ«¾Ö³£Á¿ÉèÖõÈÐÅÏ¢.
3.ÅäÖýÚÉèÖÃ
ÌØµã: λÓÚ<system.Web>½ÚÖУ¬¿ØÖÆAsp.netÔËÐÐÊ ......