Click here to Skip to main content
15,898,036 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAccess Database, ASP/C# Drop Down List populating a Drop Down List Pin
WickedFooker17-May-13 15:00
WickedFooker17-May-13 15:00 
AnswerRe: Access Database, ASP/C# Drop Down List populating a Drop Down List Pin
Richard Deeming20-May-13 2:02
mveRichard Deeming20-May-13 2:02 
GeneralRe: Access Database, ASP/C# Drop Down List populating a Drop Down List Pin
WickedFooker20-May-13 5:34
WickedFooker20-May-13 5:34 
AnswerRe: Access Database, ASP/C# Drop Down List populating a Drop Down List Pin
cyber_addicted21-May-13 0:53
cyber_addicted21-May-13 0:53 
Questionhow to write sql's not in operator using linq to entities 4.0 Pin
indian14317-May-13 7:14
indian14317-May-13 7:14 
AnswerRe: how to write sql's not in operator using linq to entities 4.0 Pin
R. Giskard Reventlov20-May-13 6:11
R. Giskard Reventlov20-May-13 6:11 
QuestionEF:How to link Expressions in order to generate an OR/AND Linq query Pin
Clodetta del Mar17-May-13 1:44
Clodetta del Mar17-May-13 1:44 
Answer[solved?]the concrete calling...the priority problem Pin
Clodetta del Mar17-May-13 2:51
Clodetta del Mar17-May-13 2:51 
once more I´ve forgotten something...namely the calling of that expression:
C#
Expression<Func<Users_UserAccount, bool>> whereLogonName = LinqExtender.DynamicLinq.BuildOrTree<Users_UserAccount, string>(LogonName, Users_Users => Users_Users.LogonName);
Expression<Func<Users_UserAccount, bool>> whereLogonPW = LinqExtender.DynamicLinq.BuildAndTree<Users_UserAccount, int>(siteparam, Users_Users => Users_Users.LogonPW);

Users_UserAccount medProOrignal = ce.Users_UserAccount.Where(whereLogonName).Where(whereLogonPW ).First();

but I found out, that there´s a 'priority-problem', when using .First();
but that´s so obvious...
consider the following:
two users:
user a:
UID:1 logonname: gargamel PW: a
user b:
UID:2 logonname: gargamel PW: b

actually I've overseen the fact that I was using .First()
.First() will simply take UID1 becoz it´s the first one found...
now I've tried it with .Single() and it returns the desired user...
but what left me dumb is the fact, that I can´t see the way this query get´s prioritized in terms of params... Confused | :confused:


actually, I hope my question is considerably clear and that I forgot nothing... D'Oh! | :doh: D'Oh! | :doh: D'Oh! | :doh:
[eeedit]
I "profiled" it in SQLM MGMT Profiler but i´m veeery weak in SQL... no clue at all.. Thumbs Down | :thumbsdown:

modified 17-May-13 9:21am.

QuestionHow to use different fonts? Pin
Jassim Rahma16-May-13 10:15
Jassim Rahma16-May-13 10:15 
AnswerRe: How to use different fonts? Pin
Richard MacCutchan16-May-13 21:20
mveRichard MacCutchan16-May-13 21:20 
AnswerRe: How to use different fonts? Pin
Jitendra Parida - Jeetu20-May-13 1:02
Jitendra Parida - Jeetu20-May-13 1:02 
AnswerRe: How to use different fonts? Pin
wikizhao27-May-13 21:18
wikizhao27-May-13 21:18 
QuestionHow to Open Datalist Link Button in New Tab in browser Pin
Member 998801815-May-13 21:35
Member 998801815-May-13 21:35 
AnswerRe: How to Open Datalist Link Button in New Tab in browser Pin
Richard Deeming16-May-13 1:32
mveRichard Deeming16-May-13 1:32 
Questionc# code to download .xlsm file Pin
Sachin Adsul15-May-13 21:20
Sachin Adsul15-May-13 21:20 
AnswerRe: c# code to download .xlsm file Pin
ZurdoDev21-May-13 10:26
professionalZurdoDev21-May-13 10:26 
QuestionPlease Help With Various Methods of Optical Character Recognition which can be used for successful Conversion?? Pin
Kaushal Behere15-May-13 20:52
professionalKaushal Behere15-May-13 20:52 
QuestionHtml to PDF Pin
Denzil_Sdn15-May-13 19:56
Denzil_Sdn15-May-13 19:56 
AnswerRe: Html to PDF Pin
Mohammed Hameed18-May-13 10:59
professionalMohammed Hameed18-May-13 10:59 
GeneralRe: Html to PDF Pin
Denzil_Sdn19-May-13 20:37
Denzil_Sdn19-May-13 20:37 
GeneralRe: Html to PDF Pin
Mohammed Hameed19-May-13 20:46
professionalMohammed Hameed19-May-13 20:46 
Questionasp.net with silverlight Pin
junkyy15-May-13 11:01
junkyy15-May-13 11:01 
AnswerRe: asp.net with silverlight Pin
ZurdoDev21-May-13 10:28
professionalZurdoDev21-May-13 10:28 
QuestionChat Box Component Pin
Member 1005410915-May-13 2:33
Member 1005410915-May-13 2:33 
AnswerRe: Chat Box Component Pin
Jasmine250115-May-13 4:58
Jasmine250115-May-13 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.