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
mevada kamlesh
NA
66
29.2k
Unclosed quotation mark after the character string ''. error
May 2 2018 1:49 AM
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Unclosed quotation mark after the character string ''.
Source Error:
Line 70: SqlCommand cmd = new SqlCommand("update users set
Password='" + tbNewPass.Text + "' where Uid=" + Uid + "'", con);
Line 71: con.Open();
Line 72: cmd.ExecuteNonQuery();
Line 73: SqlCommand cmd2 = new SqlCommand("delete from ForgotPassRequests where Uid='" + Uid + "'", con);
Line 74: cmd2.ExecuteNonQuery();
Source File: e:\My Website\firstWebsite\RecoverPassword.aspx.cs Line: 72
Reply
Answers (
1
)
Unit Test WebAPi
{"Index was out of range. Must be non-negative and less than