467,075 Members | 1,093 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

what does Inherits means

<%@ 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
Jul 21 '05 #1
  • viewed: 6364
Share:
1 Reply
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/de...sCodeModel.asp

HTH, Jakob.
"shine" wrote:
<%@ 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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by needin4mation@gmail.com | last post: by
2 posts views Thread by Robert Wagner | last post: by
19 posts views Thread by Charles Law | last post: by
2 posts views Thread by Samuel R. Neff | last post: by
1 post views Thread by shine | last post: by
32 posts views Thread by Stephen Horne | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.