ASP.NETÈ¡ÍøÒ³Êý¾Ý¡¶Êý¾Ý²É¼¯¡·
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string strURl = "http://www.jxflcp.net/ssc/";//»»³ÉÄãÒªµÄÄǸöÍøÖ·
string str = GetHttp(strURl);
if (str != "xx")
{
//»»³ÉÄãÏëÒª½ØÈ¡ÍøÒ³²¿·ÖÄÚÈݵĴúÂë
Regex reg = new Regex(@"<td width=""100"" height=""22"" style=""font-size: 14px;font-weight: bold;color: #006600;"">(\d+)</td>[\s\r\n]*<td width=""80"" style=""font-size: 14px;font-weight: bold;color: #0099FF;"">([\d\s\:]+)</td>[\s\r\n]*<td width=""100"" style=""font-size: 14px;font-weight: bold;color: #cc0000;"">([\d,\s]+)</td>");
if (reg.IsMatch(str))
{
MatchCollection mc = reg.Matches(str);
foreach (Match m in mc)
{
Response.Write(m.Result("
Ïà¹ØÎĵµ£º
1¡¢ÔÚÏßÓû§ÁбíµÄʵÏÖ
ÔÚASPʱ´ú£¬ÒªÊµÏÖÒ»¸öÍøÕ¾µÄÔÚÏßÓû§ÁбíÏÔʾ¹¦ÄܵĹßÓÃ×ö·¨ÊÇÐÞ¸Äglobal.asaÎļþÖеģºApplication_Start¡¢Session_StartºÍSession_EndÕâÈý¸öº¯Êý¡£ÔÚASP.NETʱ´ú£¬ÎÒÒÀÈ»ÕâÑù×ö¡£µ«ÊDZØÐë×¢ÒâºÜ¶àÎÊÌâ¡£Ê×ÏÈÀ´¿´¿´×î¼òµ¥µÄ´úÂëʵÏÖ£º
protected void Application_Start(Object sender, EventArg ......
Ö»ÄÜÊäÈëÊý×Ö£º"^[0-9]*$"¡£
Ö»ÄÜÊäÈënλµÄÊý×Ö£º"^\d{n}$"¡£
Ö»ÄÜÊäÈëÖÁÉÙnλµÄÊý×Ö£º"^\d{n,}$"¡£
Ö»ÄÜÊäÈëm~nλµÄÊý×Ö£º¡£"^\d{m,n}$"
Ö»ÄÜÊäÈëÁãºÍ·ÇÁ㿪ͷµÄÊý×Ö£º"^(0|[1-9][0-9]*)$"¡£
Ö»ÄÜÊäÈëÓÐÁ½Î»Ð¡ÊýµÄÕýʵÊý£º"^[0-9]+(.[0-9]{2})?$"¡£
Ö»ÄÜÊäÈëÓÐ1~3λСÊýµÄÕýʵÊý£º"^[0-9]+(.[0-9]{1,3})?$"¡£
Ö»ÄÜÊ ......
[ת]asp.net ĸ°æÒ³Ê¹ÓÃÏê½â
ĸ°æÒ³£¨À©Õ¹ÃûÊÇ.master£©
ËüµÄʹÓøúÆÕͨµÄÒ³ÃæÒ»Ñù£¬¿ÉÒÔ¿ÉÊÓ»¯µÄÉè¼Æ£¬Ò²¿ÉÒÔ±àдºóÖôúÂë¡£ÓëÆÕÍ¨Ò³Ãæ²»Ò»ÑùµÄÊÇ£¬Ëü¿ÉÒÔ°üº¬ContentPlaceHolder¿Ø¼þ£¬ContentPlaceHolder¿Ø¼þ¾ÍÊÇ¿ÉÒÔÏÔʾÄÚÈÝÒ³ÃæµÄÇøÓò¡£
´úÂëÈçÏ£º
<%@ Master Language="C#" AutoEventWireup="true" CodeFile=" ......
PHP VS ASP.NET
²©¿Í·ÖÀà: ÊÕ»ñ»ýÀÛ
bruce·¢±íÓÚËÄÔ 14 2009, 04:42 ÏÂÎç
PHPºÍASP.NETÔÚ±¾ÖÊÉÏÊÇÓкܴó²»Í¬µÄ£¬PHP³£±»Ó¦Óõ½¹¦Ä̶ܹ¨µÄÍøÕ¾¹¹½¨ÉÏ£¬ÀýÈçÁôÑÔ°å¡¢ÐÂÎÅ·¢²¼¡¢ÂÛ̳ºÍͶƱµÈ£¬ÕâЩ¹¦ÄÜÊÇ¿ìËÙ½¨Õ¾±Ø±¸µÄ£¬×Ô¶¨Ò帴ÔÓµÄÉÌÒµÁ÷³Ì²»¶à£¬Òò´ËÍøÂ·ÉÏÓÐÐí¶àÏֳɵ ......