473,289 Members | 1,953 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,289 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 3670
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.