what does Inherits means

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="shine.WebForm1" %>

what does Inherits means in this tag, what is the use of it
plz explain me

regards
shine
 
When a user hits your aspx page, the runtime generates code for a class that
inherits from the class specified in the Inherits attribute In particular,
this allows the generated code to access all protected members of the class
specified in the Inherits attribute (in you code-behind file).. The code for
this class is placed in a dynamically generated assembly placed in the
directory "[System]\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files".

This link will give you a short introduction to the code model:
http://msdn.microsoft.com/library/d...y/en-us/vbcon/html/vbconWebFormsCodeModel.asp

HTH, Jakob.
 
Back
Top