我必须根据条件禁用动态创建的用户控件上的链接。
如何找到控件的类型?我正在使用占位符,因此试图找到如下所示的控件
this.placeholder1.FindControl("usercontrol1").FindControl("div1");
如何在 UserControl1 类型的 usercontrol1 上找到链接?我不能使用 .ascx 文件的名称 UserControl1。
我必须根据条件禁用动态创建的用户控件上的链接。
如何找到控件的类型?我正在使用占位符,因此试图找到如下所示的控件
this.placeholder1.FindControl("usercontrol1").FindControl("div1");
如何在 UserControl1 类型的 usercontrol1 上找到链接?我不能使用 .ascx 文件的名称 UserControl1。