I have a web form that I took over from a developer and he put everything inside a Wizard control. I now need to find a button in the wizard control to hide it.
I've done
button btn = wizard1.wizardstep[1].findcontrol("button);
btn.Visible = false;
and i get an error, I've tried several other combinations and none of them work, So I can I hide a button that is in a 'wizard'?
Alex Meleta - 31 Aug 2007 11:09 GMT
Hi Mike,
What the error have you got and where? Is control dynamicly builded?
e.g. Wizard.FindControl("<button>") should work.
Regards, Alex
[TechBlog] http://devkids.blogspot.com
M> I have a web form that I took over from a developer and he put
M> everything inside a Wizard control. I now need to find a button in
M> the wizard control to hide it.
M>
M> I've done
M>
M> button btn = wizard1.wizardstep[1].findcontrol("button); btn.Visible
M> = false;
M>
M> and i get an error, I've tried several other combinations and none of
M> them work, So I can I hide a button that is in a 'wizard'?
M>