SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Master2"].ConnectionString);
DataClassesDataContext db = new DataClassesDataContext(con);
var q = from empname in db.GetTable()
select empname.empid ;
GridView1.DataSource = q;
GridView1.DataBind();