Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   communication between to pages in app (http://www.velocityreviews.com/forums/t526103-communication-between-to-pages-in-app.html)

eggie5 08-01-2007 04:14 AM

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?


Patrice 08-01-2007 07:49 AM

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" <eggie5@gmail.com> a écrit dans le message de news:
1185941656.523126.80110@r34g2000hsd.googlegroups.c om...
>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?
>





All times are GMT. The time now is 11:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57