2017-01-05 16 views

答えて

1

がどうなるかよりも、段落HTMLタグに

<p id="p_id" runat="server"> 

を見つけることができるである

(HtmlInputControlName)e.Item.FindControl("control_id"); 

を使用してHTMLの標準コントロールを見つけることができますあなたは使用しますHtmlGenericControl

if (e.Row.RowType == DataControlRowType.DataRow) 
{ 
    HtmlGenericControl p = e.Row.FindControl("p_id") as HtmlGenericControl; 
    p.InnerText = "It works!"; 
} 
関連する問題