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

Are Frame pages really taboo in ASP.NET?

Are frame pages really taboo in asp.net and if so, why and what's the down
side of using them? I'm trying to use user controls instead, but it seems
that a lot of things were a lot easier with frames and the user experience
was better. Some one please enlighten me.

--
mo*******@nospam.com
Nov 18 '05 #1
8 1820
It's common to find people avoiding frames because they do not understand it
completely. Education is the key to using frames correctly. Start with msdn,
you can find a lot there.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"moondaddy" <mo*******@nospam.com> wrote in message
news:eC**************@TK2MSFTNGP12.phx.gbl...
Are frame pages really taboo in asp.net and if so, why and what's the down
side of using them? I'm trying to use user controls instead, but it seems
that a lot of things were a lot easier with frames and the user experience
was better. Some one please enlighten me.

--
mo*******@nospam.com

Nov 18 '05 #2
Hi moondaddy,
Thanks for posting in the community! My name is Steven, and I'll be
assisting you on this issue.
From your description, you need some suggestions on using frame pages in
ASP.NET web applicatoin. Also, you feel somewhat confused on why such frame
based page are not so popular in ASPL.NET web application and is there any
disadvantages using it, yes?
If there is anything I misunderstood, please feel free to let me know.

As for this question, I first should confirm that there doesn't exisit any
disadvantages of using frame pages in ASP.NET web application. We can use
frame/frameset based web pages in ASP.NET web application as well as other
web projects. Also, we can use normal html pages as well as aspx web pages
in a frameset. And as for the problems which occurs when using
frame/framesets in ASP.NET, I think that's probably because of the
complication of using frame based pages, not only in ASP.NET web pages.
Since the diferent web pages within the frames in the same frameset are
acutally sparately from each other, we need some skills when implement the
communication between these pages. That'll sometimes cause the
difficulties. Also, when we mixed the html with the dynamical server page
techs such as ASP.NET, the complication will even increase than the common
html page. But that won't cause any other taboo for the frame pages in
the asp.net web application. Do you think so?
In addition, I've searched some tech reference on the "frame/frameset" in
web pages(not particularly for asp.net). I believe they'll be helpful to
you.

#Introduction to Framesets
http://msdn.microsoft.com/library/en...roductionToFra
mesets.asp?frame=true

#Create a Frameset
http://msdn.microsoft.com/library/en...rfr.asp?frame=
true

Please check out the above items. If you have any further questions, please
feel free to let me know.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
Hi moondaddy,
Have you had a chance to check out my suggestions or have you got any new
ideas on the frames based web page designing?
If you need any further assistance, please feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 18 '05 #4
Thanks for the reply Steven. Since it took a while to get feedback from
various sources about frames I went ahead with a frameless solution for this
particular case. However, I have searched far and wide on how to make
"ONLY" the user control do a postback while leaving the rest of the parent
page as-is with out doing a postback and none of the replies told my how to
do that but rather told me how to make it appear as such. I think frames do
have some positive benefit so I will attempt a second version of this page
soon and convert it to a frame page. At that time I can give you more
feedback. I will say this however which it would be great if you could pass
it along to the higher-ups: It seems as though MS is steering away from
frames as I don't see any documentation or examples combining frames and
aspx pages. But if there's a way to deliver a good solution using frames
and aspx pages, it would be great to see MS provide some documented examples
using the proper techniques. OR, if there's a better way to using user
controls to emulate frames including having a page scroll in a user control
which makes it appear to be in a frame or an iframe so that the rest of the
page doesn't scroll (and to send less bytes across the wire when updating a
use control), then show some specific examples of that. I see lots of
people in the user groups trying to do this with lots of trouble so it would
be worth while to provide such documentation.

Thanks again for all of your help!!!

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:G6**************@cpmsftngxa07.phx.gbl...
Hi moondaddy,
Have you had a chance to check out my suggestions or have you got any new
ideas on the frames based web page designing?
If you need any further assistance, please feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #5
Hi moondaddy,
Thanks for your followup. As for the frame based pages, I don't think MS is
steering away from it. The reason why frame based page can't be replaced by
a function or mechanism of the ASP.NET UserControl is the difference
between frame based pages and normal web pages(not specially ASP.NET
pages). Because such a frame or iframe element is actually a single page
which is separate from its container page. However, the UserControl in a
ASP.NET page is like an element in the page, it's not a separate page. So
it is certainly that the UserControl can't replace the Frame's
functionality. That's also why when post back a UserControl, the container
can't prevent from being post back too. In fact, the UserControl is
designed to help the developer to easily reuse some codes and page layout
rather than provide the frame's functionality. How do you think of this?

