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
191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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