Hi All,
I have the names of Some server controls in string variables. It can be textbox or linkbutton or button or anything.
I want to hide these controls depending on some conditions.
How can i get access to these controls. I am using master page. But these controls are in content page.
I tried, this.page.Findcontrol(ctrName) , but its returning null, though its very much there in the page. I can access this controls using this.btnSave and all, but I cant use this.ctrName, being ctrName a string.
Also is there any way to cast anytype of Control to a common contol?
What if i am having some controls in User controls, what If I am having some custom controls. how will i access, controls inside that in present page.
Thanks for tyhe help