I have to disable a link on dynamically created user control depending on condition.
How to find type of the control?
I am using a placeholder, hence trying to find the control like below
this.placeholder1.FindControl("usercontrol1").FindControl("div1");
How to find link on usercontrol1 of type UserControl1? I can't use the name UserControl1 of the .ascx file.
You must recreate dynamic controls on each postback.
Then only you can access those control using