Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VS doesn't like class in classlib
Message
 
To
03/12/2018 13:41:31
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Application:
Web
Visual Studio:
Visual Studio 2017
Miscellaneous
Thread ID:
01663999
Message ID:
01664001
Views:
61
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform