Share via

Exception got

Scott Huang 3,511 Reputation points
2022-07-12T08:24:44.687+00:00

Hi,
There is error like

System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCl

due to these code. Why?
219833-image.png

Developer technologies | .NET | .NET Runtime
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments

Answer accepted by question author

Olaf Helper 47,621 Reputation points
2022-07-12T08:29:39.883+00:00

Please don't post screenshots, post the code as it instead. And the screenshot seems to be imcomplete, there is something missing at the right site.
Your SQL statement is wrong, at least the SET keyword is missing =>

update user_main set user_password=@par_pass where user_ab = @par_id  

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.