Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有在网格视图模板页面中动态创建的按钮和标签框,这是在 C# 中完成的。在页面加载时,只有按钮可见。单击按钮时,我希望相应的标签将其可见性更改为 true。
我无法在 Gridview OnRowCommand 中检索控件。我已经声明了以下内容:
lblAvailone = (Label)row.FindControl("lblFirstAvail");
您能否告诉我如何在行命令中获取该标签值?