Creating a WebForm that can be extended

Discussion in 'ASP .Net Web Controls' started by pantichd, Dec 15, 2004.

  1. pantichd

    pantichd Guest

    Hello,

    I want to create a "base" webform class that will contain a few web
    controls. For the sake of this thread let's say I want it to have a textbox
    and a label. In the code-behind for this class I want to have some methods
    that should be available to all classes that extend it.

    Then I want to be able to create "child" classes that extend this class and
    have the textbox and label show up when I'm looking at the Designer view on
    the "child" class.

    What's the best way to do this?

    Thanks in advance for any help

    David
     
    pantichd, Dec 15, 2004
    #1
    1. Advertising

  2. "pantichd" <> wrote in message
    news:...
    > Hello,
    >
    > I want to create a "base" webform class that will contain a few web
    > controls. For the sake of this thread let's say I want it to have a
    > textbox
    > and a label. In the code-behind for this class I want to have some methods
    > that should be available to all classes that extend it.
    >
    > Then I want to be able to create "child" classes that extend this class
    > and
    > have the textbox and label show up when I'm looking at the Designer view
    > on
    > the "child" class.
    >
    > What's the best way to do this?



    Are you aware that there's no designer support for this? You may not want to
    do this, but rather wait until ASP.NET 2.0 and use master pages.

    John Saunders
     
    John Saunders, Dec 15, 2004
    #2
    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. titof
    Replies:
    0
    Views:
    573
    titof
    Jul 24, 2003
  2. timmso
    Replies:
    1
    Views:
    573
    Alex Papadimoulis
    Dec 12, 2003
  3. =?Utf-8?B?bXN1aw==?=

    Using one webform to set a value on another webform

    =?Utf-8?B?bXN1aw==?=, Jul 12, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    525
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jul 12, 2006
  4. =?Utf-8?B?Vk1J?=

    Moving value from popup Webform to main Webform?

    =?Utf-8?B?Vk1J?=, Oct 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    623
    GroupReader
    Oct 9, 2006
  5. Luqman
    Replies:
    2
    Views:
    703
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Apr 11, 2007
Loading...

Share This Page