Control oCtrl=e.Item.Cells(7).FindControl("控件ID")
if(oCtrl!=null)
{
if(oCtrl is TextBox) //去TextBox的值
{
string sText=((TextBox)oCtrl).Text
}
}
if(oCtrl!=null)
{
if(oCtrl is TextBox) //去TextBox的值
{
string sText=((TextBox)oCtrl).Text
}
}
用e.Item.Cells(7).FindControl("控件ID")没用
因此下面这一代码没有作用
e.Item.Attributes.Add("ondblclick", "__doPostBack('" & CType(e.Item.Cells(4).Controls(0), LinkButton).ClientID.Replace("__", "$_") & "','')")
请高手指点