Click here to Skip to main content
14,208,523 members

Web Development

 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
#realJSOP26-Feb-19 0:36
mve#realJSOP26-Feb-19 0:36 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
Richard Deeming26-Feb-19 1:50
mveRichard Deeming26-Feb-19 1:50 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
#realJSOP26-Feb-19 5:48
mve#realJSOP26-Feb-19 5:48 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
Richard Deeming26-Feb-19 6:02
mveRichard Deeming26-Feb-19 6:02 
QuestionHelp with shopping cart Pin
Member 225362218-Feb-19 4:07
memberMember 225362218-Feb-19 4:07 
QuestionWhite space removed by minifier tools affects look and feel of HTML Pin
adi007me13-Feb-19 8:39
memberadi007me13-Feb-19 8:39 
AnswerRe: White space removed by minifier tools affects look and feel of HTML Pin
Richard Deeming13-Feb-19 10:49
mveRichard Deeming13-Feb-19 10:49 
Question[UPDATED ]MVC Web API Controller - Pass List<string> Pin Pin
Kevin Marois12-Feb-19 6:32
professionalKevin Marois12-Feb-19 6:32 
I have a controller with a parameter that is List<string>. The parameter is always null.
Controller
[HttpGet]
public List<string> GetOperatorsNotOnServer(List<string> instrumentOperators)
{
    var bl = GetBusinessLayer();
    var results = bl.GetOperatorsNotOnServer(instrumentOperators);
    return results;
}
I've tried using an array with the same result. What's the right way to pass a list of string to a controller?

UPDATE
When I changed the controller method from [HttpGet] to [HttpPost] it now works. I don't understand why, but it's now working. Can someone explain this to me?

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.


modified 12-Feb-19 12:51pm.

AnswerRe: [UPDATED ]MVC Web API Controller - Pass List<string> Pin Pin
Richard Deeming12-Feb-19 7:54
mveRichard Deeming12-Feb-19 7:54 
GeneralRe: [UPDATED ]MVC Web API Controller - Pass List<string> Pin Pin
Kevin Marois12-Feb-19 8:08
professionalKevin Marois12-Feb-19 8:08 
AnswerRe: [UPDATED ]MVC Web API Controller - Pass List<string> Pin Pin
F-ES Sitecore12-Feb-19 23:14
mveF-ES Sitecore12-Feb-19 23:14 
QuestionASP.Net MVC Serialization Problem - "No parameterless constructor defined for this object" Pin
Kevin Marois11-Feb-19 8:30
professionalKevin Marois11-Feb-19 8:30 
AnswerRe: ASP.Net MVC Serialization Problem - "No parameterless constructor defined for this object" Pin
Richard Deeming11-Feb-19 11:44
mveRichard Deeming11-Feb-19 11:44 
GeneralRe: ASP.Net MVC Serialization Problem - "No parameterless constructor defined for this object" Pin
Kevin Marois12-Feb-19 6:27
professionalKevin Marois12-Feb-19 6:27 
QuestionHow to send the 'Connection' header using HttpListenerResponse Pin
Shmuel Zang11-Feb-19 5:29
memberShmuel Zang11-Feb-19 5:29 
QuestionLocal IIS Development Question Pin
Kevin Marois7-Feb-19 11:07
professionalKevin Marois7-Feb-19 11:07 
AnswerRe: Local IIS Development Question Pin
Richard Deeming7-Feb-19 11:13
mveRichard Deeming7-Feb-19 11:13 
GeneralRe: Local IIS Development Question Pin
Kevin Marois7-Feb-19 11:37
professionalKevin Marois7-Feb-19 11:37 
GeneralRe: Local IIS Development Question Pin
Richard Deeming8-Feb-19 0:55
mveRichard Deeming8-Feb-19 0:55 
GeneralRe: Local IIS Development Question Pin
Kevin Marois11-Feb-19 5:26
professionalKevin Marois11-Feb-19 5:26 
GeneralRe: Local IIS Development Question Pin
Kevin Marois12-Mar-19 12:48
professionalKevin Marois12-Mar-19 12:48 
GeneralRe: Local IIS Development Question Pin
Richard Deeming13-Mar-19 1:33
mveRichard Deeming13-Mar-19 1:33 
GeneralRe: Local IIS Development Question Pin
Kevin Marois13-Mar-19 6:14
professionalKevin Marois13-Mar-19 6:14 
Question"The requested resource does not support http method 'GET" Pin
Kevin Marois7-Feb-19 10:05
professionalKevin Marois7-Feb-19 10:05 
AnswerRe: "The requested resource does not support http method 'GET" Pin
Richard Deeming7-Feb-19 10:28
mveRichard Deeming7-Feb-19 10:28 

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.


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190612.1 | Last Updated 15 Jun 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid