⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlinputfile.cs

📁 不错的人事管理系统
💻 CS
字号:
using System;
using System.Globalization;
using System.Collections.Specialized;

namespace System.Web.UI.HtmlControls
{
	/// <summary>
	/// Summary description for HtmlInputFile.
	/// </summary>
	//.custom instance void System.Web.UI.ValidationPropertyAttribute
	public class HtmlInputFile : HtmlInputControl,IPostBackDataHandler
	{

		public HtmlInputFile() : base("file") 
		{
		}

		bool System.Web.UI.IPostBackDataHandler.LoadPostData(string postDataKey, NameValueCollection postCollection) 
		{
			string local0;

			local0 = postCollection.GetValues(postDataKey)[0];
			if (local0 != null)
				this.Value = local0;
			return false;
		}

		void System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() 
		{
		}

		public string Accept 
		{
			get
			{
				string local0;

				local0 = this.Attributes["accept"];
				if (local0 == null)
					return "";
				return local0;
			}
			set
			{
				this.Attributes["accept"]= System.Web.UI.HtmlControls.HtmlControl.MapStringAttributeToString(value);
			}
		}

		public int MaxLength
		{
			get
			{
				string local0;

				local0 = this.Attributes["maxlength"];
				if (local0 == null)
					return -1;
				return System.Int32.Parse(local0, CultureInfo.InvariantCulture);
			}
			set
			{
				this.Attributes["maxlength"]= System.Web.UI.HtmlControls.HtmlControl.MapIntegerAttributeToString(value);
			}
		}

		public HttpPostedFile PostedFile
		{
			get
			{
				return this.Context.Request.Files[this.RenderedNameAttribute];
			}
		}

		public int Size 
		{
			get
			{
				string local0;

				local0 = this.Attributes["size"];
				if (local0 == null)
					return -1;
				return System.Int32.Parse(local0);
			}
			set
			{
				this.Attributes["size"]= System.Web.UI.HtmlControls.HtmlControl.MapIntegerAttributeToString(value);
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -