Which one is the better way for a asp.net application in which i need to call methods from multiple pages? Or is there a third even better possibility?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Either works just fine. Another alternative is to build your own base class for pages, and put the common functionality there. With that approach, you can make the methods virtual and allow concrete classes to override functionality where appropriate.