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

asp.net 导出Excel/Word

asp.net中导出有很多方法。其中比较推荐的兼容导出是导出为word/excel兼容的mhtml格式并设置流格式为word或excel。
这中方法的好处是可以建立一个通用的库。本文中提出了一个通用的导出类,实践中使用效果较好。(ps,html解析类写的比较仓促,各位如有兴趣可重写一下~)
///
///@Author Simsure
///@Version 1.0
///
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Net;
using System.IO;
/// <summary>
///MHtmlDocument 的摘要说明
/// </summary>
public class MHtmlDocument
{
    protected const string _NEXT_PART = "------=_NextPart_WIND";
    protected const string _4NEXT_PART = "----=_NextPart_WIND";
    private const string WIND_SESSION_ID = "wind.sessionid";
    protected string _encoding = "utf-8";
    protected string _pageVirutalPath;
    protected string _rootHttpVirtualPath;
    protected bool _enableBase64 = false;
    protected HtmlDocument _baseDocument;
    protected HttpRequest _request;
    protected HttpResponse _response;
    protected static readonly log4net.ILog _log = log4net.LogManager.GetLogger("MHtmlDocument");
    public string Encoding
    {
        get { return _encoding; }
    }
    public string RootHttpVirtualPath
    {
        get { return _rootHttpVirtualPath; }
    }
    public string PageVirtualPath
    {
        get { return _pageVirutalPath; }
    }
    public bool EnableBase64
    {
        get { return _enableBase64; }
        set { _enableBase6


相关文档:

揭秘ASP.NET 2.0的Eval方法

来源:http://www.pccode.net/info/2010/01/25/20100125-1220.html
实际上Eval方法是TemplateControl的,而System.Web.UI.Page和System.Web.UI.UserControl都继承于TemplateControl,所以我们可以在Page和UserControl上直接调用个方法。  
   
     Page.Eval方法可以帮 ......

asp.net(C#)实现SQL2000数据库备份和还原

asp.net(C#)实现SQL2000数据库备份和还原
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.Htm ......

asp.net 无法破解的软件注册码算法

http://files.cnblogs.com/chengulv/SoftRegion.rar
Microsoft .Net的应用程序的代码文件,与Java生成的文件类似,它们都没有本地代码,而是一种类似于汇编的代码。这样,只要有合适的工具,就可以完整的把别人写出来的程序反编译成自己需要的程序文件。
我所知道的.Net下的反汇编程序是Salamander 和 Refelector 两个工 ......

遭遇Asp.Net长文件名下载的问题和解决办法

在Asp.Net中写了一个附件上传和下载的程序,附件上传到数据库中,然后将附件的GUID保存起来,我们可以根据GUID来找到数据库中的附件,一般附件下载的代码是:
private void Download(string ID)
    {
        file = logic.GetA ......

ASP.NET URL Rewrite. URL重写

URL 重写是截取传入 Web 请求并自动将请求重定向到其他 URL 的过程。
  比如浏览器发来请求hostname/101.aspx ,服务器自动将这个请求中定向为http://hostname/list.aspx?id=101。
url重写的优点在于:
    缩短url,隐藏实际路径提高安全性
    易于用户记忆和键入。
 &nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号