自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 得到c++的运行时间

#include #includeusing namespace std;void GetTime(int);void main(){  GetTime();}void GetTime(){    LARGE_INTEGER freq;   //频率    LARGE_INTEGER start_t, stop_t;      d

2013-11-20 10:02:56 682

原创 mvc身份验证

2013-03-18 03:41:55 501

原创 javascript 中的null 和undefined

很简单一句话 null 是 有明确类型没有值的这一类表达式返回的值  typeof 之后 是 object , undefined  连类型 都不知道的得这一类表达返回值 typeo undefined 为 undefined

2013-03-04 03:21:42 238

原创 一般应用程序(*.ashx)注意事项

当前上下文 httpcontext.current 获取 get 或post  httpcontext.current.request.methodetype(得到是大写字符串)获取form中的数据 httpcontext.current.request.form[index or name];验证是cs两边都要验证获取服务器文件路径 httpcontext.current.s

2013-02-04 00:07:01 443

原创 c# 序列化和发序列化最经典例子

首先定义一个person 类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace test{    [Serializable]    class PerSon

2013-02-03 00:19:20 1125

转载 传智播客

SqlCommand的SqlDataReader();方法返回了一个SqlDataReader的对象,这个返回值是用于操作我们sql语句得到的结果集。执行完sql得到的一个结果集,这个结果集存储在数据库上,还没有取回到我们的程序中,要想取回到程序中,要调用dr.Read();方法,每调用一次Read方法,dr都会去数据库上的结果集中取一条记录,如果能取到下一条记录,则返回值为true,否则

2013-02-02 23:28:49 734

原创 ADO.NET连接池

SqlConnection coon=new SqlConnection ("server=.;database=itcast;uid=sa;pwd=123")当运行这条语句时, conn 会到 连接池里面找 有没有和conn一样的连接对像,如果有,连接池就会返回这个连接对像给conn,如果没有,就会在队中重新new 一个新的连接对象, 当 conn .close时,就会返回这个连接对象给连接

2013-02-02 23:13:10 275

原创 model 类 的Nullable<T>

类型“string”必须是不可为 null 的值类型才能用作泛型类型或方法“System.Nullable”中的参数“T”d:\my documents\visual studio 2012\Projects\ReflationSystem\ReflationSystem\Student.cs18 25 ReflationSystem看到这个,就要主要到错误 类型“stri

2013-02-02 01:49:59 400

原创 c#泛型继承的里氏原则问题

class Dog    {         public virtual void SayHi()         {             Console.WriteLine("i am the dog");         }    } class MiniDog:Dog    {        public override void  SayHi()

2013-01-31 21:04:29 347

原创 C# MD5加密

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using

2013-01-29 20:17:10 1077

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除