Any way, since you'd like to try implement your program in a new frame
based version. If you encounter any problems on it, please feel free to
post here. I'll be willing to assist you.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #6
Hi moondaddy,
As for the problems that few document with frame based page programming in
MSDN, I think you may submit the suggestion or also any other good
suggestions on the following site:
#Product FeedBack
http://register.microsoft.com/mswish/suggestion.asp.

Also, I have already submitted your request for more frames related
documentation on it. Please feel free to post your requests and suggestions
there.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 18 '05 #7
Steven, In a post related to this thread or a related thread (which I can no
longer find online) you gave me a good code example which demonstrated how
to call a JavaScript in Frame B from Frame A, pass a parameter into a hidden
element in Frame B and then call the click event of a server control button
which forced a postback in Frame B. Additionally, Frame B contained a web
user control. That worked, but isn't the following line of code which could
be called from any frame and any control be a much simpler way to do it?

parent.Body.frameElement.src="Body/Products.aspx?MenuID=333";

Are there any drawbacks to doing it this way?

Thanks for all of your ongoing help!

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:ZD*************@cpmsftngxa07.phx.gbl...
Hi moondaddy,
Thanks for your followup. As for the frame based pages, I don't think MS is steering away from it. The reason why frame based page can't be replaced by a function or mechanism of the ASP.NET UserControl is the difference
between frame based pages and normal web pages(not specially ASP.NET
pages). Because such a frame or iframe element is actually a single page
which is separate from its container page. However, the UserControl in a
ASP.NET page is like an element in the page, it's not a separate page. So
it is certainly that the UserControl can't replace the Frame's
functionality. That's also why when post back a UserControl, the container
can't prevent from being post back too. In fact, the UserControl is
designed to help the developer to easily reuse some codes and page layout
rather than provide the frame's functionality. How do you think of this?

Any way, since you'd like to try implement your program in a new frame
based version. If you encounter any problems on it, please feel free to
post here. I'll be willing to assist you.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #8
Hi Moondaddy,
Thanks for your followup. Yes, you're right, we can use the below code to
refer a brother frame and do operations on it:
window.parent.framename.{operationname}

But one thing important is that the frames need to be at the same
hierarchy, in other word, they are in the same parent frameset page. For
example:

<frameset cols="*,*">
<frame name="left" src="left.aspx">
<frame name="right" src="right.aspx">
<noframes>
Then, left.aspx can refer page right.aspx also the contrary. If you feel
anything unclear or have any further questions, please feel free to post.
I'll be willing to assit you.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #9

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

Similar topics

7
by: xmp333 | last post by:
Hi, I know the noresize attribute will keep the user from resizing a frame, but is there a way to keep a frame from being resized by the browser (in response to things like different...
5
by: Frame | last post by:
I'm looking for tutorials or articles considering HTML Frames and how to handle them with Javascript. E.g. samples how Frames can exchange information, can a Frame instruct other Frame to update...
11
by: opt_inf_env | last post by:
Hello everybody, I have created a page consisting of two frames. The second frame is made to display "external" sites (i.e. written not by me, for example www.google.com). But I found that some...
4
by: Mark | last post by:
I am rephrasing a question from yesterday. I have a page with several user controls : nav, header, and footer currently. What I would like to do is add a new control ('content') and use it like...
3
by: Cleave | last post by:
Hello, I have a ASP application that I can't afford to convert totally over to ASP.NET, but currently I am converting the content pages that display in the content part of the ASP frameset. When...
6
by: wimvan | last post by:
Hi, I'm a nerd in javascript, but, after trying and retrying I'm addressing me to help. I have a page with three frames, a top-, a left- and a right-frame. a kind a title-frmae, a button-frame...
42
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
6
by: Richard Maher | last post by:
Hi, Now that I am aware that JS on a page in Frame A can directly call a function on a page in Frame B, I no longer have to continue with my frameB.location.reload() fudge in order to get some...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.