InvalieCastException

Anything that doesn't fall into the defect or enhancement categories

InvalieCastException

Postby jackhappy on Fri Aug 24, 2007 4:38 pm

string password = EnCodeStr(code_pass.Value.Trim());
string email = username.Value.Trim();
Fwy.Bll.users user = new Fwy.Bll.users();
user.Where.Email.Value = email;
user.Where.Email.Operator = WhereParameter.Operand.Equal;

// user.Where.Password.Conjuction = WhereParameter.Conj.And;
// user.Where.Password.Value = passwd;
// user.Where.Password.Operator = WhereParameter.Operand.Equal;
user.Query.Load();

if replace // ,error occorred,why?
jackhappy
Lurker
 
Posts: 1
Joined: Fri Aug 24, 2007 3:45 pm

Postby dnparsons on Sat Aug 25, 2007 6:57 am

The default conjunction is AND. You can drop that line. Your first line has \"password\". In commented section is \"passwd\". Is this a compiler error?

If not, we'll need to know which line is causing the error, what the error msg is, and a stack trace.
David Neal Parsons
EntitySpaces
User avatar
dnparsons
Lieutenant General
 
Posts: 292
Joined: Sun Jan 09, 2005 2:10 pm
Location: Miami, Florida


Return to General Questions or Comments

Who is online

Users browsing this forum: No registered users and 0 guests

cron