• 大小: 8KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-31
  • 语言: C#
  • 标签:

资源简介

FileUpload控件上传文件客户端验证格式 c#,.net,FileUpload,上传,验证,客户端

资源截图

代码片段和文件信息

using System;
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Globalization;
using System.Text.Regularexpressions;
using System.IO;
using System.Drawing.Imaging;
using DigiControls.Web.SmartTextToolkit;

namespace CIPACE.Projects
{
    /// 
    /// Summary description for ProjectStatusTrackingMan.
    /// 

    public partial class ProjectStatusTrackingMan : CIPACE.Web.SysPage
    {

        protected string Notes = ““;
        private string Rule1 = “[^\“]*)\“[^>]*>“;
        private string Rule2 = @“\[--(?\d+)--\]“;

        BLL.Task taskService = new CIPACE.BLL.Task();
        private DataSet DS
        {
            get
            {
                return ViewState[“ds“] as DataSet;
            }
            set
            {
                ViewState[“ds“] = value;
            }
        }
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
        }
        protected void Page_Load(object sender System.EventArgs e)
        {
            // Put user code to initialize the page here

            SetPageInfo();

            if (!IsPostBack)
            {
                //BindProjects();
                BindStatus();
                IniPercent();
                InitialScheduleStatus();

                if (Request[“ProjectID“] != null)
                {
                    try
                    {
                        //ddlProject.Items.FindByValue(Request[“ProjectID“]).Selected=true;
                        this.ucProjectSelector.Value = Request[“ProjectID“];
                    }
                    catch { }
                }

                if (CIPACE.BLL.Utility.GetStringQueryStringValue(“Act“) != string.Empty)
                {
                    txtType.Text = “0“;
                }
                else
                {
                    txtType.Text = “1“; //add record
                }

                if (CIPACE.BLL.Utility.GetStringQueryStringValue(“ProjectStatusTrackingID“) != ““)
                {
                    txtTrkID.Text = CIPACE.BLL.Utility.GetStringQueryStringValue(“ProjectStatusTrackingID“);
                    BindTrackingInfo(txtTrkID.Text);
                }
                else
                {
                    txtTrkID.Text = “0“;
                    //txtStsDate.Text=DateTime.Now.ToString(“MM/dd/yyyy“null);
                }

                if (CIPACE.BLL.Utility.GetStringQueryStringValue(“Act“).ToLower().ToString() == “del“)
                {
                    btnDelete_Click(null null);
                }

                SmartText stDelete = new SmartText(“CF_DeleteProjectImplement

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-10-08 14:49  FileUpload控件客户端格式验证\
     文件        7890  2010-07-26 11:43  FileUpload控件客户端格式验证\ProjectStatusTrackingMan.aspx
     文件       27141  2010-07-26 11:43  FileUpload控件客户端格式验证\ProjectStatusTrackingMan.aspx.cs

评论

共有 条评论

相关资源