473,396 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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?

Aug 1 '07 #1
1 1079
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" <eg****@gmail.coma écrit dans le message de news:
11*********************@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?

Aug 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Chris | last post by:
Is there a preferred method for having different scripts on different computers communicate with each other? For example, script A could tell script B that it is done with a certain process. ...
5
by: Andreas Thiele | last post by:
Hi, can anybody point me to some reading on how communication between the webserver and php is established? I'd like to make php available to my own webserver software. Andreas
3
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
0
by: Liu Guidong | last post by:
Dear friends, I have a question about the communication between C# and C++. Can anyone help me ?? I have written a C# dll fies named "TestFordll2.dll",as fllow: using System; namespace...
1
by: Liu Guidong | last post by:
Dear friends, I have a question about the communication between C# and C++. Can anyone help me ?? I have written a C# dll fies named "TestFordll2.dll",as fllow: using System; namespace...
1
by: Tomas Huoge | last post by:
How can I uses serial communication in ASP.NET web Pages? Many thanks. Tomas Huoge
10
by: Girish | last post by:
Ok, Ive been thinking about this problem for a while. I have 30 odd aspx pages (already built) on my website that I need to have some validation occur before the page should load. The validation...
2
by: Zetatec2 | last post by:
I have a site I am making. It contains one master page that has two ASP label controls and about sixteen ASP button controls on it. Then I have sixteen content or slave pages. The user clicks on...
0
by: mohitjaitly | last post by:
Hi, I need to ask how can I develop web pages in ASP.NET and use them as COMPONENTS and call them or directly use them from some other APPLICATION.I should be able to use design and functionality of...
5
by: AeonOfTime | last post by:
Let's assume a web application (in this case a browser-based game) with a custom HTTP server built on PHP, and a client also built on PHP. The client uses the server to access and change data. Even...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.