Home All Groups Group Topic Archive Search About
Author
22 Feb 2006 8:15 AM
Geert
Hello,

I like to change the text of the navigation buttons of an asp wizard control
dynamically.
It is possible to change the text with the wizard.stepNextButtonText
property. But I am using a stepnavigation template wherein I create my own
button.
Somehow i can't find my button so I can't change the text property?
Is there someone who can give me a solution or some pointers?

thank you very much

kind regards,
Geert Bens

Author
11 Mar 2006 4:25 PM
Boris Rogge
Hi Geert,

you might wanna try the following code to retrieve a reference to your
control:

Button button =
(Button)WizardControlInstance.StepName.ContentTemplateContainer.FindControl("ControlName");

with

WizardControlInstance: the instance variable for the Wizard control
StepName: The name of the step the control is on
ControlName: The name of the control you are looking for

Hope this helps,

boris

Show quoteHide quote
"Geert" wrote:

> Hello,
>
> I like to change the text of the navigation buttons of an asp wizard control
> dynamically.
> It is possible to change the text with the wizard.stepNextButtonText
> property. But I am using a stepnavigation template wherein I create my own
> button.
> Somehow i can't find my button so I can't change the text property?
> Is there someone who can give me a solution or some pointers?
>
> thank you very much
>
> kind regards,
> Geert Bens
>
>
>
>
>