Click here to Skip to main content
15,879,348 members

Comments by ekolis (Top 6 by date)

ekolis 17-Aug-16 10:07am View    
Is this a VB error or a SQL error? You have a smart quote inside your SQL statement (after cate and before values) which doesn't belong there.

By the way, you should never insert values from a text box directly into a database; that leaves you vulnerable to SQL injection (a simple form of hacking which can be used to read, modify, or delete your data). You should always use parameterized queries: https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.parameters(v=vs.110).aspx
ekolis 9-May-12 13:07pm View    
Hmm... well, you could always make EntryBody an abstract type...
ekolis 10-Mar-12 17:39pm View    
Oh, maybe it was that a property cannot have the same name as its enclosing class - sorry!
ekolis 10-Mar-12 17:25pm View    
To be honest, I wasn't aware your original post's syntax was correct - I thought you had to give properties of anonymous types names, e.g.
[code="C#"]
new
{
Address = row.Address.Trim()
}
[/code]
ekolis 10-Mar-12 17:23pm View    
Did you forget the parentheses after Trim?