C#
文章平均质量分 77
zhi0326
这个作者很懒,什么都没留下…
展开
-
索引值超出范围,必须为非负值并小于集合大小
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。参数名: index分析: 1.gridview的datasource是否重新做了绑定 2.是否设定了datakeyn...2011-04-18 13:39:18 · 1810 阅读 · 0 评论 -
GridView中超链接HyperLinkField标签的使用方法
这里是前段的asp.net页面 [color=red][/color] ssRptdetail.aspx 表示:点击一下具体的单号值,跳转到与之关联的下一个页面!跳转后页面的C#后台public partial class shouhou_ssRptdetail : BasePage{ protected void Pa...2011-04-18 17:01:19 · 358 阅读 · 0 评论 -
Webdiyer.AspNetPager 说明
比较标准的分页显示格式和属性设置:绑定分页数据绑定数据表互动 /// /// 分页控件 /// private void BoundToAspNetPager(Wuqi.Webdiyer.AspNetPager NetPager1,int states) { ArrayList ParamLis...2011-04-28 10:39:39 · 276 阅读 · 0 评论 -
C# 日期时间截取
关键字:c# 日期时间 截取DateTime dt = DateTime.Now;Label11.Text = dt.ToString();2005-11-5 13:21:25Label12.Text = dt.ToFileTime().ToString();127756416859912816Label13.Text = dt.ToFileTimeUtc().ToString...2011-05-24 18:51:50 · 1607 阅读 · 0 评论 -
C# 日期类型比较
关键字:c#日期类型 c#日期比较 日期比较DateTime t1 = DateTime.Pares(Text1.value); DateTime t2 = DateTime.Pares(Text2.value); if([color=red]t1> t2[/color]) ....清风夜影寒:http://qfyyh.iteye.com...2011-05-30 10:23:45 · 413 阅读 · 0 评论 -
c# 获取月份中的第一天和最后一天 c#根据年份和月份获得本月最后一天
关键字:c# 获取月份最后一天 年份 月份清风夜影寒:http://qfyyh.iteye.com正文:获取一个月份中最早的一天和最后的一天。在C#的DateTime类中,已经提供了现成的函数,下面分别用两个简单的函数表示:private DateTime [color=red]GetFirstDayOfMonth[/color](int Year,int Mon...2011-05-31 13:03:06 · 528 阅读 · 0 评论