SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict itHighway's Avatar
    Join Date
    Jan 2008
    Location
    GUJ
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inherits in first line of Web User Control

    I am new to asp.net
    I have a website where first line of web user control is:
    PHP Code:
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs"  Inherits="PERLS.User_Controls.BeforeLogin.Login" %> 
    Can anyone explain the "Inherits" part in above line?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,048
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    @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
    import PERLS.User_Controls.BeforeLogin.Login
    anywhere?

  3. #3
    SitePoint Addict itHighway's Avatar
    Join Date
    Jan 2008
    Location
    GUJ
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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:
    screenshot.gif

  4. #4
    Community Advisor ULTiMATE's Avatar
    Join Date
    Aug 2003
    Location
    Bristol, United Kingdom
    Posts
    2,160
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)
    "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".


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •