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"];//获取文件

上一篇:iOS Swipe Tableviewcell(左右滑动出现按钮)


下一篇:如何在C#中使用CompositeTransform?