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?

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?

soneal3200Asked:
Who is Participating?
 
ptmcompConnect With a Mentor Commented:
You can override methods in the codebehind but aspx cannot be derrived.
0
All Courses

From novice to tech pro — start learning today.