xiaowei-blog

导航

随笔分类 -  .net(c#)开发

1 2 下一页

查询某贴及对应跟帖
该文被密码保护。

posted @ 2015-03-30 16:09 xiaowei-blog 阅读(0) 评论(0) 推荐(0)

删帖
该文被密码保护。

posted @ 2015-03-30 15:39 xiaowei-blog 阅读(4) 评论(0) 推荐(0)

[转]windows form的Owner属性和ShowInTaskbar属性的用法
摘要:http://blog.sina.com.cn/s/blog_4c5bcd6701000are.html这是由于做项目看到的一个owner的用法,发现还算解释的可以1.Owner属性为form指定一个父窗口。这个属性在子窗口(form)作为非模态对话框使用时比较有用,它能使子窗口在非激活状态下不被父... 阅读全文

posted @ 2015-03-27 13:01 xiaowei-blog 阅读(453) 评论(0) 推荐(0)

[转]C#读写操作app.config中的数据应用介绍
该文被密码保护。

posted @ 2015-03-24 11:06 xiaowei-blog 阅读(0) 评论(0) 推荐(0)

[转]C#代码实现邮箱验证C#中及一些常用的正则表达式
摘要:http://blog.sina.com.cn/s/blog_53ad31720100i2gl.html需要引用using System.Text.RegularExpressions;Regex r = new Regex("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+... 阅读全文

posted @ 2015-03-16 21:43 xiaowei-blog 阅读(154) 评论(0) 推荐(0)

[转]c#:用DateTime的ParseExact方法解析特殊的日期时间
摘要:http://www.cnblogs.com/greenerycn/archive/2010/07/17/use_datetime_parseexact.html //ShortDateFrom:yyyyMMdd格式化yyyy/MM/dd DateTime dt = DateTime.ParseEx... 阅读全文

posted @ 2015-03-13 17:49 xiaowei-blog 阅读(183) 评论(0) 推荐(0)

[转].NET 中日期和时间的格式化处理
摘要:http://www.0431cn.com/ygtd_wz_nr_2077.html一、日期和时间的格式化处理:1.绑定时格式化日期方法: 2.数据控件如DataGrid/DataList等的件格式化日期方法: e.Item.Cell[0].Text = Convert.ToDateTime(e.I... 阅读全文

posted @ 2015-03-13 12:02 xiaowei-blog 阅读(240) 评论(0) 推荐(0)

匿名类型测试
摘要:/// /// /匿名类型测试 /// //参数名称、类型、顺序不同,则同一程序中声明的匿名类型实例不同 /// class AnonymousType { //测试匿名类型 public static void Test1() { var var1 = new { name ... 阅读全文

posted @ 2015-02-16 11:02 xiaowei-blog 阅读(149) 评论(0) 推荐(0)

扩展方法测试
摘要://定义扩展方法 //1.类类型必须为静态的 //2. 类名为扩展方法的容器,扩展名是要被扩展的类型名称,既要其中添加方法的类 //3.this关键字是扩展方法标识,this关键字后面的类型为要扩展的类型 //4.this变量后面的的变量为参数列表 static class StringExten... 阅读全文

posted @ 2015-02-16 11:01 xiaowei-blog 阅读(121) 评论(0) 推荐(0)

[推荐]Ajax与JSON的一些总结
摘要:http://www.cnblogs.com/rush/archive/2012/05/15/2502264.html#lb1 阅读全文

posted @ 2015-02-15 17:06 xiaowei-blog 阅读(115) 评论(0) 推荐(0)

.net jquery ajax应用(后台)
摘要:一般处理程序后台 //获取页面参数 string count = context.Request["startCount"]; string descri = context.Request["starDescri"]; //返回处理结果 context.Response.Write("true"... 阅读全文

posted @ 2015-02-15 16:18 xiaowei-blog 阅读(98) 评论(0) 推荐(0)

.net jquery ajax应用(前端)
摘要://一般处理程序,GET方式提交(data:要传送的数据键值对) jQuery.ajax( { type: 'GET', url: 'GradeHandler.ashx?startCount&starDescri', data: { startCount: startCount, starDesc... 阅读全文

posted @ 2015-02-15 16:13 xiaowei-blog 阅读(116) 评论(0) 推荐(0)

一般处理程序中Session失败解决方案
摘要:解决方法: 在实现IHttpHandler的同时,也要实现IRequiresSessionState接口,其命名空间为:System.Web.SessionState。 public class Logout : IHttpHandler, System.Web.SessionState.IReq... 阅读全文

posted @ 2015-02-12 19:11 xiaowei-blog 阅读(451) 评论(0) 推荐(0)

上传图片
摘要:public int UpdateImgs(FileUpload FileUpload1, HttpServerUtility server, int id) { //如果不是图片文件 if (!isImg(FileUpload1)) return 0; string fileName = Fil... 阅读全文

posted @ 2015-02-09 15:52 xiaowei-blog 阅读(74) 评论(0) 推荐(0)

[推荐]改善C#程序的建议4:C#中标准Dispose模式的实现
摘要:http://www.cnblogs.com/luminji/archive/2011/03/29/1997812.html 阅读全文

posted @ 2015-02-09 10:40 xiaowei-blog 阅读(72) 评论(0) 推荐(0)

.net图片上传并改变图片大小
该文被密码保护。

posted @ 2015-01-29 18:07 xiaowei-blog 阅读(1) 评论(0) 推荐(0)

.NET中获取服务器端控件的ID进行客户端编程
摘要:链接:http://www.360doc.com/content/11/0829/10/7532286_144170900.shtml 阅读全文

posted @ 2015-01-26 08:48 xiaowei-blog 阅读(113) 评论(0) 推荐(0)

事务使用测试结论
摘要:/* * 事务使用测试结论: * 1.开始事务前,数据库必须是打开状态; * 2.事务作用于DbCommand命令,因此,开启的事务就必须在执行事务操作之前对DbCommand实例指定事务; * * */如果不满足上... 阅读全文

posted @ 2015-01-07 00:13 xiaowei-blog 阅读(324) 评论(0) 推荐(0)

Enum枚举
摘要:1.定义enum orientation :byte { north=1, south=2, east=3, west=4 }2.使用//定义enum orientation myOrientation = orientation.east; System.Console.WriteLine(m... 阅读全文

posted @ 2014-12-25 16:50 xiaowei-blog 阅读(126) 评论(0) 推荐(0)

水晶报表2
摘要://报表路径srgstring strg = Application.StartupPath.ToString(); strg = strg.Substring(0, strg.LastIndexOf("\\")); strg = strg.Substring(0, strg.LastIndexOf... 阅读全文

posted @ 2014-12-17 11:15 xiaowei-blog 阅读(80) 评论(0) 推荐(0)

1 2 下一页

欢 迎 大 家光 临 我 的 个 人 博 客 !