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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:52:13+00:00 2026-05-11T09:52:13+00:00

I asked a question about interfaces previously and got some excellent responses. I’m really

  • 0

I asked a question about interfaces previously and got some excellent responses. I’m really excited to start developing really flexible code.

I now have a question about overriding a virtual method.

I am currently working with the Community Server SDK. One of the controls is a ‘tag’ bread crumb. So it will list the ‘tags’ on the relevant object.

<CSBlog:TagBreadCrumb /> 

I am using tags to allow adminstrators to target specific spots for content to appear in a layout, however those tags are not relevant to the end user. For example, ‘Home_Main’ tag is used to target the main panel on the home page, but I don’t want user to see that.

Since I have the SDK for Community Server, I found the control which renders the ‘tag list’ and made modifications to it that do what I want – however my understanding is that it’s not good to modify the core for many reasons.

So what I’d like to do is create my own control, which is essentially almost 100% identical to the base control, but override one method.

Here is the method:

 public virtual string FormatTags(string[] tagList) 

Inside of there is code to format the tags, and I’d like to write my own code which does all of the same stuff, except checks a configuration file for ‘tags’ to exclude.

So my understanding is that I create my control, deriving from the base control – and I can write my own FormatTags() method – is that correct?

I only need to change one aspect of it, but does this mean I have to copy the original code for that method from the base class – and change what I need to in there? It just doesn’t feel right copyign code from one spot, but I don’t know of another way to extend the method without changing code in the base class.

Thanks for any suggestions.

  • 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. 2026-05-11T09:52:13+00:00Added an answer on May 11, 2026 at 9:52 am

    You can still run the dervied method and operate on it’s results:

    public override string FormatTags(string[] tagList) {     string result = base.FormatTags(tagList);     // do something with result     return result; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 90k
  • Answers 90k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Public Class foo Public Event TestEvent() End Class Public Class… May 11, 2026 at 6:03 pm
  • Editorial Team
    Editorial Team added an answer http://tinymce.moxiecode.com/examples/full.php Shrug, works fine for me. May 11, 2026 at 6:03 pm
  • Editorial Team
    Editorial Team added an answer You are not going to find ONE way that will… May 11, 2026 at 6:03 pm

Related Questions

I asked a question about interfaces previously and got some excellent responses. I'm really
In a previous question, I asked whether ORM libraries were suboptimal solutions and received
In a previous question, I asked about various ORM libraries. It turns out Kohana
I have a large .NET web application. The system has projects for different intentions
I'm thinking of choosing Adobe AIR as the client-side implementation technology for an upcoming

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.