grogo21
asked on
C# Syntax Error
Hello,
what am i doing wrong?
ReturnStatus.Value = "Error Retrieving Image - " & e.Message.ToString & " - " & imgUrl.ToString;
I get error:
Operator '&' cannot be applied to operands of type 'string' and 'method group'
ReturnStatus.Value is a string.
Thanks!
what am i doing wrong?
ReturnStatus.Value = "Error Retrieving Image - " & e.Message.ToString & " - " & imgUrl.ToString;
I get error:
Operator '&' cannot be applied to operands of type 'string' and 'method group'
ReturnStatus.Value is a string.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ReturnStatus.Value = "Error Retrieving Image - " + e.Message.ToString() + " - " + imgUrl.ToString();
1) missing () for toString function
2) use + for concatanation
3) ; semicollon in the last( although you had already in your syntex);
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ReturnStatus.Value = "Error Retrieving Image - " + e.Message.ToString + " - " + imgUrl.ToString;