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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:38:14+00:00 2026-06-09T05:38:14+00:00

To comply with the cookies law, I have created a user control that gets

  • 0

To comply with the cookies law, I have created a user control that gets added to various pages in asp.net . The user control basically is the cookie message that appears in a div. The problem is that google and other search engines are indexing the user control and now the cookie message appears on search results. I attempted to stop this by applying meta data in the user control itself.

<meta name="robots" content="noindex"/>

However this has stopped google indexing most of the site where all I wanted was to stop the user control from being indexed. Is this possible?

  • 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-09T05:38:16+00:00Added an answer on June 9, 2026 at 5:38 am

    There isn’t a way to stop a user control getting indexed since it forms part of a page. You are right, having the meta tag to stop indexing will have a detrimental effect on how your site is indexed.

    Why not take a different approach such as having a page on your site detailing the cookie policy with a link on a sub navigation or showing a popup via JavaScript, e.g. http://www.cookieconsent.com/?

    If you went the JavaScript root, you could dynamically pull in your cookie policy text using jQuery AJAX to populate the HTML you would like to show the message on page load. Since the HTML will be populated via AJAX, Google won’t index this content.

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

Sidebar

Related Questions

I have a project that generates HTML pages using a Velocity template and Java.
in Python, I have created a text generator that acts on certain parameters but
If I have .Net Form with a component/object such as a textbox that I
I have an eclipse project where the source output must comply with version 1.3
My group has a source analysis tool that enforces certain styles that we have
I noticed that .NET has some funky/unintuitive behavior when it comes to decimals and
We found that your app does not comply with the Apple iOS Human Interface
I am trying to learn MVP It is using web forms in ASP.NET. I
So far I've seen several custom implementations of ASP.NET Role Providers, and all of
I would like to know what I have to do to comply to the

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.