473,791 Members | 2,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FrameSet, Access another page's method from server?

Hi,
I am using a FrameSet with three frames. In server code
(c# code behind) is it possible for a page to call a
function in another page of the frameset? I suspect that
it is not possible but it sure would be nice.

Thanks for your help,
Terry
Nov 17 '05 #1
2 1993
You can call a client side javascript function in one frame from a client
side javascript function in another frame.
If you're talking about server side code then you're out of luck.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire
"terry" <te********@msn .com> wrote in message
news:05******** *************** *****@phx.gbl.. .
Hi,
I am using a FrameSet with three frames. In server code
(c# code behind) is it possible for a page to call a
function in another page of the frameset? I suspect that
it is not possible but it sure would be nice.

Thanks for your help,
Terry

Nov 17 '05 #2
Hello Terry,

Thanks for posting in the group.

Steve is right here. If we are calling client side script, surely we could achieve it. But if we call server side code, then it is not
possible. Since each page instance is created when IIS received a http request. It is not possible for us to call function of
another page since we couldn't get its instance.

However, you may try to make the function as a static function. For an example:
public static void testFunc()
{
int i = 1;
}

I tested it on my side and it works. Every page could call this static functin by using:
Webform1.testFu nc();

Hope that helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "terry" <te********@msn .com>
!Sender: "terry" <te********@msn .com>
!Subject: FrameSet, Access another page's method from server?
!Date: Tue, 12 Aug 2003 15:09:38 -0700
!Lines: 8
!Message-ID: <05************ *************** *@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNhHmvMQ83jw9O uRqyRDKckQJkysw ==
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!Path: cpmsftngxa06.ph x.gbl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1672 55
!NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!Hi,
!I am using a FrameSet with three frames. In server code
!(c# code behind) is it possible for a page to call a
!function in another page of the frameset? I suspect that
!it is not possible but it sure would be nice.
!
!Thanks for your help,
!Terry
!
Nov 17 '05 #3

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

Similar topics

8
3535
by: Hans | last post by:
Hi There, I have a page that has links with some variables and I need to open the results set in a frameset. I have tried doing this in various different ways, but still cannot get the variable passed to the relevant frames within the frameset. What is the best way of getting this done. Thanks Hans
2
5095
by: luu duong | last post by:
I know this is probably easy but here is the details. I have an asp page that is not inside a frameset. I want to post data to another asp page that is inside a frameset. So firstpage.asp has action="response.htm" target="results". response.htm... <HTML> <FRAMESET ROWS="50%,50%"> <FRAME SRC="header.asp" NAME="fTop"> <FRAME SRC="another.asp" NAME="results">
1
3939
by: ck388 | last post by:
I am trying to open a frameset in a new window......where the frame called "main" shows the file called customerGeneral.aspx. I can't get it to work though...i always get something like frames.main.location is null....seems like the frameset is not loaded before wnd.frames.location.replace(URL) is called. If i add an alert("TEST") between the window open and the frame replacement....then it works. The alert("TEST") seems to ensure that...
1
1736
by: Hartmut Dippon | last post by:
Hello, does anybody know how I can access and modify properties of my frameset within my code behind class, or is that not possible at all? I tried to find anything in the internet about this issue without any success. Can anybody give me a light on this issue? Thanks Hartmut
7
9020
by: Scott | last post by:
I need help to modify the code below to pass url variables from a framset. The click to run this will be in the mainFrame. This script works well in a non-frame page. Grabs the current url variables and adds them to my url. <script type="text/javascript"> //<!]> </script>
10
1761
by: IntraRELY | last post by:
I am building an Intranet application and is more of an "Application" vs. a typical "Web Application" or "Web Site". Using a FRAMSET seems like it has many benefits and gives mainly the feel of quicker access and a more streamlined application. However, am I sure you know of the drawbacks, for instance F5 to refresh (which loads the default page), I know I can work around this, but wanted to know what may suite me best in my scenario. I...
2
2289
by: TR | last post by:
Given the following frameset named MyFrameSet.htm: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> <html> <head><TITLE>LaunchFrame</TITLE> <FRAMESET ROWS="88%,12%"> <FRAME id='frame1' name='frame1' SRC="placeholder.htm" > <FRAME id='frame2' name='frame2' SRC="Game.aspx"> </FRAMESET> </head>
6
6671
by: Stefan Mueller | last post by:
After my web page has been loaded I'm doing some tests with a JavaScript. If I figure out that something is wrong I'd like to reload the whole frameset. With Internet Explorer and Mozilla Firefox I can reload the whole frameset with parent.location.href = "index.html"; However, this doesn't work with Opera. Does someone know how to do that with Opera?
25
2087
by: Geoff Cox | last post by:
Hello, The following <frame src="topbar-frameset.php?newVar=<?php echo $groups; ?>"> passes the value of the variable $groups from a php file to the top page in a frameset but how do I change it if $groups is an array? Cheers,
0
9669
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
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10207
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...
0
9029
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
7537
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
6776
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();...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2913
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.