C# 在Detailsview中查找控件
我想在details视图中找到一个控件。我不熟悉.netC# 在Detailsview中查找控件,c#,asp.net,detailsview,C#,Asp.net,Detailsview,我想在details视图中找到一个控件。我不熟悉.net 我怎样才能做到这一点呢?您可以使用FindControl方法,比如 TextBox TextBox1 = (TextBox)yourDetailsViewID.FindControl("TextBox1"); 您可以使用FindControl方法进行此操作,如 TextBox TextBox1 = (TextBox)yourDetailsViewID.FindControl("TextBox1"); 你需要注意你的详细视图模式和模板你
我怎样才能做到这一点呢?您可以使用FindControl方法,比如
TextBox TextBox1 = (TextBox)yourDetailsViewID.FindControl("TextBox1");
您可以使用FindControl方法进行此操作,如
TextBox TextBox1 = (TextBox)yourDetailsViewID.FindControl("TextBox1");
你需要注意你的详细视图模式和模板你需要注意你的详细视图模式和模板