62,067
社区成员
发帖
与我相关
我的任务
分享
//ItemCreated事件
protected void rptMeuShow_ItemCreated(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
//判断Button是否存在
if (e.Item.FindControl("lbtnMoue") != null)
{
//如果存在,把对象转换为Button。
LinkButton ibtnShow = (LinkButton)e.Item.FindControl("lbtnMoue");
//产生Click事件
ibtnShow.Click += new EventHandler(ibtnShow_Click);
}
}
}
//绑定各类型线路
private void ibtnShow_Click(object sender, EventArgs e)
{
LinkButton lbtnTypeLine = (LinkButton)sender;
anpShow.RecordCount = L_Line.ShowLineCount("", lbtnTypeLine.Text,shopID);
BindLine(lbtnTypeLine.Text, "");
}
private void show()
{
//这个地方我想获得上面方法中lbtnTypeLine 按纽的文本值;请问这个要怎么做啊
}