.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 20th, 2012, 05:32 AM
Mowinckel Mowinckel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 1 Mowinckel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 57 m 59 sec
Reputation Power: 0
Iframes

Hello.
I am having a problem with iframes. Just starting to learn this feat, so I apologize for any apparent code-idiocy.

Here's a screenshot:
i.imgur.com/9e2H7.jpg (cannot post links, yet)

And the code I deem important for the problem:
<asp:ContentPlaceHolder ID="MainContent" runat="server"/>
<!--- Menu --->
<iframe id="menu" name="menuWindow" src="menu.aspx" height="224px" width="113px" frameborder="0" scrolling="no" ></iframe>
<iframe id="main" name="mainContent" src="default.aspx" height="640px" width="672px" frameborder="0" scrolling="no" ></iframe>

The menu.aspx:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<a id= "menuNews" href="default.aspx" target="mainContent"></a>
<a id= "menuInfo" href="info.aspx" target="mainContent"></a>
<a id= "menuContact" href="contact.aspx" target="mainContent"></a>
<a id= "menuLinks" href="links.aspx" target="mainContent"></a>
</asp:Content>

The relevant CSS:
#main
{
background-image:url("../graphic/content.png");
height:640px;
width:672px;
position:absolute;
left:25%;
top:30%;
}

#menu
{
position:absolute;
top:30%;
left:15%;
}


My question is, why does it keep copying itself and why isn't the default.aspx not showing.
Furthermore, when I click a link they are showed in the menu iframe and not the target I defined.

Thanks in advance,
Mowinckel

Reply With Quote
  #2  
Old May 1st, 2012, 12:32 AM
MichaelHanson MichaelHanson is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 2 MichaelHanson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 40 sec
Reputation Power: 0
It should work as you described. But instead of <asp:Content use <asp:PlaceHolder

You need index.aspx with following code
<!--- Menu --->
<iframe id="menu" name="menuWindow" src="menu.aspx" height="224px" width="113px" frameborder="0" scrolling="no" ></iframe>
<iframe id="main" name="mainContent" src="default.aspx" height="640px" width="672px" frameborder="0" scrolling="no" ></iframe>

menu.aspx with your menu

and all the content pages

Michael

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Iframes

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap