Communicating Between Frames

  • Thread starter Thread starter Mike Grainger
  • Start date Start date
M

Mike Grainger

Good Day:

I am attempting to reference the value in a dropdownlist in the contents
frame from the main frame and use it for filtering od a dataview. I get
object is null.

Any help on referencing an object in another frame would be greatly
appteciated.

Mike
 
Hi Mike,

I never know how to use frames in ASPX pages so I am curious how you did it.

But dit you know that there was a chat todaty about this.

Cor

Do you have questions about how to create great ASP.NET applications with
Visual Basic .NET? Join members of the Visual Basic and Web Forms teams for
a discussion about getting the most out of your Web applications. Get
answers from the experts to your questions about Visual Basic and ASP.NET.

Date:
February 3, 2004

Time:
1:00 - 2:00 P.M. Pacific time
4:00 - 5:00 P.M. Eastern time
21:00 - 22:00 BST/BST
(For a list of local time zones relative to GMT, please see
http://msdn.microsoft.com/chats/timezones.asp.)

Outlook Reminder:
http://msdn.microsoft.com/chats/outlook_reminders/VS_Feb03.vcs

Location:
http://msdn.microsoft.com/chats (then click the name of the chat to enter
the chat room)

For more information about Visual Basic .NET, see
http://msdn.microsoft.com/vbasic/
To see a list of upcoming chats or set a reminder for this chat, see
http://msdn.microsoft.com/chats.
For archives of previous chats, see
http://msdn.microsoft.com/chats/recent.asp.

Thanks!
Jason Cooke
VB.NET Team
========
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
(c) 2004 Microsoft Corporation. All rights reserved.
 
I've been through this in the past with IFrames. The problem is that frames
are a concept of the web browser and not the ASP.NET runtime. Therefore, as
it appears, the ASP.NET engine is only dealing with the current page it is
rendering and possible the previous if you did a "server.transfer". But if
there are multple frames, then the ASP.NET engine knows nothing of the other
frames and so it isn't currently possible. The other thing is that it can't
know anyway unless all the frames are submitted. Because if Frame A submits
and Frame B does not, then in the code-behind, there is no way for the
ASP.NET engine to know what the Request object variables should be for Frame
B since it could have changed from the previous output.

To work around this, I use JavaScript and pull in the variables as needed
into hidden fields to be submitted with the page in the IFrame.

Thanks,
Shawn
 
Back
Top