6
Answers

Compilation error message?

Steve Higham

Steve Higham

10y
928
1

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)
0
Crish
NA 3.7k 76.4k 14y
hi

use datagridview's Rowdatabound event for calculating amount. then store it in textbox which u have taken outside of the grid.

you can find each label control values in Rowdatabound event . Sum of there and finally store value in textbox.

Don't forget to Mark Do you like this Answer
 that solved your problem!