By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,564 Members | 804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,564 IT Pros & Developers. It's quick & easy.

FrameSet, Access another page's method from server?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.testFunc();

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: AcNhHmvMQ83jw9OuRqyRDKckQJkysw==
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:167255
!NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
!X-Tomcat-NG: microsoft.public.dotnet.framework.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 discussion thread is closed

Replies have been disabled for this discussion.