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("
Ïà¹ØÎĵµ£º
ÈçºÎѧϰASP.NET
2009-07-24 09:49
Èç¹ûÄãÒѾÓн϶àµÄÃæÏò¶ÔÏ󿪷¢¾Ñé£¬Ìø¹ýÒÔÏÂÕâÁ½²½£º
µÚÒ»²½ ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C££»òVB.NET¡£
ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏóÓïÑÔµÄǰÌáÏÂȥѧASP.NET¡£
ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®ÃæÏò¶ÔÏó£¬ÄǾø¶Ôѧ²»ÏÂÈ¥£¡
µÚ¶þ²½ ¶Ô.NET FrameworkÀà¿âÓÐÒ»¶¨µÄ ......
protected void Unite(GridView gv)
{
int i;
string LastType1;
int LastCell;
if (gv.Rows.Count > ......
asp.netÖÐÏÔʾÔÚÏßÓû§
private static System.Threading.Timer timer;
private const int interval = 1000 * 60 * 20;//¼ì²éÔÚÏßÓû§µÄ¼ä¸ôʱ¼ä
/// <summary>
/// ±ØÐèµÄÉè¼ÆÆ÷±äÁ¿¡£
/// </summary>
private System.ComponentModel.IContainer components = null;
public Global()
{
Initialize ......
Ö»ÄÜÊäÈëÊý×Ö£º"^[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})?$"¡£
Ö»ÄÜÊ ......
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ò
Re ......