[Solved] Must declare the scalar variable “@lblCmpUserName”


I got the solution, I made a mistake in my INSERT query.

It should be like this.

string query="INSERT INTO Company_Info2 VALUES     (@UserName,@Cmp_Name,@Comm_Country,
    @Commercial_RegNo,@Cmp_DocPath,  
    @Cmp_EstablishDate,@Cmp_Address,@IsAddress)";

solved Must declare the scalar variable “@lblCmpUserName”