make text invisiable

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.

HELP!!!!
HawaiiDragonAsked:
Who is Participating?
 
ChetOS82Connect With a Mentor Commented:
<div style="display:none;">your text</div>
0
 
CCSOFlagCommented:
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.
0
 
CCSOFlagConnect With a Mentor Commented:
also in C# you can make it invisible with this code:

<element id>.visible = false;
0
 
HawaiiDragonAuthor Commented:
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!!!
0
 
CCSOFlagCommented:
I'm curious.  What is this text that it was displaying?
0
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.

All Courses

From novice to tech pro — start learning today.