@model MvcApplication1.Models.M_Person@using
MvcApplication1.Models;@{ ViewBag.Title = "GetData"; var p = ViewData["data"] as
M_Person; var p...
分类:
Web程序 时间:
2014-05-01 00:00:48
阅读次数:
486
【创建目录】using
System.IO;Directory.CreateDirectory(FilePath);【使用WriteFile下载文件】private string
fileName = HttpContext.Current.Server.UrlEncode("规范.rar"); p...
分类:
其他好文 时间:
2014-04-30 23:34:03
阅读次数:
443
using System;using System.Web;public class
Search_Book : IHttpHandler { public void ProcessRequest (HttpContext context) {
context.Respo...
分类:
其他好文 时间:
2014-04-30 23:28:59
阅读次数:
372
在MVC3里面——程序集 System.Web.Mvc.dll,
v4.0.30319有这么一个Ajax.BeginForm异步登录验证的类型,我们在下面给出一个例子:在登录页面Logion.cshtml。使用@using
(Ajax.BeginForm("Login", "Home", new.....
分类:
其他好文 时间:
2014-04-30 23:13:32
阅读次数:
561
vs2008中使用gdi+1.新建一个mfc工程2.在stdafx.h文件中加入以下几行语句:#include
//#pragma comment(lib, "gdiplus.lib") //在工程属性中添加亦可using namespace Gdiplus;
//使用GDI+的命名空间, 若不用....
分类:
其他好文 时间:
2014-04-30 23:03:21
阅读次数:
553
1.安装 mysql ,安装过程中将提示设置 root 用户的密码,默认可以设置为 rootadmin
。$ sudo apt-get install mysql-server2.安装 mysql 开发工具(不安装时,安装 MySQL-python
提示错误"mysql_config not fou...
分类:
数据库 时间:
2014-04-30 23:00:18
阅读次数:
625
Problem 2167 大王叫我来巡山呐
比赛的第二题 呵呵
Problem 2168 防守阵地 I
比赛时看懂第一题 大了下草稿 马上切了它
假设当前x=(ai)*1+(ai+1)*2+(ai+2)*3+''''+(aj)*m
下一次是(ai+1)*1+(ai+2)*2+(ai+3)*3+''''+(aj+1)*m = (ai)*1+(ai+1)*2+(ai+2)*3+''''+(a...
分类:
其他好文 时间:
2014-04-27 21:46:59
阅读次数:
224
原文链接: Start Using Java Lambda Expressions
下载示例程序 Examples.zip 。
原文日期: 2014年4月26日
翻译日期: 2014年4月27日
翻译人员: 铁锚
简介
(译者注:虽然看着很先进,其实Lambda表达式的本质只是一个"语法糖",由编译器推断并帮你转换包装为常规的代码,因此你可以使用更少的代码来实现同样的功能。本人建议不要...
分类:
编程语言 时间:
2014-04-27 21:45:03
阅读次数:
460
program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Tst
{
class Program
{
static void Main(string[] arg...
分类:
移动开发 时间:
2014-04-27 21:35:59
阅读次数:
467
前几天去了两个比较牛的互联网公司面试,在sql这块都遇到问题了,哎,可惜呀,先把简单的梳理一下
成绩表 score
1、group by 使用
按某一个维度进行分组
例如:
求每个同学的总分
SELECT student,SUM(score) FROM score GROUP BY student
求每个同学的平均分
SELECT student,AVG(score) FR...
分类:
数据库 时间:
2014-04-27 21:17:59
阅读次数:
614