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?