Steve Higham

Steve Higham

  • NA
  • 10
  • 2.1k

Compilation error message?

Aug 27 2014 4:34 PM

Hello

 In my Register.aspx.cs  (a Web form for new users), I am getting the following error:

Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct
 
The error refers to this line:  public static string GetConnString()
 
In particular Visual Studio does not like 'string' in the above line which it has underlined in red.
 
How can I correct that, please?
 
Many thanks. 
 
 
 

Answers (6)