473,398 Members | 2,525 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,398 software developers and data experts.

iframe,frame problems!

Can i use Frameset in ASP.NET?What are other options
I have a question :-
I have an asp.net page and i'm using TreeView control as links
The links are on the left side of the page inside a iframe! I used iframe
b-cos the links are too long and they shift the page to the right.
Is there a way that if a user clicks a link on the Treeview it can target to
the table of the main window on the right (I DOUBT IF ITS POSSIBLE)
What other ways are available to divide pages in ASP.NET like in FRAMESET?
Thanks!
Nov 18 '05 #1
7 3676
2 suggestions:

1) discard the iframe for the treeview and instead use a <div>. To prevent
"shift to the right", simply apply the overflow-x:hidden style. If you want
a vertical scrollbar, add the appropriate overflow-y value.

2) "Is there a way that if a user clicks a link on the Treeview it can
target to
the table of the main window on the right" -- this is where you should use
an iframe. Position it how you like and ensure that it has a "name"
attribute (ie. name="myiframe"). Your links in your treeview should target
this name (ie. target="myiframe").

"Patrick.O.Ige" wrote:
Can i use Frameset in ASP.NET?What are other options
I have a question :-
I have an asp.net page and i'm using TreeView control as links
The links are on the left side of the page inside a iframe! I used iframe
b-cos the links are too long and they shift the page to the right.
Is there a way that if a user clicks a link on the Treeview it can target to
the table of the main window on the right (I DOUBT IF ITS POSSIBLE)
What other ways are available to divide pages in ASP.NET like in FRAMESET?
Thanks!

Nov 18 '05 #2
2 suggestions:

1) discard the iframe for the treeview and instead use a <div>. To prevent
"shift to the right", simply apply the overflow-x:hidden style. If you want
a vertical scrollbar, add the appropriate overflow-y value.

2) "Is there a way that if a user clicks a link on the Treeview it can
target to
the table of the main window on the right" -- this is where you should use
an iframe. Position it how you like and ensure that it has a "name"
attribute (ie. name="myiframe"). Your links in your treeview should target
this name (ie. target="myiframe").

"Patrick.O.Ige" wrote:
Can i use Frameset in ASP.NET?What are other options
I have a question :-
I have an asp.net page and i'm using TreeView control as links
The links are on the left side of the page inside a iframe! I used iframe
b-cos the links are too long and they shift the page to the right.
Is there a way that if a user clicks a link on the Treeview it can target to
the table of the main window on the right (I DOUBT IF ITS POSSIBLE)
What other ways are available to divide pages in ASP.NET like in FRAMESET?
Thanks!

Nov 18 '05 #3
2 suggestions:

1) discard the iframe for the treeview and instead use a <div>. To prevent
"shift to the right", simply apply the overflow-x:hidden style. If you want
a vertical scrollbar, add the appropriate overflow-y value.

2) "Is there a way that if a user clicks a link on the Treeview it can
target to
the table of the main window on the right" -- this is where you should use
an iframe. Position it how you like and ensure that it has a "name"
attribute (ie. name="myiframe"). Your links in your treeview should target
this name (ie. target="myiframe").

"Patrick.O.Ige" wrote:
Can i use Frameset in ASP.NET?What are other options
I have a question :-
I have an asp.net page and i'm using TreeView control as links
The links are on the left side of the page inside a iframe! I used iframe
b-cos the links are too long and they shift the page to the right.
Is there a way that if a user clicks a link on the Treeview it can target to
the table of the main window on the right (I DOUBT IF ITS POSSIBLE)
What other ways are available to divide pages in ASP.NET like in FRAMESET?
Thanks!

Nov 18 '05 #4
2 suggestions:

1) discard the iframe for the treeview and instead use a div. To prevent
"shift to the right", simply apply the overflow-x:hidden style. If you want
a vertical scrollbar, add the appropriate overflow-y value.

2) "Is there a way that if a user clicks a link on the Treeview it can
target to
the table of the main window on the right" -- this is where you should use
an iframe. Position it how you like and ensure that it has a "name"
attribute (ie. name="myiframe"). Your links in your treeview should target
this name (ie. target="myiframe").

"Patrick.O.Ige" wrote:
Can i use Frameset in ASP.NET?What are other options
I have a question :-
I have an asp.net page and i'm using TreeView control as links
The links are on the left side of the page inside a iframe! I used iframe
b-cos the links are too long and they shift the page to the right.
Is there a way that if a user clicks a link on the Treeview it can target to
the table of the main window on the right (I DOUBT IF ITS POSSIBLE)
What other ways are available to divide pages in ASP.NET like in FRAMESET?
Thanks!

Nov 18 '05 #5
Thx for these ideas..
So that means my main window would be the IFRAME WINDOW.
And 'm trying to avoid that but i would give it a try!!
Do u have an example of the DIV with the style?

"Matthew Lea" wrote:
2 suggestions:

1) discard the iframe for the treeview and instead use a <div>. To prevent
"shift to the right", simply apply the overflow-x:hidden style. If you want
a vertical scrollbar, add the appropriate overflow-y value.

2) "Is there a way that if a user clicks a link on the Treeview it can
target to
the table of the main window on the right" -- this is where you should use
an iframe. Position it how you like and ensure that it has a "name"
attribute (ie. name="myiframe"). Your links in your treeview should target
this name (ie. target="myiframe").

"Patrick.O.Ige" wrote:
Can i use Frameset in ASP.NET?What are other options
I have a question :-
I have an asp.net page and i'm using TreeView control as links
The links are on the left side of the page inside a iframe! I used iframe
b-cos the links are too long and they shift the page to the right.
Is there a way that if a user clicks a link on the Treeview it can target to
the table of the main window on the right (I DOUBT IF ITS POSSIBLE)
What other ways are available to divide pages in ASP.NET like in FRAMESET?
Thanks!

Nov 18 '05 #6
BTW. . .sorry for the repeat posts. . .MSDN kept replying that they had failed.

Of course, I don't know exactly what you're up to. I assumed that you
wanted the tree to remain visible at all times as it sounds like a navigation
system. Unless the contents of the tree are highly dynamic, you probably
don't want the tree being rebuilt every time the user clicks a link. Hence,
use an iframe for the actual content. An alternative would be to add the
tree to each and every content page (yuck) or to use a frameset with the tree
on the left frame and the content on the right frame. The latter approach
uses the same technique as the iframe. . .namely, "name" your frame and set
your target of the links to the name. I personally like the iframe approach.
.. .(example below)

<body>
<table cellpadding="0" cellspacing="0" style="width:100%; height:100%;
table-layout:fixed;">

<colgroup>
<col width="200px"/> <!-- set width of treeview -->
<col/>
</colgroup>

<tbody>
<tr>
<td>
<div style="position:relative; width:100%; height:100%;
overflow-x:hidden; overflow-y:auto;">
<!-- ... TREEVIEW GOES HERE ... -->
</div>
</td>

<td>
<div style="position:relative; width:100%; height:100%;
overflow-x:hidden; overflow-y:auto;">
<iframe frameborder="no" style="position:relative; width:100%;
height:100%;"></iframe>
</div>

</td>
</tr>
</tbody>
</table>
</body>

"Patrick.O.Ige" wrote:
Thx for these ideas..
So that means my main window would be the IFRAME WINDOW.
And 'm trying to avoid that but i would give it a try!!
Do u have an example of the DIV with the style?

"Matthew Lea" wrote:
2 suggestions:

1) discard the iframe for the treeview and instead use a <div>. To prevent
"shift to the right", simply apply the overflow-x:hidden style. If you want
a vertical scrollbar, add the appropriate overflow-y value.

2) "Is there a way that if a user clicks a link on the Treeview it can
target to
the table of the main window on the right" -- this is where you should use
an iframe. Position it how you like and ensure that it has a "name"
attribute (ie. name="myiframe"). Your links in your treeview should target
this name (ie. target="myiframe").

"Patrick.O.Ige" wrote:
Can i use Frameset in ASP.NET?What are other options
I have a question :-
I have an asp.net page and i'm using TreeView control as links
The links are on the left side of the page inside a iframe! I used iframe
b-cos the links are too long and they shift the page to the right.
Is there a way that if a user clicks a link on the Treeview it can target to
the table of the main window on the right (I DOUBT IF ITS POSSIBLE)
What other ways are available to divide pages in ASP.NET like in FRAMESET?
Thanks!

