Click here to Skip to main content
15,887,135 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Pin
SnehasishN20-Nov-13 22:42
professionalSnehasishN20-Nov-13 22:42 
GeneralRe: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Pin
kirthikirthi20-Nov-13 22:46
kirthikirthi20-Nov-13 22:46 
Questionasp.net Pin
Member 1026351919-Nov-13 21:14
Member 1026351919-Nov-13 21:14 
AnswerRe: asp.net Pin
Mycroft Holmes19-Nov-13 21:32
professionalMycroft Holmes19-Nov-13 21:32 
QuestionRe: asp.net Pin
Richard MacCutchan19-Nov-13 21:55
mveRichard MacCutchan19-Nov-13 21:55 
QuestionFromUri Method - API Pin
miss78619-Nov-13 0:38
miss78619-Nov-13 0:38 
AnswerRe: FromUri Method - API Pin
Richard Deeming19-Nov-13 2:12
mveRichard Deeming19-Nov-13 2:12 
GeneralRe: FromUri Method - API Pin
miss7865-Dec-13 23:55
miss7865-Dec-13 23:55 
Hi Richard,

Thank you so much for your help. I am trying to create a query string URL using web API which client can use call certain parameters.

I am using the following method below to pass parameters into the query string but I can not get to filter correctly. If search by name=storm and price_type=talk, it produces results with all talk categories instead of filtering by name.storm + price_type.talk.

C#
public HttpResponseMessage Get([FromUri] Query query)
      {
          var data = from c in db.database_BWICs
                     where c.Name == query.name ||
                    c.CUSIP == query.cusip ||
                    c.ISINs == query.isin ||
                     c.Cover == query.price_type
                     select c;
          if (data == null)
          {
              var message = string.Format("No database_WICs was found");
              return Request.CreateErrorResponse(HttpStatusCode.NotFound, message);
          }
          return Request.CreateResponse(HttpStatusCode.OK, data);
      }


api/data?name=STORM%202012-2%20A1&price_type=talk --> query string

Is there a way to create a filter using the Linq query, instead of using oData filters?

any help would be very much appreciated.
GeneralRe: FromUri Method - API Pin
Richard Deeming6-Dec-13 1:33
mveRichard Deeming6-Dec-13 1:33 
QuestionSuggest me a website in asp dotnet Pin
Member 1041107418-Nov-13 23:15
Member 1041107418-Nov-13 23:15 
AnswerRe: Suggest me a websit in asp dotnet Pin
Chris Quinn18-Nov-13 23:22
Chris Quinn18-Nov-13 23:22 
AnswerRe: Suggest me a website in asp dotnet Pin
Dineshshp18-Nov-13 23:39
professionalDineshshp18-Nov-13 23:39 
AnswerRe: Suggest me a website in asp dotnet Pin
Chris Quinn19-Nov-13 0:42
Chris Quinn19-Nov-13 0:42 
AnswerRe: Suggest me a website in asp dotnet Pin
thatraja19-Nov-13 1:09
professionalthatraja19-Nov-13 1:09 
AnswerRe: Suggest me a website in asp dotnet Pin
Abhinav S19-Nov-13 16:56
Abhinav S19-Nov-13 16:56 
QuestionDropdown list based on another dropdown list. Pin
Member 1040983818-Nov-13 10:20
Member 1040983818-Nov-13 10:20 
AnswerRe: Dropdown list based on another dropdown list. Pin
Richard Deeming19-Nov-13 2:07
mveRichard Deeming19-Nov-13 2:07 
QuestionASP.NET QUESTION PERSONAL PROJECT Pin
cserakeshcseranjan18-Nov-13 4:30
cserakeshcseranjan18-Nov-13 4:30 
AnswerRe: ASP.NET QUESTION PERSONAL PROJECT Pin
Joshua Omundson18-Nov-13 4:58
Joshua Omundson18-Nov-13 4:58 
AnswerRe: ASP.NET QUESTION PERSONAL PROJECT Pin
thatraja18-Nov-13 4:59
professionalthatraja18-Nov-13 4:59 
QuestionHow does IIS recognize that request is for MVC Controllers or webforms Pages? Pin
sanjay24365718-Nov-13 4:08
sanjay24365718-Nov-13 4:08 
QuestionJanus GridEx + asp.net Pin
jojoba201118-Nov-13 4:00
jojoba201118-Nov-13 4:00 
QuestionRe: Janus GridEx + asp.net Pin
thatraja18-Nov-13 4:32
professionalthatraja18-Nov-13 4:32 
QuestionRe: Janus GridEx + asp.net Pin
jojoba201119-Nov-13 18:05
jojoba201119-Nov-13 18:05 
QuestionADO.NET Pin
rock_monu17-Nov-13 21:58
rock_monu17-Nov-13 21: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.