Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

make text invisiable

Posted on 2011-03-01
5
Medium Priority
?
265 Views
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.

HELP!!!!
0
Comment
Question by:HawaiiDragon
  • 3
5 Comments
 
LVL 18

Accepted Solution

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

Expert Comment

by:CCSOFlag
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.
0
 
LVL 9

Assisted Solution

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

<element id>.visible = false;
0
 

Author Comment

by:HawaiiDragon
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!!!
0
 
LVL 9

Expert Comment

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses

916 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