find button in asp.net wizard

Discussion in 'ASP .Net' started by Mike, Sep 27, 2007.

  1. Mike

    Mike Guest

    I have a web page that is using the asp.net wizard control. On this wizard, there is a next, cancel buttons, how can I find these buttons in this wizard.

    If I do something like this
    TemplatedWizardStep tws = (TemplatedWizardStep)Wizard1.WizardSteps[5];
    Button btn = (Button)tws.CustomNavigationTemplateContainer.FindControl("Button6");
    btn.visible = false;

    - button6 is the name of the button I want to hide.

    I keep getting:
    Object referenec not set to an instance of an object,



    though my button is on the screen and I can see it, why can't I hide it when I click on another button?
    Mike, Sep 27, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Philippe C. Martin
    Replies:
    3
    Views:
    306
    Philippe C. Martin
    Aug 13, 2005
  2. =?Utf-8?B?TU9VU1RBRkEgQVJBRkE=?=

    Hide Next Button on Wizard Control asp.net 2.0 ?

    =?Utf-8?B?TU9VU1RBRkEgQVJBRkE=?=, Sep 12, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    7,468
    S. Justin Gengo
    Sep 12, 2006
  3. Replies:
    0
    Views:
    596
  4. Nick Gilbert
    Replies:
    5
    Views:
    891
  5. Andy B
    Replies:
    0
    Views:
    432
    Andy B
    Apr 19, 2008
Loading...

Share This Page