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

  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. 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. titof
    Replies:
    0
    Views:
    711
    titof
    Jul 24, 2003
  2. timmso
    Replies:
    1
    Views:
    752
    Alex Papadimoulis
    Dec 12, 2003
  3. Ravi Ambros Wallau
    Replies:
    0
    Views:
    4,240
    Ravi Ambros Wallau
    Jun 1, 2005
  4. =?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:
    628
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jul 12, 2006
  5. =?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:
    735
    GroupReader
    Oct 9, 2006
  6. Luqman
    Replies:
    2
    Views:
    813
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Apr 11, 2007
  7. Paul
    Replies:
    6
    Views:
    3,425
    A6034447
    Nov 26, 2009
  8. David Laub

    Close a WebForm? SetFocus in a WebForm?

    David Laub, Feb 18, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    502
    Alvin Bruney [MVP]
    Feb 21, 2004
Loading...