TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
asha pawar
NA
66
9.8k
SelectCommand.Connection property has not been initialized.
Aug 11 2018 5:57 AM
SelectCommand.Connection property has not been initialized.
con = new SqlConnection(s);
con.Open();
SqlCommand cmd = new SqlCommand("select count (*) from login where emailadd='" + txtemail.Text + "' and pass='" + txtpass.Text + "'");
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
cmd.ExecuteNonQuery();
if(dt.Rows[0][0].ToString()=="1")
{ Response.Write("<script>alert('registration successfully.......')</script>");
Response.Redirect("Home.aspx");
}
con.Close();
Reply
Answers (
1
)
delete rows in datagridview in c#
My YouTube Channel