ithighway — 2013-12-31T12:05:41-05:00 — #1
I am new to asp.net
I have a website where first line of web user control is:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs" Inherits="PERLS.User_Controls.BeforeLogin.Login" %>
Can anyone explain the "Inherits" part in above line?
mittineague — 2014-01-01T01:32:43-05:00 — #2
@NightStalker_DNS; would know better than I, but my guess is it's "inherits" as in OOP class object inheritance. i.e. the code inherits methods and properties from the class.
Do you see an
ithighway — 2014-01-01T03:22:35-05:00 — #3
The problem is when I make any changes to Login.ascx.cs file, it does not take affect. Even if I remove all code in login.ascx.cs file the site still works fine. Please see attached screenshot below:
endermb — 2014-01-02T06:00:31-05:00 — #4
"Inherits" will point to the code-behind class that the controls are trying to reference. Your code behind file will most likely have a namespace of "PERLS.User_Controls.BeforeLogin" and a class name of "Login".