Click here to Skip to main content
15,907,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Uploading an Image Pin
Pratik Bhuva1-Nov-13 4:14
professionalPratik Bhuva1-Nov-13 4:14 
Questioninterview questions Pin
ananta117-Oct-13 7:46
ananta117-Oct-13 7:46 
AnswerRe: interview questions Pin
Richard MacCutchan17-Oct-13 7:59
mveRichard MacCutchan17-Oct-13 7:59 
AnswerRe: interview questions Pin
R. Giskard Reventlov17-Oct-13 8:07
R. Giskard Reventlov17-Oct-13 8:07 
AnswerRe: interview questions Pin
thatraja17-Oct-13 21:54
professionalthatraja17-Oct-13 21:54 
AnswerRe: interview questions Pin
Abhinav S19-Oct-13 21:20
Abhinav S19-Oct-13 21:20 
QuestionStretching an Image in a Table cell (IE7) Pin
Blikkies17-Oct-13 4:54
professionalBlikkies17-Oct-13 4:54 
QuestionFiltering - web api c# Pin
miss78617-Oct-13 0:01
miss78617-Oct-13 0:01 
Dear all,

I am currently an novice user in the asp.net environment and would like to request assistance on the following topic below:

I am using 'c.Cover' as field name from database table, which has three types (i.e. talk, cvr, trd). I would like to filter my query, so it prints out yesterday's data with only cvr and trd types only.

from the code below, I am unable to filter my data using the following link below. I still not getting the correct response output from the client side.

http://localhost:38853/api/test?type=CVR&TRD</a>[^]

public IEnumerable<database_WICs> GetPriceType(string type)
        {
            DateTime yesterday = DateTime.Today.AddDays(-2);

            var data = from c in db.database_WICs
                       where c.UploadDate <= yesterday &&
                       c.Cover == type &&
                       c.Cover == type
                       select c;
            return data.ToList();
        }


Any help would be much appreciated.

Many thanks for your time and help.
AnswerRe: Filtering - web api c# Pin
Bernhard Hiller17-Oct-13 2:29
Bernhard Hiller17-Oct-13 2:29 
AnswerRe: Filtering - web api c# Pin
Kornfeld Eliyahu Peter17-Oct-13 2:30
professionalKornfeld Eliyahu Peter17-Oct-13 2:30 
GeneralRe: Filtering - web api c# Pin
miss78617-Oct-13 3:51
miss78617-Oct-13 3:51 
GeneralRe: Filtering - web api c# Pin
Kornfeld Eliyahu Peter17-Oct-13 4:23
professionalKornfeld Eliyahu Peter17-Oct-13 4:23 
GeneralRe: Filtering - web api c# Pin
miss78617-Oct-13 4:39
miss78617-Oct-13 4:39 
QuestionRe: Filtering - web api c# Pin
Kornfeld Eliyahu Peter17-Oct-13 7:13
professionalKornfeld Eliyahu Peter17-Oct-13 7:13 
SuggestionRe: Filtering - web api c# Pin
Richard Deeming17-Oct-13 4:30
mveRichard Deeming17-Oct-13 4:30 
QuestionDisplaying "File Name: 002.txt" in Hebrew Pin
civic06016-Oct-13 4:42
civic06016-Oct-13 4:42 
AnswerRe: Displaying "File Name: 002.txt" in Hebrew Pin
Kornfeld Eliyahu Peter16-Oct-13 5:57
professionalKornfeld Eliyahu Peter16-Oct-13 5:57 
GeneralRe: Displaying "File Name: 002.txt" in Hebrew Pin
civic06016-Oct-13 9:46
civic06016-Oct-13 9:46 
QuestionAdd dynamic pages to Google Search Pin
Blikkies16-Oct-13 0:53
professionalBlikkies16-Oct-13 0:53 
AnswerRe: Add dynamic pages to Google Search Pin
Richard Deeming16-Oct-13 1:41
mveRichard Deeming16-Oct-13 1:41 
GeneralRe: Add dynamic pages to Google Search Pin
Blikkies16-Oct-13 2:03
professionalBlikkies16-Oct-13 2:03 
GeneralRe: Add dynamic pages to Google Search Pin
Richard Deeming16-Oct-13 2:10
mveRichard Deeming16-Oct-13 2:10 
GeneralRe: Add dynamic pages to Google Search Pin
Blikkies16-Oct-13 2:39
professionalBlikkies16-Oct-13 2:39 
QuestionHow to draw horizontal line using Gios Pdf in C#,ASP.NEt Pin
Member 1020836815-Oct-13 2:26
Member 1020836815-Oct-13 2:26 
QuestionDashboard in ASP.NET Pin
ashu200114-Oct-13 19:19
ashu200114-Oct-13 19:19 

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.