![]() |
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? |
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.