473,408 Members | 1,966 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,408 software developers and data experts.

server.transfer to reload PARENT page (contains frames) -- how to retain values?

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. IS IT POSSIBLE
(and HOW please) to do the following:

4 text controls filled in by user in Left frame, with a button click
event to:

Reload Parent frame containing: reload Left frame keeping (or
replacing) its .text values and load a new Right frame, loading an
xmlDocument (source filename is needed from a text value in Left
frame).

Any EXAMPLES very appreciated...or can I simply NOT do this?

Thanks, Kathy

p.s. I know there is a lot of opinion AGAINST frames, but that is not
an option for me just now...thanks.
Nov 17 '05 #1
3 6432
You might want to use dynamically created client script in your left frame to reload the whole window after postback. You can build a query string on postback to forward to the other frames.

HTH,
Axel Dahmen

------------------------
"KathyB" <Ka**********@attbi.com> schrieb im Newsbeitrag news:75**************************@posting.google.c om...
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. IS IT POSSIBLE
(and HOW please) to do the following:

4 text controls filled in by user in Left frame, with a button click
event to:

Reload Parent frame containing: reload Left frame keeping (or
replacing) its .text values and load a new Right frame, loading an
xmlDocument (source filename is needed from a text value in Left
frame).

Any EXAMPLES very appreciated...or can I simply NOT do this?

Thanks, Kathy

p.s. I know there is a lot of opinion AGAINST frames, but that is not
an option for me just now...thanks.


Nov 17 '05 #2
Thanks Axel,

Could you possibly give me a brief example...?

KathyBurke

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
There are many ways to do that. One would be to add the "onload" event to the left frame's body tag:

HtmlGenericControl bodyCtrl;

void Page_Load()
{
...

if (IsPostBack)
{
...

string query="";

query+="var1="+HttpUtility.URLEncode(myTxtBox1.Tex t);
query+="&var2="+HttpUtility.URLEncode(myTxtBox2.Te xt);
query+="&var3="+HttpUtility.URLEncode(myTxtBox3.Te xt);
query+="&var4="+HttpUtility.URLEncode(myTxtBox4.Te xt);

bodyCtrl.Attributes.Add("onload","top.location='Ou terFrame.aspx?"+query+"'")
}

...
}

The body element of your left frame must of course have a RunAt="Server" attribute:

<body Runat="Server" id="bodyCtrl">
In your outer frame file then, you forward the query string to the right frame... I guess you know how to create hyperlinks (or any text) dynamically?

HTH,
Axel Dahmen

-------------------------
"Kathy Burke" <ka**********@attbi.com> schrieb im Newsbeitrag news:#o**************@tk2msftngp13.phx.gbl...
Thanks Axel,

Could you possibly give me a brief example...?

KathyBurke

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 17 '05 #4

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

Similar topics

5
by: Bryan Field-Elliot | last post by:
We're designing a web app in which some operations will take a long time to complete (maybe two minutes). Because it's a high-volume application, we don't want browser connections hanging open for...
3
by: Guy Roydor | last post by:
Hello, I would like to simplify the following script (in a single line) parent.botFrame.location="mapage.html"; parent.botFrame.location.reload(true); is it possible? Thank you G.R
13
by: long5120 | last post by:
I am trying to use webpage with javascript to check if a web server is responding. I was thinking of using 2 frames. Frame1 will have the site, and the Frame2 will be a status bar (not really...
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
3
by: Ohad Young | last post by:
Hi, I have a frameset page that contains two frames: 1. the first frame, an aspx page, contains a menu for navigating in the website. 2. the second frame contains content, pdf, html or other...
2
by: Chris Podmore | last post by:
This is driving me mad so any help will be much appreciated. I have an html page with 3 frames, banner, left and right. The banner frames source is an aspx page. The aspx page has two buttons,...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
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
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
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,...
0
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...

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.