Click here to Skip to main content
15,904,288 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: PHP vs asp.net Pin
jkirkerx7-Dec-13 14:02
professionaljkirkerx7-Dec-13 14:02 
QuestionHow to convert the HTML code to a control Pin
Member 104545925-Dec-13 2:11
Member 104545925-Dec-13 2:11 
GeneralRe: How to convert the HTML code to a control Pin
thatraja5-Dec-13 4:28
professionalthatraja5-Dec-13 4:28 
AnswerRe: How to convert the HTML code to a control Pin
ZurdoDev6-Dec-13 10:22
professionalZurdoDev6-Dec-13 10:22 
QuestionHow to write a Linq 'Where' clause for nullable datetime? Pin
miss7864-Dec-13 23:03
miss7864-Dec-13 23:03 
AnswerRe: How to write a Linq 'Where' clause for nullable datetime? Pin
cdpsource5-Dec-13 1:45
cdpsource5-Dec-13 1:45 
GeneralRe: How to write a Linq 'Where' clause for nullable datetime? Pin
miss7865-Dec-13 2:12
miss7865-Dec-13 2:12 
AnswerRe: How to write a Linq 'Where' clause for nullable datetime? Pin
Richard Deeming5-Dec-13 2:10
mveRichard Deeming5-Dec-13 2:10 
miss786 wrote:
get results between two dates

miss786 wrote:
c.UploadDate == start && c.UploadDate == end

The query you've written will only return records where the UploadDate is equal to the start parameter AND equal to the end parameter. Unless you pass the same value for both parameters, this condition will never be met.

Try something like this:
C#
var data = db.databases_WICs;

if (start != null)
{
   data = data.Where(c => c.UploadDate >= start);
}
if (end != null) 
{
   data = data.Where(c => c.UploadDate <= end);
}

return data.ToList();




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: How to write a Linq 'Where' clause for nullable datetime? Pin
miss7865-Dec-13 3:33
miss7865-Dec-13 3:33 
GeneralRe: How to write a Linq 'Where' clause for nullable datetime? Pin
Richard Deeming5-Dec-13 3:46
mveRichard Deeming5-Dec-13 3:46 
GeneralRe: How to write a Linq 'Where' clause for nullable datetime? Pin
miss7865-Dec-13 23:58
miss7865-Dec-13 23:58 
QuestionMultiple web.config file in a project Pin
Milind Panchal4-Dec-13 22:57
Milind Panchal4-Dec-13 22:57 
AnswerRe: Multiple web.config file in a project Pin
Richard MacCutchan5-Dec-13 0:57
mveRichard MacCutchan5-Dec-13 0:57 
AnswerRe: Multiple web.config file in a project Pin
ZurdoDev6-Dec-13 10:23
professionalZurdoDev6-Dec-13 10:23 
AnswerRe: Multiple web.config file in a project Pin
Amir Hamza Md. Kayes7-Dec-13 8:41
professionalAmir Hamza Md. Kayes7-Dec-13 8:41 
AnswerRe: Multiple web.config file in a project Pin
joginder-banger7-Dec-13 8:53
professionaljoginder-banger7-Dec-13 8:53 
QuestionI want to display Name and code in drop down list Pin
glmjoy4-Dec-13 18:48
glmjoy4-Dec-13 18:48 
AnswerRe: I want to display Name and code in drop down list Pin
Dipti Mamidala4-Dec-13 19:00
Dipti Mamidala4-Dec-13 19:00 
Question.cmd file execution in asp.net Pin
Vishalsb4-Dec-13 18:45
Vishalsb4-Dec-13 18:45 
AnswerRe: .cmd file execution in asp.net Pin
Mycroft Holmes4-Dec-13 21:01
professionalMycroft Holmes4-Dec-13 21:01 
AnswerRe: .cmd file execution in asp.net Pin
Richard Deeming5-Dec-13 2:05
mveRichard Deeming5-Dec-13 2:05 
GeneralRe: .cmd file execution in asp.net Pin
Vishalsb5-Dec-13 2:25
Vishalsb5-Dec-13 2:25 
GeneralRe: .cmd file execution in asp.net Pin
Richard Deeming5-Dec-13 2:32
mveRichard Deeming5-Dec-13 2:32 
GeneralRe: .cmd file execution in asp.net Pin
Vishalsb5-Dec-13 2:37
Vishalsb5-Dec-13 2:37 
GeneralRe: .cmd file execution in asp.net Pin
Richard Deeming5-Dec-13 2:43
mveRichard Deeming5-Dec-13 2:43 

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.