Solved

make text invisiable

Posted on 2011-03-01
5
257 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 250 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 250 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
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.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

823 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