473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Invisible to the screen, but visible in the source.

rrocket
116 100+
I am trying to make something invisible on page load
Expand|Select|Wrap|Line Numbers
  1. lblsomething.visible = false;
, but I still need it to post to the browser (at least the source anyway) so that I can make it reappear with a javascript function.

In a nutshell, I have two radio buttons (yes and no) and a text box. It defaults to no and an invisible text box. When I click yes I want the box to become visible. I REALLY do not want to do this with a postback. Anyone know a trick on how to get this to work?
Jan 9 '08 #1
1 992
Plater
7,872 Expert 4TB
Use the style properties from withen javascript:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById(id).style.display = 'none';
  2. //then
  3. document.getElementById(id).style.display = 'inline';
  4. //or
  5. document.getElementById(id).style.display = 'block';
  6.  
Jan 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Martin | last post by:
Hi, I have a page where according to the mode of use, different controls are visible. I had assumed that Page.DataBind() would only bind visible controls, but apparently not. Do I have to...
4
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
3
by: tshad | last post by:
I am using the footer of my Datalist to add a row into my database. Is there a way to make the footer invisible when not adding a row, making it visible when a button is pushed and making it...
3
by: J Williams | last post by:
Hi, I want to use the axWebBrowser control and MSHTML DOM in a Windows form application, but not have the control visible. However I've found that if I set the Visible property to False, the...
2
by: solar | last post by:
With my command DoCmd.ShowToolbar "Toolbar1", acToolbarYes i make my toolbar Toolbar1 visible.I want at the same time make all other toolbars on the screen invisible,regardless how they are...
3
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
69
by: kabradley | last post by:
Alrighty Guys and Gals, I have another question that I hope you all can help me with. I have a report that uses a cross-tab query as its record source. This cross-tab query is getting all of its...
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
5
by: Andy B | last post by:
I have 2 TextBoxes and an Add button on a page. When the user fills in the TextBoxes, the values are added to a dataset table. When the page gets done reloading, the TextBoxes are turned into...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.