昊仔

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 17 18 19 20 21

2013年6月4日

摘要: try...catch...finally...代码块的运行方式是:首先运行try{...}中的代码,如果没有发生任何异常,执行完毕try{...}中的代码后,执行finally{...}中的全部代码;如果执行try{...}中的代码时发生异常,在发生异常的语句处停止继续执行,进入catch{...}语句块,执行其中的全部代码,执行完毕后,接着执行finally{...}中的全部代码。也就是说,无论任何情况,都会执行finally{...}中的代码在这个语法中,try...catch...必须成对出现,finally...可以不出现 阅读全文
posted @ 2013-06-04 08:39 昊仔 阅读(141) 评论(0) 推荐(0) 编辑

2013年6月3日

摘要: 我知道的两种方法,其实都一样!1、public partial class repeater获取控件 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName.Equals("get")) { Button button = Repeater1.Controls[Repeater 阅读全文
posted @ 2013-06-03 21:05 昊仔 阅读(396) 评论(0) 推荐(0) 编辑

摘要: for (int i = Repeater2.Items.Count - 1; i > 0; i--){HtmlTableCell oCell_previous = Repeater2.Items[i - 1].FindControl("f_Type") as HtmlTableCell;HtmlTableCell oCell = Repeater2.Items[i].FindControl("f_Type") as HtmlTableCell;oCell.RowSpan = (oCell.RowSpan == -1) ? 1 : oCell.Ro 阅读全文
posted @ 2013-06-03 20:52 昊仔 阅读(126) 评论(0) 推荐(0) 编辑

上一页 1 ··· 17 18 19 20 21