C#£¨ASP.NET£© ÏÂÔØÊý¾Ý
Internet Àà
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Net;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
namespace DownData
{
class internet
{
#region ¹ýÂË¿Õ¸ñ
public static string FilterKG(string msg)
{
string ms = Regex.Replace(msg, @"\s", "");
return ms;
}
#endregion
#region ¿É±äµØ·½
// ÌáÈ¡HTML´úÂëÖеÄÍøÖ·
public static ArrayList GetHyperLinks(string content)
{
ArrayList al = new ArrayList();
int b = 0;
int a = 0;
int index = 0;
while (true)
{
a = content.IndexOf("<a href=\"javascript:click_history('", b);
if (a != -1)
{
Ïà¹ØÎĵµ£º
1¡¢½çÃæ´úÂ룺
<asp:GridView ID="gridTemplateDetailList" runat="server"
AutoGenerateColumns="False"
&nbs ......
ÏÈ¿´¿´ASP.NETÒ³ÃæˢеÄʵÏÖ·½·¨£º
µÚÒ»£º
C# code
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
C# code
private void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script langua ......
VS2005+SQL2005 ASP.NET2.0Êý¾Ý¿âÁ¬½Ó×ܽá
ͨ¹ýÉÏƪÎÄÕ£¨http://www.cnblogs.com/user34j/archive/2007/01/23/628426.html£©µÄÉèÖÃÆäʵÒѾ²î²»¶àÍê³ÉÁË£¬Ö»ÊÇ»¹ÓÐһЩϸ½ÚµÄµØ·½Ã»ÓÐ×öºÃ£¬¾¹ýÒ»·¬Ñо¿ÏÖÔÚÖÕÓڸ㶨ÁË¡£¶ÔÓÚÏñÎÒÕâÑùµÄÐÂÊÖÀ´Ëµ£¬Õû¸öÊý¾Ý¿âÁ¬½ÓÕæÊDz»ÈÝÒס£ÏÖ×ܽáÈçÏ£ ......
login.aspx HTML´úÂë
1<%@ Page language="c#" Codebehind="02Login.aspx.cs" AutoEventWireup="false" Inherits="Éí·ÝÑéÖ¤._02Login" %>
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3<HTM ......
±¾ÎÄͨ¹ýÒ»¶ÎÍêÕûµÄ´úÂëÏò¶ÁÕß½éÉܸ´ºÏ×Ô¶¨Òå¿Ø¼þµÄÖÆ×÷£¬°üÀ¨£º×Ô¶¨ÒåÊôÐÔ¡¢Ê¼þ´¦Àí¡¢¿Ø¼þ¼äÊý¾Ý´«µÝµÈ·½ÃæµÄ¼¼Êõ¡£
ÒÔÏÂÊÇÒ»¸öµÇ½¿òµÄ´úÂ룬°üÀ¨£ºÓû§ÃûÊäÈëTextBox¡¢ÃÜÂëÊäÈëTextBox¡¢Ìá½»Button¡¢ÖØÖÃButtonÒÔ¼°³ÐÔØÒÔÉÏËÄÏîµÄPanel¡£¿Ø¼þÀàÃûΪLoginCtrl¡£
£¨Àý³ÌʹÓÃC#£©
using System;
using System.Web.UI;
......