摘要: @{ ViewBag.Title = "Home Page";} 上传 取消上传 public string Upload(FormContext from) { var file = Request.Files["Filedata"]; string uploadPath = Server.MapPath("~/images/"); string url = "/images/" + file.FileName; ... 阅读全文
posted @ 2013-09-13 10:36 luosuo 阅读(2832) 评论(1) 推荐(2) 编辑
摘要: 为了方便,进度条使用的是jquery 的 easy ui, 网上有下载.需要引用easy ui的样式以及脚本文件如果不采用这样的进度条,也可以修改上传的Js以后自己做进度条. 1 72 73 74 75 76 77 @using (Html.BeginForm("ToLead", "Goods", FormMethod.Post, new { enctype = "multipart/form-data", id = "form1" })) 78 { 79 ... 阅读全文
posted @ 2013-08-27 17:30 luosuo 阅读(35592) 评论(7) 推荐(4) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Drawing;using System.Drawing.Imaging;using System.Drawing.Drawing2D;namespace Utility{ public class ImageHelp { /// /// Creating a Watermarked Photograph with GDI+ for .NET /// ... 阅读全文
posted @ 2013-07-17 15:24 luosuo 阅读(1893) 评论(0) 推荐(1) 编辑
摘要: 最近工作比较忙,没什么时间来博客 . 如今工作接近尾声, 现在总结一些以后需要用到的功能.产品在正式交付给客户之前需要交付一个试用版本,可以使用一百次.我想到的实现办法很简单,在注册表写如一个数据,每次使用数据就+1 . 代码如下:View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Win32;namespace ConsoleApplication4{ class Program { static voi... 阅读全文
posted @ 2013-05-06 14:27 luosuo 阅读(431) 评论(1) 推荐(0) 编辑
摘要: 1 #include "test1.h" 2 #include <QtGui/QApplication> 3 #include <QtGui/QtGui> 4 #include <QtGui/QWidget> 5 6 7 8 9 int main(int argc, char *argv[])10 {11 QApplication a(argc, argv);12 13 QWidget* pWidget=new QWidget;//定义一个父窗体14 QLabel label(pWidget);//添加以个lable控件 ,并指定父窗口为 阅读全文
posted @ 2012-12-26 15:46 luosuo 阅读(5962) 评论(1) 推荐(1) 编辑
摘要: 功能描述:类似于日程表,列出一周内某个时间段的日程。如:本人9:00到10:00有课,那么在课表中9:00-10:00这个时间段呈现蓝色格子(td),当鼠标移到蓝色格子上方时呈现具体事件。如图:代码实现(MVC3.0):后台Action:View Code 1 public ActionResult TeacherSchedule() 2 { 3 DateTime dt = DateTime.Now; 4 5 var customer = _workContext.CurrentCustomer; 6 ... 阅读全文
posted @ 2012-11-26 16:55 luosuo 阅读(695) 评论(0) 推荐(0) 编辑