现在的位置: 首页 > 综合 > 正文

获取repeater中控件的值

2013年10月23日 ⁄ 综合 ⁄ 共 196字 ⁄ 字号 评论关闭

protected void rpt_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if(e.CommandName=="Chice")
{
Label lb = (Label)repeater1.Items[e.Item.ItemIndex].Controls[0].FindControl("lblid")
string str = lb.Text;
}

抱歉!评论已关闭.