String conString = "Data Source = localhost:1521 / orcl; User Id =labs;Password = labs;";
OracleConnection con = new OracleConnection(conString);
con.Open();
OracleCommand cmd = new OracleCommand("insert into TEST_APEX(NAME,GENDER,CONTACT,EMAIL,CITY,COUNTRY) values('" + Name.Text+ "'," + "'" + Gender.SelectedValue + "'," + "'" + Contact.Text + "',"+"'" + Email.Text + "'," + "'" + City.Text + "'," + "'" + Country.Text + "')", con);
cmd.ExecuteNonQuery();
Name.Text="";
Gender.SelectedValue = "";
Contact.Text = "";
Email.Text = "";
City.Text = "";
Country.Text = "";
Response.Write("Employee inserted sucessfully.<br />");
con.Close();
বৃহস্পতিবার, ১৫ এপ্রিল, ২০২১
Connection String Dot Net
এতে সদস্যতা:
মন্তব্যগুলি পোস্ট করুন (Atom)
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন