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

What new relating frames exists in ASP.NET what doesn't exist in old ASP? And changing another frame´s controls

I´m new to ASP.Net. My workmate has some experience with it.

He claimed that in ASP.Net working with frames is much simpler than it
was ASP. I asked explanation but he couldn't give me such. (a button
inside a-tag with attribute target isn't anything new relating ASP.Net,
its same old HTML).

He claimed that you could change another page´s controls´s property´s
value from another frame by using this method:
' Page "Bottom"
Public Class Bottom
Inherits System.Web.UI.Page
Public Shared WithEvents lblText As System.Web.UI.WebControls.Label
End Class

' Another Page
Bottom.lblText.Text = "Text"

But this doesn't change lblText.Text-property´s value (as I expected).

I think that only browser at the client side knows what frames exist and
ASP.Net doesn't, isn't that so?

So are there really some way to do that or is this impossible? My
workmate couldn't give me an example about this, but he says have read
from somewhere that using frames is easier in ASP.Net.

Is it really easier to use frames in ASP.Net, and if so what way?

I can use Session-variables to store information relating all frames and
JavaScript to refresh another frames than current one, but I would be
very happy if there would be another solution..

PS. Is there any solution to have scrollbars (vertical and horizontal)
to user control or some block-level element (which I can put user control)?
Nov 18 '05 #1
3 2442
well your workmate got it wrong bigtime :)
working with frames is not any easy.. infact the change in programming model
actually makes it difficult to use the old asp techniques.
you still can use javascript to do the dirty work for you. but i would
suggest that you stay away from frames if possible.

if you want to use frames then consider using iframes yes you can have
horizontal / vertical scrollbars with iframe

you do have work arounds but again you will have to resort to javascript.

you can still use session to ferry the data around but it still isnt the
best way.
consider using user controls. with user controls it belongs to the parent
aspx on to which you drop the control. If browser feels the need for parent
to have scrollbars it will set it (unless you opened the page in custom
window using window.open())

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"qwerty" <x@y.zzz> wrote in message
news:41***********************@news.song.fi...
I´m new to ASP.Net. My workmate has some experience with it.

He claimed that in ASP.Net working with frames is much simpler than it was
ASP. I asked explanation but he couldn't give me such. (a button inside
a-tag with attribute target isn't anything new relating ASP.Net, its same
old HTML).

He claimed that you could change another page´s controls´s property´s
value from another frame by using this method:
' Page "Bottom"
Public Class Bottom
Inherits System.Web.UI.Page
Public Shared WithEvents lblText As System.Web.UI.WebControls.Label
End Class

' Another Page
Bottom.lblText.Text = "Text"

But this doesn't change lblText.Text-property´s value (as I expected).

I think that only browser at the client side knows what frames exist and
ASP.Net doesn't, isn't that so?

So are there really some way to do that or is this impossible? My workmate
couldn't give me an example about this, but he says have read from
somewhere that using frames is easier in ASP.Net.

Is it really easier to use frames in ASP.Net, and if so what way?

I can use Session-variables to store information relating all frames and
JavaScript to refresh another frames than current one, but I would be very
happy if there would be another solution..

PS. Is there any solution to have scrollbars (vertical and horizontal) to
user control or some block-level element (which I can put user control)?

Nov 18 '05 #2
As a side note he may talk of user controls or master pages both allowing to
"pack" a part of a page so that it can be reused at will on multiple pages,
simulating in a sense the benefit of frames...

As you pointed, ASP.NET is anyway just a programming model and just uses
"classic" HTML...

Patrice

--

"qwerty" <x@y.zzz> a écrit dans le message de
news:41***********************@news.song.fi...
I´m new to ASP.Net. My workmate has some experience with it.

He claimed that in ASP.Net working with frames is much simpler than it
was ASP. I asked explanation but he couldn't give me such. (a button
inside a-tag with attribute target isn't anything new relating ASP.Net,
its same old HTML).

He claimed that you could change another page´s controls´s property´s
value from another frame by using this method:
' Page "Bottom"
Public Class Bottom
Inherits System.Web.UI.Page
Public Shared WithEvents lblText As System.Web.UI.WebControls.Label
End Class

' Another Page
Bottom.lblText.Text = "Text"

But this doesn't change lblText.Text-property´s value (as I expected).

I think that only browser at the client side knows what frames exist and
ASP.Net doesn't, isn't that so?

So are there really some way to do that or is this impossible? My
workmate couldn't give me an example about this, but he says have read
from somewhere that using frames is easier in ASP.Net.

Is it really easier to use frames in ASP.Net, and if so what way?

I can use Session-variables to store information relating all frames and
JavaScript to refresh another frames than current one, but I would be
very happy if there would be another solution..

PS. Is there any solution to have scrollbars (vertical and horizontal)
to user control or some block-level element (which I can put user

control)?
Nov 18 '05 #3
I found that you can send information from another page to another with
"Server.Transfer" and load it from second page which "Context.Handler"
(http://msdn.microsoft.com/library/de...weenpages.asp).
Becouse it's possible to set forms target attribute to
another frame (in my case Bottom), in my mind came, that it possible to
send page´s information there and load right page with Server.Transfer
to that frame with previous page´s information. But, read below..

Hermit Dave wrote:
well your workmate got it wrong bigtime :)
working with frames is not any easy.. infact the change in programming model
actually makes it difficult to use the old asp techniques.
you still can use javascript to do the dirty work for you. but i would
suggest that you stay away from frames if possible. That I was thinking. It's a matter of course, but is there any source
for this fact, maybe in MSDN?
if you want to use frames then consider using iframes yes you can have
horizontal / vertical scrollbars with iframe you do have work arounds but again you will have to resort to javascript. I don't want to use frames but scrollbars without frames. But I found
that I can use CSS for it (overflow: auto) or ASP.Net server control
Panel which becomes div-tag in HTML-code. you can still use session to ferry the data around but it still isnt the
best way.
consider using user controls. with user controls it belongs to the parent
aspx on to which you drop the control. I need to use some user controls in many pages so them state wouldn't
last to all these pages (?), so I must use Session-variables
then. If browser feels the need for parent to have scrollbars it will set it (unless you opened the page in custom
window using window.open()) I haven't noticed that importing user control to a page would check that
fits some place (it by the way haven't got properties to set its size
but it´s auto-align)whereit to space. However we can of course put User
control into a panel (or better put it inside a panel and let it decide
its sizes) and set scrollbars for it.

Patrice wrote: As a side note he may talk of user controls or master pages both
allowing to "pack" a part of a page so that it can be reused at will
on multiple pages, simulating in a sense the benefit of frames...

As you pointed, ASP.NET is anyway just a programming model and just
uses "classic" HTML...

Might be..but he misunterstood how _real_ frames works still in ASP.Net.

User controls are indeed very good alternatives for frames. I think only
when we have a lot data loaded rarely in a certain place of the page,
frames may be better than user controls..

By the way, I am doing an online shop application which includes a
shopping cart. In the bottom the page I have information what belongs to
the shopping cart at the current moment. In left there is list of
product groups. When user selects product group, page loads product list
to the left side of center area. When user selects product, it's
information shows at the of right side the list and center area. This is
pretty much given thing..

If I keep the shopping cart in a separate frame in the bottom of the
page and want updates its information from another frame, I
need to have form´s target attribute "Bottom" (read above). But it's
very much given to me that I must put product list and product into the
same page, not in separate pages. So this causes problem because product
list must send form from browser back to the same page and load it in
the same target frame. But product info form must change the shopping
cart frame´s state when user adds a product, so then forms target
attribute must be "Bottom". So I need two form-tags, another without
target-attribute and another set it to "Bottom". But ASP.Net´s
limitation and the way to handle forms restricts me to use only one form
tag per page..

One solution would be to use client scripting in the button which
changes the shopping cart frame´s information inside it (?Refresh=1).
But I wouldn' like to use client scripting in this project.

I am becoming persuaded that I would use CSS positioning for the
shopping cart which is located in the bottom of the page. There are some
problems but it seems to work in new and nowdays common browsers (which
presumably will be target browsers of users) (and I get away from tables).

Bottom-frame in online shop applications seems fairly common, but that
its common isn't merely reasonable reason for using it. About body´s
style "height: 100%" (and div´s style "bottom: 0"): "People seem to
think this is a very difficult problem, but it isn't." (source:
http://www.quirksmode.org/css/100percheight.html). What do you others
think about this?
Nov 18 '05 #4

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

Similar topics

4
by: A Web Master | last post by:
I am designing a site for a client where I have a frameset and 3 frames (all in ASP). I am creating session variables in the frameset that need to be accessed in the frames. It seams that in...
112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
1
by: Jonathan Rubke | last post by:
I am getting a filename from one frame and opening it in another frame. It works fine if the file exists, but I'm trying to get it to show an error message, possibly an alert box, if the file...
26
by: jj | last post by:
Care to enlight? Thanks!
3
by: Jan Ebbe Jensen | last post by:
Hi I have tried the following code. It works in Mozilla. In IE I'm not able to enable DesignMode? What have I done wrong? It says that obj is undefined? Can anyone help me please.
3
by: KathyB | last post by:
Hi, Been reading a LOT about frames, variables, etc. I realize you can NOT use server.transfer with target frames (which are client)... I have a Parent frame containing Left and Right frames....
11
by: Jamie Dulaney | last post by:
I'm working on a website that uses frames. Some of the pages that belong in the 'main' frame (not the header (top) or contents (side)) need to be SSL encrypted. I have no problems in invoking...
2
by: Wee Bubba | last post by:
i started by designing my web page using frames. i had my data entry form in an upper form and my data rows displaying in a lower frame. i soon discovered that ASP.NET is not really meant for...
1
by: ASP Yaboh | last post by:
Is there any way to access the web controls in a frame from the aspx.cs code of another frame? The Frameset is an aspx page and each frame is an aspx page. I was hoping to access the "parent" and...
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?
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
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...
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,...
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.