易截截图软件、单文件、免安装、纯绿色、仅160KB

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)
                {
             


相关文档:

TinyMCE(富文本编辑器)在Asp.Net中的使用方法

TinyMCE 在Asp.Net中的使用方法其实挺简单的,从官方网站下载TinyMCE),然后将里面的jscripts目录拷到你的网站目录
假设你的aspx页面中某一个地方需要用到编辑器,则加入
<asp:TextBox ID=”brand” TextMode=”MultiLine” runat=”server” />
并同时在header里加入:
<script ......

40条ASP.NET开发Tip

2010-01-25 14:24
40条ASP.NET开发Tip
作者:麒麟   来源:博客园   发布时间:2010-01-21 13:16   阅读:287 次  原文链接   [收藏]  
1、在compilation 下,请设置debug=false ,如下:
default Language="c#" debug="false">
2、请使用Server.Tran ......

ASP.NET页面刷新方法总结

第一:
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } 第二:
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script&g ......

asp.net 2.0 下的表单验证Cookieless属性

在不支持Cookies的移动设备模拟器中无法正常进行表单验证,联想到昨天使用web.config设置cookieless属性时会在访问时会出现"Cannot use a leading .. to exit above the top directory"的异常,自然而然的我就想到了前一段时间困扰我很久的一个站点异常无法使用前导 .. 在顶级目录上退出(Cannot use a leading .. to exit abo ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号