Results 1 to 4 of 4

Thread: Inheriting a Web-Form with its controls

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    110

    Inheriting a Web-Form with its controls

    There are few web-pages in my project which have exactly the same header and footer and button controls.
    How can i create a common Parent Form (which actually wont be browsed ever) which can be inherited in all the child forms so that I donot have to design the header, footer, buttons in each of them and do not have to code their everytime in their code-behind.
    Anis Bombaywala

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    110

    What If i donot want to use Usercontrol

    I want to Inherit exactly
    Anis Bombaywala

  4. #4
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    Tell me, how do you plan to inherit the .aspx file? or are you going to try to Response to write the html code that uses the controls and events in the inherited class? Why wouldn't you want to use the user control? Granted they don't seem to nest but it is a great thing. Say you need a combobox/listbox on 30 pages that binds to user data would you rather coded it 30 time or once?

    I think a user control would be your best answer here.
    Magiaus

    If I helped give me some points.

Posting Permissions

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



Click Here to Expand Forum to Full Width