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. Advertisements

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. =?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,714
    S. Justin Gengo
    Sep 12, 2006
  2. Replies:
    0
    Views:
    777
  3. Nick Gilbert
    Replies:
    5
    Views:
    1,184
  4. Andy B
    Replies:
    0
    Views:
    592
    Andy B
    Apr 19, 2008
  5. Popezilla
    Replies:
    2
    Views:
    613
    Cowboy \(Gregory A Beamer\)
    Jan 28, 2009
  6. Wybo Dekker
    Replies:
    1
    Views:
    619
    Yukihiro Matsumoto
    Nov 15, 2005
  7. vdvorkin
    Replies:
    0
    Views:
    605
    vdvorkin
    Feb 10, 2011
  8. vdvorkin
    Replies:
    3
    Views:
    1,077
    vdvorkin
    Feb 14, 2011
Loading...