Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VS doesn't like class in classlib
Message
 
À
03/12/2018 13:41:31
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 5.0
OS:
Windows 7
Application:
Web
Visual Studio:
Visual Studio 2017
Divers
Thread ID:
01663999
Message ID:
01664001
Vues:
62
>Howdy peoples
>
>
>Created a common class library (ISYSCommonLib.dll) for my website and it (currently) has one process in it. Looks as such:
>
>namespace ISYSCommon
>{
> public class ISYSCommon
> {
> //**********************************
> // ChkPWFormat
> //**********************************
> static bool ChkPWFormat(string PW, ref string ErrorMsg)
>blahblahblah
> }
>}
>
>In the code behind, I've got
>
>using ISYSCommon;
>
>and it's happy with that.
>
>However, when I try to call said proc
>
>bool hasError = ISYSCommon.ChkPWFormat(PW, ref ErrorMsg);
>
>I get told that 'ChkPWFormat' does not exist in this context.
>
>Again, what am I missing/forgot.
>
>And oh, btw, it also doesn't seem to like the following in the ASPX page
>
>@ Page Language="C#" AutoEventWireup="true" CodeFile="ISYSLogin.aspx.cs" Inherits="ISYSLogin" Assembly Name="ISYSCommonLib" Import Namespace="ISYSCommon"
>
>Gives me an "Error parsing attribute" for 'assembly','name','import', and 'namespace'.
public static bool ChkPWFormat
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform