Posted on: 9/3/2012 3:29:30 AM | Views : 340

I am new to visual studio 2010 and tring to insert data in database (sql server 2008 R2 based database ).
but when create a connestion class to code,I could'd got any namespace :
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

The cs page bydefault has following:
using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Web;
Error while debug:
CS0246: The type or namespace name 'SqlConnection' could not be found (are you missing a using directive or an assembly reference?)

Go to the complete details ...