|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
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 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 > > > > >
ASP.NET 2.0 and ObjectDataBinding
C#/ASP.NET 2.0 - Convert HTML Table to DataGrid/Source How to set property "ReadOnly" on all TextBoxes on a WebForm Dynamic Textboxes. Composite Server Control and DefaultValue Attribute Type.GetType() WebPartManager is Undefined Parsing HTML in Controls Row count for query through SqlDataSource and GridView Datagrid viewstate |
|||||||||||||||||||||||