protected void btnlogin_Click(object sender, EventArgs e)
{
erroruserpage.Text = "";
cn.ConnectionString = ConfigurationManager.ConnectionStrings["bs"].ToString();
cn.Open();
SqlCommand cmtest = new SqlCommand("insert into enquiryform (EmailAddr,last_login_time)values(@EmailAddr,@last_login_time)", cn);
cmtest.Parameters.AddWithValue("@EmailAddr", txtusername.Text);
cmtest.Parameters.AddWithValue("@last_login_time", DateTime.Today.ToString());
cmtest.ExecuteNonQuery();
cn.Close();
SqlCommand cmtest1 = new SqlCommand("insert into tbl_admincreation_bs(tur_emailid,last_login_time)values(@emailid,@time)",cn);
cmtest1.Parameters.AddWithValue("@emailid", txtusername.Text);
cmtest1.Parameters.AddWithValue("@last_login_time", DateTime.Today.ToString());
cmtest1.ExecuteNonQuery();
cn.Close();
cmd1.ExecuteNonQuery();