How to fix - The type or namespace name 'SqlConnection' could not be found - error in asp.net?:
"The type or namespace name ' SqlConnection ' could not be found (are you missing a using directive or an assembly reference?)" error means you just missed to add appropriate namespace for connect your sql database. To fix this issue you just add the following namespace in your page top.
using System.Data.SqlClient;
"The type or namespace name ' SqlConnection ' could not be found (are you missing a using directive or an assembly reference?)" error means you just missed to add appropriate namespace for connect your sql database. To fix this issue you just add the following namespace in your page top.
using System.Data.SqlClient;
0 comments:
Post a Comment
Share your thoughts here...