摘要:
我知道的两种方法,其实都一样!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 阅读全文
摘要:
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 阅读全文