易截截图软件、单文件、免安装、纯绿色、仅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


相关文档:

脚本(JS)关闭窗体(ASP.NET)

关闭窗体 
  1.
      this.btnClose.Attributes.Add("onclick",  "window.close();return false;");
  2.关闭本窗体间跳转到另一个页面
      this.HyperLink1.NavigateUrl = "javascript:onclick=window.opener.location.assign
        ......

asp.net使用ajax后如何在客户端弹出提示对话框

//平常调用javascript方法
ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert'Weclome!!!');</script>");
背景不为白色的方法:
Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('添加失败,请联系技术员!') ......

在不同版本的 IIS 上使用 ASP.NET MVC

在不同版本的 IIS 上使用 ASP.NET MVC
ASP.NET MVC Framework 依赖于 URL 路由。为了利用 URL 路由,可能不得不在 Web 服务器上执行额外的配置步骤。这些步骤取决于 Internet Information Services (IIS) 的版本和应用程序的请求处理模式。
IIS 的最新版本是版本 7.0。IIS 的此版本包括在 Windows Server 2008 中。还可以 ......

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

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

ASP.NET 中如何对生成的 HTML 内容流进行控制?

<%@ Page Language="C#" %>  
<%@ Import Namespace="System.IO" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<script runat="server">  
  prote ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号