I put a Literal control in the tag in the Wizard control.
In the codebehind, I can’t access that control.
Why is that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Any sort of template control (Wizard, Repeater, etc.) doesn’t expose the controls inside the template as member variables. You will need to use FindControl on the correct Step.
i.e.,
if you have other templated controls within your wizard Step, you’d need to do a “FindControl” on those as well to continue drilling down to your literal. I created a “FindControlRecursive” extension method to make this easier.