• easyui 上传文件代码


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.IO;
    using BLL;
    using m = Model;
    using System.Data;
    using System.Data.SqlClient;
    using System.Text;
    namespace Web.Handler
    {
    /// <summary>
    /// AddOppportunityHandler 的摘要说明
    /// </summary>
    public class AddOppportunityHandler : IHttpHandler
    {
    private HttpContext _httpContext;
    public void ProcessRequest(HttpContext context)
    {
    int result = 1;
    _httpContext = context;
    context.Response.ContentType = "text/plain";
    string jihuidianmingcheng = context.Request.Form["CrmOppportunity_Name"].ToString();
    string quhao = context.Request.Form["quhao"].ToString();
    string nianyue = context.Request.Form["nianyue"].ToString();
    string fenxi = context.Request.Form["CrmOppportunity_Analysis"].ToString();
    string duijiebumen = context.Request.Form["CrmOppportunity_PurchaseDp"].ToString();
    string duijieren = context.Request.Form["CrmOppportunityConactPerson_Name"].ToString();
    string zhiwei = context.Request.Form["CrmOppportunityConactPerson_Duty"].ToString();
    string dianhua = context.Request.Form["CrmOppportunityConactPerson_Phone"].ToString();
    string jine = context.Request.Form["CrmOppportunity_Amount"].ToString();
    string qianyueshijian = context.Request.Form["CrmOppportunity_SignDate"].ToString();
    string huoqushijian = context.Request.Form["CrmOppportunity_CreatedDateTime"].ToString();
    string jinzhanwenti = context.Request.Form["CrmOppportunity_ProblemsAndDeve"].ToString();
    Guid clientGuid = Guid.Parse(context.Request.Form["CrmClient_ID"].ToString());
    HttpPostedFile upfile = _httpContext.Request.Files["fileppt"];//获取文件

  • 相关阅读:
    服务器重启后oracle监听无法打开
    Resport 四则运算
    For循环
    do...while循环
    Day03_Class01
    自学JavaDay02_class02
    自学JavaDay02_class01
    自学JavaDay01
    基本的Dos命令
    MarkDown语法
  • 原文地址:https://www.cnblogs.com/zhang-wenbin/p/5773586.html
Copyright © 2020-2023  润新知