Ask a Question related to ASP.NET General, Design and Development.
-
KathyB #1
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.
KathyB Guest
-
Transfer DataGrid across frames
Hello everyone Is there a way to click on a button on one frame and have it populate a datagrid on another frame on the same page? -
Please tell me I'm crazy!!! - Reload page does not update textbox values.
Scenario: 1. I dynamically generate a form (using server-side code) with numerous text boxes that are populated with values from a database. ... -
Server.Transfer loses posted values only v1.1
The only suggestion I can throw, without some testing, is to check the values for ViewState and ViewStateMac, as ViewState is where the values... -
Server.Transfer loses posted values
I have an ASP.NET application that is working under v1.0 of the framework but is not working under v1.1. The application uses logical addresses... -
How come SERVER.TRANSFER when used in a table only displays the new page in that particular cell?
That must be because you have "second_document.asp" in your page somewhere in the html. Server.Transfer is like response.redirect, except it... -
Axel Dahmen #2
Re: server.transfer to reload PARENT page (contains frames) -- how to retain values?
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" <KathyBurke40@attbi.com> schrieb im Newsbeitrag news:75e8d381.0306300847.60a2ee6c@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.Axel Dahmen Guest
-
Kathy Burke #3
Re: server.transfer to reload PARENT page (contains frames) -- how to retain values?
Thanks Axel,
Could you possibly give me a brief example...?
KathyBurke
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Kathy Burke Guest
-
Axel Dahmen #4
Re: server.transfer to reload PARENT page (contains frames) -- how to retain values?
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" <kathyburke40@attbi.com> schrieb im Newsbeitrag news:#oqwUxzPDHA.4024@tk2msftngp13.phx.gbl...> Thanks Axel,
>
> Could you possibly give me a brief example...?
>
> KathyBurke
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!Axel Dahmen Guest



Reply With Quote

