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

  • Home
  • SEARCH
  • 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 6543581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:21:51+00:00 2026-05-25T11:21:51+00:00

The base class WebPart has a property defined like this: [WebBrowsable(true)] public virtual string

  • 0

The base class WebPart has a property defined like this:

 [WebBrowsable(true)]
 public virtual string CatalogIconImageUrl { get; set; }

Can I have a child class which will just override the attribute as shown below? I have tried but it doesn’t work.

 [WebBrowsable(false)]
    public override string CatalogIconImageUrl
    {
        get
        {
            return base.CatalogIconImageUrl;
        }
        set
        {
            base.CatalogIconImageUrl = value;
        }
    }

The base class is a .NET framework class, documented here:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpart.catalogiconimageurl.aspx

  • 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-25T11:21:51+00:00Added an answer on May 25, 2026 at 11:21 am

    i am not a 100% sure but should the code be more like

    internal string _catalogIconImageUrl;
    [WebBrowsable(false)]
    public override string CatalogIconImageUrl
    {
        get
        {
            return _catalogIconImageUrl;
        }
        set
        {
            _catalogIconImageUrl = value;
        }
    }
    

    this is so the variable is attached to the child object and the variable will still be available when the CatalogIconImageUrl property is called by the parent class/type.

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

Sidebar

Related Questions

I have a base class looking like this: public class BaseController : Controller {
In base class constructors I always see a parameterless constructor, like so: public abstract
Imagine a base class with many constructors and a virtual method public class Foo
My base class: //Element.h class Element { public: Element(); virtual ~Element(){}; // not sure
class Base { public: virtual void foo() {} }; class Derived: public Base {
I have a base class that I want to look like this: class B
My base class has this function LRESULT CBaseClass::OnTestFunction(WPARAM id, LPARAM=0) { ... } When
Take this base class: public abstract class XMPPSubservice { protected XMPPService mTheService; protected XMPPSubservice(Context
My base class has properties that are used by a subclass. where should Release
I have a base class with an optional virtual function class Base { virtual

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.