Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Inherits


Message #1 by "Jan Arve Dyrnes" <jan.arve@c...> on Sun, 16 Jun 2002 20:40:10 +0200
Hallo,


I am using code behind when I develop my pages. And I am wondering a few
things.

I am using the following directive for the code behind:
<%@ Control language="c#" AutoEventWireup="false"
Codebehind="SiteHeader.ascx.cs"
Inherits="Cochrane.CManager.controls.user.SiteHeader"
src="SiteHeader.ascx.cs" %>

How should this be done. Could I just skip the Inherits attribute?
I am using src tag as well will this do anything for the performance?

Thanks,
Jan arve

Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Mon, 17 Jun 2002 07:53:45 -0400
Jan arve,

	You should just use Codebehind and Inherits and nix the Src
attribute if you're using Visual Studio .NET to develop.  The "Src"
attribute exists for non-VS.NET IDE users; apparently the VS.NET IDE does
some additional magic with the Inherits for your editing pleasure (although
what I can't say, as the HTML editing capabilities of VS.NET IDE is somewhat
primitive).

- Chuck

-----Original Message-----
From: Jan Arve Dyrnes [mailto:jan.arve@c...]
Sent: Sunday, June 16, 2002 2:40 PM
To: ASP+
Subject: [aspx] Inherits


Hallo,


I am using code behind when I develop my pages. And I am wondering a few
things.

I am using the following directive for the code behind:
<%@ Control language="c#" AutoEventWireup="false"
Codebehind="SiteHeader.ascx.cs"
Inherits="Cochrane.CManager.controls.user.SiteHeader"
src="SiteHeader.ascx.cs" %>

How should this be done. Could I just skip the Inherits attribute?
I am using src tag as well will this do anything for the performance?

Thanks,
Jan arve



  Return to Index