1.首先需要的不是name,而是id
2.若repeater 的id为 myrepeater
textbox 的id为 title
foreach (ReapterItem ri in myrepeater.Items)
{
ItemComment[k]=((TextBox)ri.Cells[1].FindControl("text1")).Text;
}
2.若repeater 的id为 myrepeater
textbox 的id为 title
foreach (ReapterItem ri in myrepeater.Items)
{
ItemComment[k]=((TextBox)ri.Cells[1].FindControl("text1")).Text;
}
string aaaa=((TextBox)myrepeater.FindControl("text1")).Text;
再用
try{}
catch(Exception e)
{
Response.Write(e);
}
来显示错误阿
同样谢谢各位