Solved

Is there a way to use the content of an aspx as the definition of a method to override as is common on some other web application platforms?

Posted on 2003-11-25
1
187 Views
Last Modified: 2010-04-16
I can do this :

  <%@ Page language="c#" Inherits="test.WebForm1" %>

  <script runat="server">

    protected override void doSomething() {

      Response.Write("something...");

    }

  </script>

But would rather do something like this :

  <%@ Page language="c#" Inherits="test.WebForm1" override="doSomething"%>

  something...


Please note this "override" attribute is just a fantasy

as far as I know at the moment. Is there a way to use the

content of an aspx as the definition of a method to override

as is common on some other web application platforms?

0
Comment
Question by:soneal3200
1 Comment
 
LVL 10

Accepted Solution

by:
ptmcomp earned 500 total points
Comment Utility
You can override methods in the codebehind but aspx cannot be derrived.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Article by: Ivo
Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now