Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6162397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:38:46+00:00 2026-05-23T21:38:46+00:00

If I have a class abstract class DetailsForm : UserControl then AppDetailsForm : DetailsForm

  • 0

If I have a class

abstract class DetailsForm : UserControl

then

AppDetailsForm : DetailsForm
BoxDetailsForm : DetailsForm

I can take advantage of inheritance to stick logic in DetailsForm.cs that applies to elements common among the tags in AppDetailsForm.aspx and BoxDetailsForm.aspx. These tags appear in both, in exactly the same place. There is duplicated header and footer code in AppDetailsForm.aspx and BoxDetailsForm.aspx that I’d rather stick in DetailsForm.cs.

The problem is I would need to stick a reference in DetailsForm.aspx that would refer to the content of the .aspx file in a child derived directly from that class.

However, currently, it only shows the content of AppDetailsForm.aspx or BoxDetailsForm.aspx, and ignores anything in DetailsForm.cs, so it seems like the reference to the other file should go AppDetailsForm.aspx → DetailsForm.cs and BoxDetailsForm.aspx → DetailsForm.cs.

I don’t know how to do this, and I suspect I’m approaching this the wrong way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:38:48+00:00Added an answer on May 23, 2026 at 9:38 pm

    I think Master pages are built for what you are trying to do.

    Take a look at this link.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an abstract class, AbsClass that implements an interface, IClass . IClass has
For example, I have a class called Clothing that inherits from a abstract class
Suppose that we have a class class Abstract { Abstract( void ); virtual ~Abstract(
I have an abstract class in a C++ program that looks like class Interface
Ok so I know that you can't have an abstract static method, although I
Can an abstract class have a constructor? If so, how can it be used
I have an Abstract class that is like: public abstract class myClass{ public abstract
I have an abstract class, Foo, that has a non-abstract method called Bar. I
Why can an abstract class have a constructor? As we can't create an object
I have an abstract parent class which child classes that inherit from it. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.