communication between to pages in app

E

eggie5

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?
 
P

Patrice

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top