01.
02.
string
conStr =
"เป็นพวกพาทในการ Connection "
;
03.
SqlConnection con =
new
SqlConnection();
04.
con.ConnectionString = conStr;
05.
con.Open();
06.
SqlCommand com =
new
SqlCommand(
"select * from Skill_Tc where ID_Tc='"
+Session[
"ID_Tc"
]+
"'"
,con);
07.
SqlDataReader reader = com.ExecuteReader();
08.
09.
while
(reader.read())
10.
{
11.
Session[
"ID_Skill"
] = reader[
"ID_Skill"
].ToString();
12.
Session[
"ESL"
] = reader[
"ESL"
].ToString();
13.
14.
}
15.
reader.Close();
16.
con.Close();