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

How can i refresh a frame's source page from Page_Load func.

i have a frame page and when the main frame's page loaded the header frame
must be refreshed.
i do this with the javascript and onLoad event of body tag. but i want to
do this from the Page_load event of the page class.
what is the methode for this.

the main problem i want to this with vb code from the page class. i don't
want to touch js or html any more:)) may be a little.

--
Sedat Eyuboglu
www.bestflashdesigns.com
www.18reklam.com
Nov 18 '05 #1
2 1709
You can't do this from the page_load class using server-side code, as this
code runs on the server, and the frame can only be refreshed client-side.
What you could do as a workaround is register a client-side script in the
page_load event, which will update the top frame. Eg.

Page.RegisterStartupScript("reload", "<script
language='JavaScript'>parent.frames["top"].location.reload()</script>");

Regards,

Mun

"Sedat Eyuboglu" <se*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
i have a frame page and when the main frame's page loaded the header frame
must be refreshed.
i do this with the javascript and onLoad event of body tag. but i want to do this from the Page_load event of the page class.
what is the methode for this.

the main problem i want to this with vb code from the page class. i don't
want to touch js or html any more:)) may be a little.

--
Sedat Eyuboglu
www.bestflashdesigns.com
www.18reklam.com

Nov 18 '05 #2
i have thought that there must be a method creating client script. this is
it... thanx....

"Munsifali Rashid" <mun@**RemoveToReply**vefuk.com> wrote in message
news:OD**************@TK2MSFTNGP09.phx.gbl...
You can't do this from the page_load class using server-side code, as this
code runs on the server, and the frame can only be refreshed client-side.
What you could do as a workaround is register a client-side script in the
page_load event, which will update the top frame. Eg.

Page.RegisterStartupScript("reload", "<script
language='JavaScript'>parent.frames["top"].location.reload()</script>");

Regards,

Mun

"Sedat Eyuboglu" <se*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
i have a frame page and when the main frame's page loaded the header frame must be refreshed.
i do this with the javascript and onLoad event of body tag. but i want

to
do this from the Page_load event of the page class.
what is the methode for this.

the main problem i want to this with vb code from the page class. i don't want to touch js or html any more:)) may be a little.

--
Sedat Eyuboglu
www.bestflashdesigns.com
www.18reklam.com


Nov 18 '05 #3

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

Similar topics

5
by: Steve | last post by:
Hi, I have a private website for 20 people that is similar to a web email client like hotmail. There are two frames, one on the left with links for "New", "History", "Todays" and a frame on the...
2
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
8
by: Judy Ward | last post by:
I have an index.aspx with frames. The top frame has a navigation bar with a "Login" hyperlink. If the user has already logged in I want this link to change to "Logout". I am using forms-based...
2
by: Just D. | last post by:
All, How should we refresh the current aspx frame? I disabled caching using this command on Page_Load(): Response.Cache.SetCacheability(HttpCacheability.NoCache); but it didn't help. The...
2
by: Pop | last post by:
Hi all! Here's the situation I have a frame set with 3 frames, banner, contents and main. I have my login.aspx in banner and after login, I redirect back to index.aspx where my frameset at....
7
by: Andrew | last post by:
Hi, friends, I have a big problem: Based on a user's selection, portion of a web page need to be refreshed. For instance, if a user select Math, all avaible Math classes will be populated in the...
3
by: Kevin | last post by:
Hi guys, I want to refresh some pages every 2 seconds. however, these html pages are not in my site, they could be any pages from yahoo.com or msn.com. I can create a page, which redirect to...
1
by: helraizer1 | last post by:
Hi folks, and folkesses. I have a piece of java script for a dynamic menu (code below). <ilayer width=100% height=50 name="dep1" bgColor="#000000"> <layer name="dep2" width=100% height=50>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.