【问题标题】:Find a control in Detailsview在详细信息视图中查找控件
【发布时间】:2011-03-29 13:36:04
【问题描述】:

我想在详细信息视图中找到一个控件。我是 .net 的新手。

我该怎么做?

【问题讨论】:

    标签: c# asp.net detailsview


    【解决方案1】:

    您可以为此使用 FindControl 方法,例如...

    TextBox TextBox1 = (TextBox)yourDetailsViewID.FindControl("TextBox1");
    

    【讨论】:

    • 你需要注意你的DetailsView模式和模板
    猜你喜欢
    • 2010-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-09
    相关资源
    最近更新 更多