make text invisiable

Posted on 2011-03-01
Medium Priority
Last Modified: 2012-05-11
Hello experts I keep having text populate the first 200 lines of my webpage. I keep deleting it but when I build it it reapears. I found it in my other section of my page and replaced the text with a lable control, but that did not fix the text populating the first part. I have put the text into a div and want to make sure it never is seen. How do I make a div invisiable on C# asp.net using visual studio.

This is rather urgent as this bug showed up last night at 3am and the site is LIVE.

Question by:HawaiiDragon
  • 3
LVL 18

Accepted Solution

ChetOS82 earned 1000 total points
ID: 35008385
<div style="display:none;">your text</div>

Expert Comment

ID: 35010836
Depends on what exactly you are after.

display:none; will remove the element completely from the flow of text.

visibility: hidden; will keep the space it occupies but will not show what is in the element.

Assisted Solution

CCSOFlag earned 1000 total points
ID: 35010856
also in C# you can make it invisible with this code:

<element id>.visible = false;

Author Comment

ID: 35070500
VS 2010 would not work with any of the solutions provided, what I had to do was open it in notepade and then delete the text.... found VS2010's first major bug!!!

Expert Comment

ID: 35070614
I'm curious.  What is this text that it was displaying?

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question