If Then Else Stmt in C#
Can anyone help me to format this in C#?
Here is the code as I had it in VB:
cmd.ExecuteNonQuery()
if cmd.Parameters("ReturnValue").value = 0 then
lblStatus.text = "This Tool has been successfully added."
else
lblStatus.text = "Error! Please try agian"
end if
sqlConn.Close();
Thank you.
Tim
timothy.farrellPosted May 11, 2004, 2:37 PM
sjonesPosted May 11, 2004, 11:48 AM
timothy.farrellPosted May 11, 2004, 11:37 AM
timothy.farrellPosted May 11, 2004, 11:19 AM
Christopher ReedPosted May 11, 2004, 11:12 AM