Inherit from Wizard control

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Inherit from Wizard control

    Hi,

    I want to inherit from the Wizard control in ASP.Net 2.0, to add some
    properties, events and modify/replace the default template for navigation.

    I've started with a very simple class:
    public class SequencedWizard:Wizard
    {
    public SequencedWizard()
    {
    //
    // TODO: Add constructor logic here
    //
    }
    protected override void OnInit(EventArgs e)
    {
    base.OnInit(e);
    // modify default templates here
    }
    }

    When I use this control in an aspx page using
    <%@ Register Assembly="WebControlsLib" Namespace="WebControlsLib"
    TagPrefix="cc1" %>

    and

    <cc1:SequencedWizard ID="SequencedWizard1"
    runat="server"></cc1:SequencedWizard>

    I get the message "Unknown server tag 'cc1:SequencedWizard'

    How should I trouble shoot this?
    I'm not expecting to write any Designer controls - hoping I get the Wizard
    designer controls "for free". Is that right?

    Are there any articles describing how to extend the Wizard control like
    this?

    Thanks
    Martin




    Martin Guest

  2. Similar Questions and Discussions

    1. How to inherit a web user control
      Hi, I have create a web user control, which named base.ascx. I put three text box and a datagrid in this user control. How do I inherit this user...
    2. Setting values for custom control inherit from DataGrid
      Hi, I am doing a simple custom datagrid inheriting from DataGrid class. I would like to set some of the values to something else so that when...
    3. Inherit from a Web User Control
      Hi, Is it possible to inherit from a web user control (*.ascx) created in a separate class-assembly to a local specialized control that can be...
    4. Wizard Control for ASP.NET 1.1
      No unfortunately that is impossible! I have found a fairly decent example of how you would go about creating a wizard control using ASP.NET 1.1...
    5. Custom Control - inherit child properties?
      Hey All, I'm building a custom control that contains a System.Web.UI.WebControls.Calendar object and am wondering about how to make the calendar's...
  3. #2

    Default Re: Inherit from Wizard control

    Durrr

    Mix up over namespaces


    "Martin" <x@y.z> wrote in message
    news:uCwBoW8iGHA.4344@TK2MSFTNGP05.phx.gbl...
    > Hi,
    >
    > I want to inherit from the Wizard control in ASP.Net 2.0, to add some
    > properties, events and modify/replace the default template for navigation.
    >
    > I've started with a very simple class:
    > public class SequencedWizard:Wizard
    > {
    > public SequencedWizard()
    > {
    > //
    > // TODO: Add constructor logic here
    > //
    > }
    > protected override void OnInit(EventArgs e)
    > {
    > base.OnInit(e);
    > // modify default templates here
    > }
    > }
    >
    > When I use this control in an aspx page using
    > <%@ Register Assembly="WebControlsLib" Namespace="WebControlsLib"
    > TagPrefix="cc1" %>
    >
    > and
    >
    > <cc1:SequencedWizard ID="SequencedWizard1"
    > runat="server"></cc1:SequencedWizard>
    >
    > I get the message "Unknown server tag 'cc1:SequencedWizard'
    >
    > How should I trouble shoot this?
    > I'm not expecting to write any Designer controls - hoping I get the Wizard
    > designer controls "for free". Is that right?
    >
    > Are there any articles describing how to extend the Wizard control like
    > this?
    >
    > Thanks
    > Martin
    >
    >
    >
    >

    Martin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139