473,799 Members | 2,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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*******@nospa m.com
Nov 18 '05 #1
8 1842
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*******@nosp am.com> wrote in message
news:eC******** ******@TK2MSFTN GP12.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*******@nospa m.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?fram e=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.m icrosoft.com> wrote in message
news:G6******** ******@cpmsftng xa07.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.fra meElement.src=" Body/Products.aspx?M enuID=333";

Are there any drawbacks to doing it this way?

Thanks for all of your ongoing help!

"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:ZD******** *****@cpmsftngx a07.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.f ramename.{opera tionname}

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
16141
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 layouts/sizes on the page)? Basically I want my frame sizes to remain fixed no matter what happens.
5
4456
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 it's content etc. This kind of information is welcome. Cheers!
11
6678
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 "external" pages (for example www.hotmail.com ) do not "want" to be displayed in my frame. They take the whole windows. Does anybody know why? Does anybody know whether this problem can be solved, i.e. whether one can force sites to be displayed...
4
2355
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 a frame. Specifically like a "content" or "main" frame. Can I somehow load the content of another, complete html or aspx page into this control? If so how? Ands If so, how can I load the correct page from a link? (IE:
3
2134
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 a user performs some action the left nav frame should update (in ASP world), but with ASP.net, I need to be able to refresh that frame. How is this possible? I know it sounds like I want the best of both worlds, but I really need to do this in...
6
3249
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 and an information-frame (mainframe). In te button-frame, I show thumbs (images) who refer to an album on the net. This is working for the moment. So, clicking on a thumb, a photocollection opens in the mainframe. Question: Can I have an...
42
3890
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
1951
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 code to run in B's context. This is fantastic news, and I'm having a ball! But before running off with all my convert's zeal and converting all my <script src="common.js"copy-books to direct parent.frame.function() calls I'd like to pause for a...
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10482
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.