出错提示:错误 1 “System.Web.UI.WebControls.LinkButton”并不包含“delete”的定义 D:\学生信息管理系
protectedvoidRepeater1_ItemCommand(objectsource,RepeaterCommandEventArgse){System.Web...
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
System.Web.UI.WebControls.LinkButton cancel = (LinkButton)e.Item.FindControl("LinkButton3");
System.Web.UI.WebControls.LinkButton edit = (LinkButton)e.Item.FindControl("LinkButton1");
System.Web.UI.WebControls.LinkButton.delete = (LinkButton)e.Item.FindControl("LinkButton4");
System.Web.UI.WebControls.Label LabDepid = (Label)e.Item.FindControl("LabDepid");
System.Web.UI.WebControls.Label LabDepname = (Label)e.Item.FindControl("LabDepname");
System.Web.UI.WebControls.Label LabDephead = (Label)e.Item.FindControl("LabDephead");
System.Web.UI.WebControls.TextBox TetDepid = (TextBox)e.Item.FindControl("TetDepid");
System.Web.UI.WebControls.TextBox TetDepname = (TextBox)e.Item.FindControl("TxtDepname");
System.Web.UI.WebControls.TextBox TetDephead = (TextBox)e.Item.FindControl("TxtDephead"); 展开
{
System.Web.UI.WebControls.LinkButton cancel = (LinkButton)e.Item.FindControl("LinkButton3");
System.Web.UI.WebControls.LinkButton edit = (LinkButton)e.Item.FindControl("LinkButton1");
System.Web.UI.WebControls.LinkButton.delete = (LinkButton)e.Item.FindControl("LinkButton4");
System.Web.UI.WebControls.Label LabDepid = (Label)e.Item.FindControl("LabDepid");
System.Web.UI.WebControls.Label LabDepname = (Label)e.Item.FindControl("LabDepname");
System.Web.UI.WebControls.Label LabDephead = (Label)e.Item.FindControl("LabDephead");
System.Web.UI.WebControls.TextBox TetDepid = (TextBox)e.Item.FindControl("TetDepid");
System.Web.UI.WebControls.TextBox TetDepname = (TextBox)e.Item.FindControl("TxtDepname");
System.Web.UI.WebControls.TextBox TetDephead = (TextBox)e.Item.FindControl("TxtDephead"); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询