Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 17th, 2006, 05:56 AM
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default hide/show <div>

I have page default.asp and in this page is <IFRAME> which shows default2.asp

And on this default2.asp is <div> tag which I only want to show when default2.asp is loaded and not within <IFRAME> in default.asp

I want to show this <Div> only when default2.asp is loaded stand-alone
not in frame in default.asp

Any ideas how can this be done

  #2 (permalink)  
Old November 18th, 2006, 01:25 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
 First set the display property of the div to 'none'. Then Based on the proper conditions set the display property to 'block' or any other as u wish.

Try this

Thanks

Regards
Rohith
  #3 (permalink)  
Old November 20th, 2006, 04:46 AM
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thnx will try it

  #4 (permalink)  
Old November 21st, 2006, 09:53 AM
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for this it is actually <H> tag how can I set this visibility to none



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript with <div> aware Javascript How-To 3 August 25th, 2005 05:57 AM
hide the <div> crmpicco Javascript How-To 1 August 22nd, 2005 09:43 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
scrolling <DIV> anshul Javascript How-To 12 August 4th, 2004 09:51 AM
<A><DIV><TABLE></DIV></A> anshul HTML Code Clinic 2 July 17th, 2004 02:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.