将HtmlInputFile改为服务器控件

  Asp.net中的HtmlInputFile是继承自HtmlInput的一种客户端控件,下面,我们自定义一个WebControl以实现HtmlInputFile一样的功能的控件。
  1using System;
  2using System.Drawing;
  3using System.Drawing.Design;
  4using System.Web.UI;
  5using System.Web;
  6using System.Text;
  7using System.Web.UI.WebControls;
  8using System.Web.UI.HtmlControls;
  9using System.ComponentModel;
 10using System.ComponentModel.Design;
 11
 12namespace FaibClass.WebControls
 13{
 14    public abstract class BaseFileUploader : WebControl
 15    {
 16        私有变量
 22
 23        public BaseFileUploader()
 24        {
 25        }

 26
 27        属性
 88
 89        公共方法
126
127        私有方法
192    }

193}

194
原文地址:https://www.cnblogs.com/faib/p/733213.html