在 Repeater中, 如何取第一行中textbox控件中值呢

解决方案 »

  1.   

    protected void Repeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
    if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==ListItemType.AlternatingItem)
    {
     Textbox Textbox= (Textbox )e.Item.FindControl("Textbox");
     string str=Textbox.Text;
    }
    }
      

  2.   

    textbox= item.FindControl("textbox1") as textbox;
      

  3.   

    Textbox Textbox1 = (Textbox )e.Item.FindControl("Textbox1 ");
      

  4.   

    Repeater1的绑定事件中ItemDataBound 
    e.Item.FindControl("Textbox1 ");Repeater1.Item[0].FindControl()
      

  5.   

    protected void Repeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
    if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==ListItemType.AlternatingItem)
    {
     Textbox Textbox= (Textbox )e.Item.FindControl("Textbox");
     string str=Textbox.Text;
    }
    }
      

  6.   

    给你个js的:   var beginS = id[i].parentNode.parentNode.childNodes[4].firstChild.nodeValue;   id[i]为repeater的一个控件 找到控件 在找行 在找列 找到相应的值!