[Solved] Must declare the scalar variable “@lblCmpUserName”
[ad_1] 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)”; [ad_2] solved Must declare the scalar variable “@lblCmpUserName”