随笔分类 -  ASP.NET

上一页 1 ··· 4 5 6 7 8 9 下一页

C#、WinForm、ASP.NET - SQLHelper.cs
摘要:SQLHelper.csusing System;using System.Data;using System.Configuration;using System.Data.SqlClient;namespace DAL{ public class SQLHelper { ... 阅读全文

posted @ 2015-06-28 13:52 ultrastrong 阅读(438) 评论(0) 推荐(0)

MSSQL、C# 、Winform、ASP.NET - 数据库备份与还原模块
摘要:数据库备份还原类:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;//应用相应的命名空间using System.Window... 阅读全文

posted @ 2015-06-24 11:35 ultrastrong 阅读(420) 评论(0) 推荐(0)

C# / MSSQL / WinForm / ASP.NET - SQLHelper中返回SqlDataReader数据
摘要:/// /// Execute a SqlCommand that returns a resultset against the database specified in the connection string /// using the pr... 阅读全文

posted @ 2015-06-13 11:41 ultrastrong 阅读(432) 评论(0) 推荐(0)

IIS - HTTP 错误 500.21 - Internal Server Error 处理程序“WebServiceHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”
摘要:http://www.cnblogs.com/yc-755909659/p/3445278.html首先观察,aspnet_regiis.exe文件是不是损坏的,如果是,重新下载,覆盖即可,在百度云的Asp.net_regiis.exe文件夹下面下载。 阅读全文

posted @ 2015-06-04 11:08 ultrastrong 阅读(689) 评论(0) 推荐(0)

StreamWrite-StreamRead 读写文本文件
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 //添加命名空间 8 using S... 阅读全文

posted @ 2015-05-13 22:24 ultrastrong 阅读(467) 评论(0) 推荐(0)

FileStream -- 复制文件
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 //添加命名空间 8 using S... 阅读全文

posted @ 2015-05-13 21:29 ultrastrong 阅读(250) 评论(0) 推荐(0)

NHibernate之映射文件配置说明
摘要:转载自:http://www.cnblogs.com/kissdodog/archive/2013/02/21/2919886.html 阅读全文

posted @ 2015-05-09 12:41 ultrastrong 阅读(165) 评论(0) 推荐(0)

Web Service 部署到IIS服务器
摘要:转载自:http://blog.csdn.net/yexuanbaby/article/details/9029605 阅读全文

posted @ 2015-05-07 18:12 ultrastrong 阅读(218) 评论(0) 推荐(0)

Web Service 大数据量网络传输处理
摘要:转载自:http://www.cnblogs.com/blueskybcl/archive/2010/06/03/1750421.html 阅读全文

posted @ 2015-05-04 14:12 ultrastrong 阅读(224) 评论(0) 推荐(0)

数据库连接字符串
摘要:一:可以直接编写:无验证:string connectionString = "data source = (local); database = TEMP; integrated security = true";使用验证:Data Source = myServerAddress;Initial... 阅读全文

posted @ 2015-05-02 11:04 ultrastrong 阅读(323) 评论(0) 推荐(0)

C# 文件与目录的基本操作(System.IO)
摘要:转载自:http://www.cnblogs.com/SkySoot/archive/2012/03/12/2391704.html运行效果:代码: 1 /// 2 /// 文件读写操作 3 /// 为简化代码供大家学习,暂不考虑捕捉异常 4 /// 5 public partial ... 阅读全文

posted @ 2015-04-23 15:43 ultrastrong 阅读(368) 评论(0) 推荐(0)

ListView与DataTable传递数据
摘要:转载自:http://blog.sina.com.cn/s/blog_4b3485000100prhl.html代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Da... 阅读全文

posted @ 2015-04-20 16:16 ultrastrong 阅读(1899) 评论(0) 推荐(0)

ASP.NET--分页
摘要:链接:http://blog.csdn.net/starfd/article/details/44157633 阅读全文

posted @ 2015-04-19 15:33 ultrastrong 阅读(114) 评论(0) 推荐(0)

.NET截断字符串
摘要:1 /// 2 /// 截断字符串 3 /// 4 /// 要截断的字符串 5 /// 要保留的字符长度 6 /// 截断后的字符串 7 public static string F... 阅读全文

posted @ 2015-04-19 13:03 ultrastrong 阅读(362) 评论(0) 推荐(0)

静态和非静态的区别
摘要:声明 静态类和非静态类1.非静态类中:既可以定义静态字段、静态属性、静态方法,也可以定义非静态(实例成员)字段、非静态(实例成员)属性、非静态(实例成员)方法、 1 using System; 2 using System.Collections.Generic; 3 using System.Li... 阅读全文

posted @ 2015-04-17 16:54 ultrastrong 阅读(439) 评论(0) 推荐(0)

ExecuteReader: CommandText 属性尚未初始化
摘要:没有对sqlcommand对象的commandtext属性赋值说白了就是没写SQL语句 -.-无语死了。 阅读全文

posted @ 2015-04-16 14:50 ultrastrong 阅读(2223) 评论(0) 推荐(0)

用户登录模块--代码
摘要:界面:代码(账户:100001 密码:200002): 1 /// 2 /// 登陆事件 3 /// 4 private void btn_OK_Click(object sender, EventArgs e) 5 ... 阅读全文

posted @ 2015-04-15 16:24 ultrastrong 阅读(722) 评论(0) 推荐(0)

Asp.Net中GridView加入鼠标滑过的高亮效果和单击行颜色改变
摘要:转载自:http://www.cnblogs.com/fly_dragon/archive/2010/09/03/1817252.html 1 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs ... 阅读全文

posted @ 2015-04-08 21:12 ultrastrong 阅读(435) 评论(0) 推荐(0)

Sql 参数的使用
摘要:代码片段: a)声明实例 1.声明SQLCommand实例。1 SqlCommand cmd = new SqlCommand(); 2.声明SqlDataAdapter实例。1 SqlDataAdapter sdr = new SqlDat... 阅读全文

posted @ 2015-04-05 17:04 ultrastrong 阅读(983) 评论(0) 推荐(0)

ASP.NET Excel导入到SQL Server数据库
摘要:本文转自:http://www.cnblogs.com/lhking/archive/2009/06/08/1499002.html提供把Excel里的数据导入到SQL Server 数据库,前提是Excel里的字段在Sql Server表里都有,不然会出现错误。注释很详细哦!要引用的命名空间是:u... 阅读全文

posted @ 2015-03-22 10:37 ultrastrong 阅读(680) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 下一页