Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Explanation of 'Inherits' in @Control directive.

$
0
0

Hi,

I am looking for a detailed explanation of the 'Inherits' attribute in @Control. I know that it refers to the assembly and optionally the code behind file of a control. But I want the control to use a strongly named assembly which is installed in GAC, so i alter it to 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LocationsDropDown.ascx.cs"
    Inherits="LocationsUserControl.LocationsDropDown, LocationsUserControl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46b8ae712345ef08"%>
Now, where does the control search for the assembly and the code behind ?



Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>