Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
Medium Priority
?
194 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 1000 total points
ID: 9817847
You can override methods in the codebehind but aspx cannot be derrived.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

636 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