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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:15:24+00:00 2026-05-26T05:15:24+00:00

We are using a CMS and I need to alter correct some of the

  • 0

We are using a CMS and I need to alter correct some of the HTML that is being generated by a control that is completely black-boxed. Usually I would sub-class the offending control and tweak it within that, but because of the way the control has been written I am unable to remove the offending attribute.

This leaves me the only option of performing this operation through the Render method on the master page itself. I was thinking of changing the content string before it is rendered, this would involve a bit of Regex in a bid to remove the invalid attribute being rendered.

Given that this operation will run on every page, is this the most efficient way of achieving it? Should I perhaps do a string.Contains() to check for the existance of the HTML element first? Is using Regex for this going to cause performance issues?

  • 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-26T05:15:25+00:00Added an answer on May 26, 2026 at 5:15 am

    First, does this have to run on every page? If so, that is fine, but if you are merely running on every page because it is the solution you have currently in your mind, then it might be better to go back to the business problem at hand.

    If you want an architectural decision, “fix before binding” is preferable to “fix in a rendering method”. This is regardless of master page or not. I would rather massage a “data set” to using row binding events, as the code shows clearer intent and usually performs better.

    I would also consider caching if this is the same content over and over again. If it is not, then why are you using the master page. And “it has a render event” is not a good reason.

    Hope this helps.

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

Sidebar

Related Questions

I am using FCKEditor in a CMS and need to post some javascript code
I'm using IIS7 and ASP.NET. Basically building a simple CMS and need to handle
I'm using nicEdit but it doesn't play well with our CMS. I need to
I'm using Symphony CMS which as default has a mod_rewrite that rewrites all directories.
I am using a CMS that hosts multiple websites simultaneously and I am seeking
I need to build some sort of a custom CMS for a client of
I'm pretty new to XSLT, but need to use it for a CMS using
I need to develop a small CMS using PHP, and right now I'm trying
I have some code generated by a CMS: <div class=block> <a class=link href=#>Link</a> <h4>Header
I need to migrate our website from a proprietary CMS that uses active server

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.