473,782 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET and Frames

Ben
Hello

First, I know frames are not exactly the best things to be using in an asp
application, but I had no other choice. My problem is that I now have
situations where one frame must update another. Is there a way to do this?

I have tried the following code:
string script = "javascript:par ent.menu.locati on.reload(true) ;";
this.Page.Regis terStartupScrip t("reload", script);

but this does not work. Any suggestions?
May 15 '06 #1
5 2095
"Ben" <ben_1_ AT hotmail DOT com> wrote in message
news:C2******** *************** ***********@mic rosoft.com...
but this does not work.


How do you know it doesn't work...?
May 15 '06 #2

"Ben" <ben_1_ AT hotmail DOT com> wrote in message
news:C2******** *************** ***********@mic rosoft.com...
Hello

First, I know frames are not exactly the best things to be using in an asp
application
Why is this?

, but I had no other choice. My problem is that I now have situations where one frame must update another. Is there a way to do
this?
of course, you have to use jscript and reload the other frame.
I have tried the following code:
string script = "javascript:par ent.menu.locati on.reload(true) ;";
this.Page.Regis terStartupScrip t("reload", script);

but this does not work. Any suggestions?


what error r u getting?

I would change it to

string script = "<script>parent .menu.location. reload(true) </script>"

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
May 15 '06 #3
Ben
I have a method that those lines of code are called from.

The code seems to run without throwing any errors, but the frame is not
updated.

Here is the exact code:
private void refreshMenu()
{
string script = "<script>parent .menu.location. reload(true)</script>";
this.Page.Regis terStartupScrip t("reload", script);
}

Thank you again for any additional help.
Ben

"Ignacio Machin ( .NET/ C# MVP )" wrote:

"Ben" <ben_1_ AT hotmail DOT com> wrote in message
news:C2******** *************** ***********@mic rosoft.com...
Hello

First, I know frames are not exactly the best things to be using in an asp
application


Why is this?

, but I had no other choice. My problem is that I now have
situations where one frame must update another. Is there a way to do
this?


of course, you have to use jscript and reload the other frame.
I have tried the following code:
string script = "javascript:par ent.menu.locati on.reload(true) ;";
this.Page.Regis terStartupScrip t("reload", script);

but this does not work. Any suggestions?


what error r u getting?

I would change it to

string script = "<script>parent .menu.location. reload(true) </script>"

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

May 15 '06 #4
Ben,
Try something more like this:

string script =
"<script>window .parent.frames['menu'].location.reloa d(true);</script>";

--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ben" wrote:
Hello

First, I know frames are not exactly the best things to be using in an asp
application, but I had no other choice. My problem is that I now have
situations where one frame must update another. Is there a way to do this?

I have tried the following code:
string script = "javascript:par ent.menu.locati on.reload(true) ;";
this.Page.Regis terStartupScrip t("reload", script);

but this does not work. Any suggestions?

May 15 '06 #5
Hi,

You will not get any exception, the browser does not throw exceptions.

do something like:

in the aspx page:
<script<
function RefreshFrame()
{
alert(parent);
alert( parent.menu);
alert( parent.menu.loc ation);
parent.menu.loc ation.reload(tr ue);
}
</script>
<body runat=server id=theBody>

in the .cs:
protected HtmlGenericCont rol theBody;

theBody.Attribu tes.Add( "onLoad", "RefreshFrame() ;");
"Ben" <ben_1_ AT hotmail DOT com> wrote in message
news:73******** *************** ***********@mic rosoft.com...
I have a method that those lines of code are called from.

The code seems to run without throwing any errors, but the frame is not
updated.

Here is the exact code:
private void refreshMenu()
{
string script = "<script>parent .menu.location. reload(true)</script>";
this.Page.Regis terStartupScrip t("reload", script);
}

Thank you again for any additional help.
Ben

"Ignacio Machin ( .NET/ C# MVP )" wrote:

"Ben" <ben_1_ AT hotmail DOT com> wrote in message
news:C2******** *************** ***********@mic rosoft.com...
> Hello
>
> First, I know frames are not exactly the best things to be using in an
> asp
> application


Why is this?

, but I had no other choice. My problem is that I now have
> situations where one frame must update another. Is there a way to do
> this?


of course, you have to use jscript and reload the other frame.
> I have tried the following code:
> string script = "javascript:par ent.menu.locati on.reload(true) ;";
> this.Page.Regis terStartupScrip t("reload", script);
>
> but this does not work. Any suggestions?


what error r u getting?

I would change it to

string script = "<script>parent .menu.location. reload(true) </script>"

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

May 15 '06 #6

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

Similar topics

40
2949
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
2332
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
25
43625
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head>
7
2993
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
56
3869
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea as how to proceed? If you need any other information then please let me know.
0
9639
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7492
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6733
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.