Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Hiding Controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JPabich - 18 Jun 2007 19:38 GMT
I am new at the html side, but I what I have is a serious of DataViews
on my screen.  When you click a link, it needs to show the appropriate
dataView and hide all the others.  How do I hide these and make the
appropriate one display at the top of the screen rather than where it
actually is positioned on the design view?
Jon  Paal [MSMD] - 18 Jun 2007 20:08 GMT
visibility is applied as true or false

http://msconline.maconstate.edu/tutorials/ASPNET20/ASPNET04/aspnet04-02.aspx

>I am new at the html side, but I what I have is a serious of DataViews
> on my screen.  When you click a link, it needs to show the appropriate
> dataView and hide all the others.  How do I hide these and make the
> appropriate one display at the top of the screen rather than where it
> actually is positioned on the design view?
Michael Nemtsev - 18 Jun 2007 20:12 GMT
Hello jpabich,

Server side solution: control.Visible = false
Client side solution document.getElementById().   visibility: hidden  / display:
none

---
WBR,  Michael  Nemtsev [.NET/C# MVP].  
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

j> I am new at the html side, but I what I have is a serious of
j> DataViews on my screen.  When you click a link, it needs to show the
j> appropriate dataView and hide all the others.  How do I hide these
j> and make the appropriate one display at the top of the screen rather
j> than where it actually is positioned on the design view?
j>
JPabich - 18 Jun 2007 20:58 GMT
I understand how to use the visible parameter of the control, what I
am looking for is if I have a grid and then below that another grid,
if I hide the top grid, how to display the bottom grid so there isn't
a large void at the top of the screen.

> Hello jpabich,
>
[quoted text clipped - 16 lines]
> j> than where it actually is positioned on the design view?
> j>
Michael Nemtsev - 18 Jun 2007 21:07 GMT
Hello jpabich,

use document.getElementById().display:none
which won't reserve the emply space

---
WBR,  Michael  Nemtsev [.NET/C# MVP].  
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

j> I understand how to use the visible parameter of the control, what I
j> am looking for is if I have a grid and then below that another grid,
j> if I hide the top grid, how to display the bottom grid so there isn't
j> a large void at the top of the screen.
j>
j> On Jun 18, 2:12 pm, Michael Nemtsev <nemt...@msn.com> wrote:
j>
>> Hello jpabich,
>>
[quoted text clipped - 18 lines]
>> j> than where it actually is positioned on the design view?
>> j>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.