文章分类 - 如鹏网.Net训练营
摘要:Entity Framework Code First Fluent API - 配置关系
阅读全文
摘要:DataTable dt = new DataTable();dt.Columns.Add("Name");dt.Columns.Add("Age");for (int i = 0; i < 80000; i++){ DataRow row = dt.NewRow(); row["Nam...
阅读全文
摘要:HtmlPage1.html Handler1.ashxusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Script....
阅读全文
摘要:Login.html 登录 姓名: 密码: 验证码: {^msg$} Login.ashxusing System;using System.Collections.Generic...
阅读全文
摘要:1、Session保存在SQLServer中配置方法: 1)运行.NetFramework安装目录下对应版本的aspnet_regsql.exe 来创建相关的数据库、表和存储过程等,比如: C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_re
阅读全文
摘要:上传图片,创建文件夹using System;using System.Collections.Generic;using System.Drawing;using System....
阅读全文
摘要:using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Web;using NPOI.SS.UserModel;using NPOI.HSSF.UserModel;n...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Web;namespace _2_一般处理程序{ /// /// 下载文件 的摘要说明 /...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Drawing;using System.Drawing.Imaging;using System.IO;using System.Linq;using System.Text;us...
阅读全文
摘要:Random.Next 方法 (Int32, Int32)参数minValue类型:System.Int32返回的随机数的下界(随机数可取该下界值)。maxValue类型:System.Int32返回的随机数的上界(随机数不能取该上界值)。maxValue必须大于或等于minValue。返回值类型:...
阅读全文
摘要:NPOI官网NPOI教程using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using NPOI.SS.UserModel;usi...
阅读全文
摘要:Microsoft Visual Studio International Pack 下载地址using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threadi...
阅读全文
摘要:委托的使用声明委托的方式:delegate返回值类型委托类型名(参数)比如delegatevoidMydel(intn)注意这里的除了前面的delegate,剩下部分和声明一个函数一样,但是Mydel不是函数名,而是委托类型名存储什么样的方法就声明什么类型(方法参数与返回值)的委托。声明的委托是一种...
阅读全文
摘要:XML 教程http://www.w3school.com.cn/xml/index.asp1.读取XMLusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Th...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Text;using System.Text.RegularExpressions;using System.T...
阅读全文
摘要:第一章:html第1节01_html入门1.HTML(HyperTextMarkupLanguage)超文本标记语言第2节02_字体标签1.font标签,face属性指定文本显示的字体样式实例:字体2.特殊字符 >& &" "® ®© ©空格 ™ ™第3节03_列表标签无序列表 游戏 部门 ...
阅读全文
摘要:第 1 节String常用方法11.bool Contains(String str):判断字符串对象是否包含给定的字符串。2.bool StartsWith(String str):判断字符串对象是否以给定的字符串开始。3.bool EndsWith(String str):判断字符串对象是否以给...
阅读全文
摘要:第 1 节面向对象基本概念面向对象编程(OOP)面向对象三大特征:封装、继承、多态。第 2 节定义类字段方法及实例化类1、最简单的类:class Person{}2、增加类变量(字段/成员变量)和方法://字段用来描述类内部的信息//方法是类的“行为”3、类的实例化://创建Person类的对象/实...
阅读全文
摘要:第 1 节For循环入门1.for(初始化表达式;循环条件表达式;循环后的操作表达式){ //循环体语句}最开始先执行“初始化表达式”(只执行一次),然后循环执行:先判断“循环条件表达式”,如果为true,则执行“循环体语句”,然后执行循环后的操作表达式; 2.死循环For(;;){}第 2 节Fo...
阅读全文
摘要:第 1 节关键字和标识符1.标识符命名规则:1)由字母、中文(不推荐)、数字、下划线 组成;2)不能以数字开头;3)不能是关键字。2.C#语言是大小写敏感;3.驼峰命名法:每个单词第一个字母大写。4.类名、方法名:大写开头;变量名:小写开头。第 2 节变量的声明和赋值、变量的作用域1.局部变量使用前...
阅读全文