Nov 18 '05 #7
Thx a lot Mathew.
Iframe is ok but i want to avoid FRAMESET :(
Will try out the code anyway!

"Matthew Lea" <Ma********@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
BTW. . .sorry for the repeat posts. . .MSDN kept replying that they had failed.
Of course, I don't know exactly what you're up to. I assumed that you
wanted the tree to remain visible at all times as it sounds like a navigation system. Unless the contents of the tree are highly dynamic, you probably
don't want the tree being rebuilt every time the user clicks a link. Hence, use an iframe for the actual content. An alternative would be to add the
tree to each and every content page (yuck) or to use a frameset with the tree on the left frame and the content on the right frame. The latter approach
uses the same technique as the iframe. . .namely, "name" your frame and set your target of the links to the name. I personally like the iframe approach. . .(example below)

<body>
<table cellpadding="0" cellspacing="0" style="width:100%; height:100%;
table-layout:fixed;">

<colgroup>
<col width="200px"/> <!-- set width of treeview -->
<col/>
</colgroup>

<tbody>
<tr>
<td>
<div style="position:relative; width:100%; height:100%;
overflow-x:hidden; overflow-y:auto;">
<!-- ... TREEVIEW GOES HERE ... -->
</div>
</td>

<td>
<div style="position:relative; width:100%; height:100%;
overflow-x:hidden; overflow-y:auto;">
<iframe frameborder="no" style="position:relative; width:100%;
height:100%;"></iframe>
</div>

</td>
</tr>
</tbody>
</table>
</body>

"Patrick.O.Ige" wrote:
Thx for these ideas..
So that means my main window would be the IFRAME WINDOW.
And 'm trying to avoid that but i would give it a try!!
Do u have an example of the DIV with the style?

"Matthew Lea" wrote:
2 suggestions:

1) discard the iframe for the treeview and instead use a <div>. To prevent "shift to the right", simply apply the overflow-x:hidden style. If you want a vertical scrollbar, add the appropriate overflow-y value.

2) "Is there a way that if a user clicks a link on the Treeview it can
target to
the table of the main window on the right" -- this is where you should use an iframe. Position it how you like and ensure that it has a "name"
attribute (ie. name="myiframe"). Your links in your treeview should target this name (ie. target="myiframe").

"Patrick.O.Ige" wrote:

> Can i use Frameset in ASP.NET?What are other options
> I have a question :-
> I have an asp.net page and i'm using TreeView control as links
> The links are on the left side of the page inside a iframe! I used iframe > b-cos the links are too long and they shift the page to the right.
> Is there a way that if a user clicks a link on the Treeview it can target to > the table of the main window on the right (I DOUBT IF ITS POSSIBLE)
> What other ways are available to divide pages in ASP.NET like in FRAMESET? > Thanks!

Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jeff Thies | last post by:
I'm (still) having trouble reading the contents of an IFRAME (IE5). I have this: var my_iframe = document.frames; What I would want to do at that point is get either the...
12
by: Javier | last post by:
Hello, I'm very new in this forum and as I have the following problem, the website is in http://new.vanara.com ----------------------------------------------------------------------------...
3
by: Dany P. Wu | last post by:
Hi everyone, I am trying to create a site with pages containing iframes. This is the first time I've used inline frames and am still struggling with the concept. This site will have 10 pages...
1
by: Martin | last post by:
There seems to be some strange behaviour when trying to get the scrollHeight and scrollTop of an iframe in IE6. I have tried several ways of getting these values when the iframe is written into...
3
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The...
1
by: Steven | last post by:
I am having problems with IFrames and Firefox. To make things simple I have index.html and frame.html: ------------ index.html ----------------- <html> <head> <title></title> <script...
2
riptide2049
by: riptide2049 | last post by:
I really have a problem here. I have a code that is suppost to take the href of a link from the right class;value of a link maked toreturn false. the value is a Media file the file is sent to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.