DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 01 Aug 2007 04:14:16 -0000,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    eggie5
          2    Patrice http://www.chez.com/scribe/


communication between to pages in app   
I have two pages in my asp.net application: default.aspx.cs and
test.aspx.cs. How can I call methods from test.aspx.cs from
default.aspx.cs. I can't seem to be able to do this. The aspx.cs files
dont seem to be part of a namespace or anything. How can I do this?
Date:Wed, 01 Aug 2007 04:14:16 -0000   Author:  

Re: communication between to pages in app   
If you call code from multiple pages I would put this in a separate class. 
Add a new class that will be added to app_code to clearly denote its wide 
scope.

Another option would be perhaps to instantiate the page (or expose this as a 
shared member if you don't need the page to be instantiated, the namespace 
is ASP, use the boject browser to locate what you need) but once again it 
doesn't really make sense IMO from an architectural point of view...
--
Patrice

"eggie5"  a crit dans le message de news: 
1185941656.523126.80110@r34g2000hsd.googlegroups.com...

>I have two pages in my asp.net application: default.aspx.cs and
> test.aspx.cs. How can I call methods from test.aspx.cs from
> default.aspx.cs. I can't seem to be able to do this. The aspx.cs files
> dont seem to be part of a namespace or anything. How can I do this?
> 
Date:Wed, 1 Aug 2007 09:49:39 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us