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 8430583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:37:46+00:00 2026-06-10T05:37:46+00:00

I have multiple master pages in my application. I made a custom type and

  • 0

I have multiple master pages in my application. I made a custom type and inharit all master pages from it:

 public class MyMaster : System.Web.UI.MasterPage
{
    private int myno;

    public int MyNo
    {
        get { return 50; }
        set { myno = value; }
    }

}

Basically myno is common in all master pages and master pages will be changing in content pages. To add this property I added in my content page:

<%@ MasterType TypeName=MyMaster %>

Running on page I got subject error. Kindly guide me.

Thank

  • 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-06-10T05:37:48+00:00Added an answer on June 10, 2026 at 5:37 am

    If you’re working in a web site, you should typically put a derived MasterPage class in the application’s App_Code folder. When VS compiles your site, classes in the AppCode folder are compiled into the site’s namespace and available to the code-behind pages of the application.

    If you’re using a web application, you should be able to put the class file in the root of the site and reference it directly from the code-behind of any other page in the project, assuming all namespace references are correct.

    Also make sure that your the Build Action for your class file is set to Compile. You can check this in the properties window by selecting the class file in solution explorer.

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

Sidebar

Related Questions

I have multiple master pages in my asp.net mvc web application... Each of the
the problem i have is that i have multiple nested master pages: level 1
I have an an MVC 2 web application that uses Master pages. In the
I have an asp.net website that has a master page and multiple normal pages.
Is it a good design to have multiple masterpages in an application. I am
I have multiple input text fields grouped in divs: <div class=container0> <input class=containerItem0 name=containerItem[0][0]
I have multiple domains on my server. I want to redirect all of them
I have multiple pages that have this pattern: <iframe frameborder =0 src=[someURL] width=100% height=900>
I have a master-detail page, in which I use GridView to display multiple rows
Let's say I have multiple web pages, each containing an iframe and a link.

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.