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"];//获取文件
easyui 上传文件代码
时间: 2024-11-05 18:57:13
easyui 上传文件代码的相关文章
Easyui上传文件的问题
首先,添加以下代码到前端界面 <form id="fm" method="post" enctype="multipart/form-data" style="margin:0;padding:20px 50px"> <div style="margin-bottom:20px;font-size:14px;border-bottom:1px solid #ccc">上传文件<
jquery ajax实现上传文件代码,带进度条
原文:jquery ajax实现上传文件代码,带进度条 源代码下载地址:http://www.zuidaima.com/share/1550463291116544.htm ajax上传文件代码,带进度条的. 首页 http://localhost:端口/项目名/common/test.htm 上传中 标签: jquery ajax 上传 进度条话题: Web开发 前端技术 jquery ajax实现上传文件代码,带进度条
Drupal创建自定义表单,上传文件代码
Drupal中创建自定义表单,用来上传文件,对上传文件做一些操作.以下是放在Module中的代码: 一.菜单建立表单路径 /** Implementation of hook_menu(). */ function moduleName_menu () { $items = array(); $items['admin/import'] = array( 'title' => 'title', 'page callback' => 'drupal_get_form', 'page argume
ExtJS + fileuploadfield上传文件代码
后台服务端接收文件的代码: /** * 后台上传文件处理Action */ @RequestMapping(value = "/uploadFile", method=RequestMethod.POST) public void uploadFile(@RequestParam(value="file",required=true) MultipartFile file ,HttpServletResponse response) { ModelMap model
PHP上传文件代码练习2 (重复文章)
表单: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题</title> </head> <body> <form action="upload.php" method="post" enctype=
上传文件代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-
javaWeb上传文件代码
javaweb两种方式的上传,1普通上传,2:jquery ajax后台上传,部分截图如下: 完成包下载,下载后倒入myeclipse工程即可,下载地址:http://files.cnblogs.com/files/haha12/uploadDemo.rar
socket 上传文件代码
server.py #!/usr/bin/env python# -*- coding:utf-8 -*- import socketimport os,hashlib ip_port = ('127.0.0.1',6969)sk = socket.socket()sk.bind(ip_port)sk.listen(5) while True: conn,address = sk.accept() while True: print('等待新指令') #获取客户端发来的操作指令 data = c