Click here to Skip to main content
15,917,568 members
Home / Discussions / Web Development
   

Web Development

 
QuestionOpenID, ADSF, custom LoginID Pin Pin
Super Lloyd4-Mar-19 5:09
Super Lloyd4-Mar-19 5:09 
QuestionMenu's in HTML Pin
BobInNJ2-Mar-19 19:32
BobInNJ2-Mar-19 19:32 
AnswerRe: Menu's in HTML Pin
David Mujica4-Mar-19 10:48
David Mujica4-Mar-19 10:48 
AnswerRe: Menu's in HTML Pin
V.11-Mar-19 3:09
professionalV.11-Mar-19 3:09 
AnswerRe: Menu's in HTML Pin
Bohdan Stupak15-Mar-19 5:45
professionalBohdan Stupak15-Mar-19 5:45 
QuestionVS2017 IIS Question Pin
Kevin Marois1-Mar-19 8:29
professionalKevin Marois1-Mar-19 8:29 
QuestionImageButton inside Datalist Pin
byka1-Mar-19 7:28
byka1-Mar-19 7:28 
QuestionAsp.Net Web API Call Incorrect [MODIFIED - FIXED] Pin
Kevin Marois1-Mar-19 5:57
professionalKevin Marois1-Mar-19 5:57 
QuestionSample Web application with login Form, On Login capture the IP address , Host Name etc of the User Pin
Member 1416781128-Feb-19 23:59
Member 1416781128-Feb-19 23:59 
AnswerRe: Sample Web application with login Form, On Login capture the IP address , Host Name etc of the User Pin
Peter_in_27801-Mar-19 1:54
professionalPeter_in_27801-Mar-19 1:54 
AnswerRe: Sample Web application with login Form, On Login capture the IP address , Host Name etc of the User Pin
Afzaal Ahmad Zeeshan1-Mar-19 3:46
professionalAfzaal Ahmad Zeeshan1-Mar-19 3:46 
QuestionJquery-ui - non-minified file works, minified file doesn't Pin
#realJSOP25-Feb-19 1:13
professional#realJSOP25-Feb-19 1:13 
AnswerRe: Jquery-ui - non-minified file works, minified file doesn't Pin
Richard Deeming25-Feb-19 9:05
mveRichard Deeming25-Feb-19 9:05 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
#realJSOP26-Feb-19 0:36
professional#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
professional#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
Member 225362218-Feb-19 4:07 
QuestionWhite space removed by minifier tools affects look and feel of HTML Pin
adi007me13-Feb-19 8:39
adi007me13-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
professionalF-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 

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.