Click here to Skip to main content
15,890,882 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Deply Web API to IIS Pin
F-ES Sitecore2-Jul-19 4:52
professionalF-ES Sitecore2-Jul-19 4:52 
GeneralRe: Deply Web API to IIS Pin
Kevin Marois2-Jul-19 5:04
professionalKevin Marois2-Jul-19 5:04 
AnswerRe: Deply Web API to IIS Pin
ZurdoDev2-Jul-19 10:28
professionalZurdoDev2-Jul-19 10:28 
GeneralRe: Deply Web API to IIS Pin
Kevin Marois2-Jul-19 10:39
professionalKevin Marois2-Jul-19 10:39 
QuestionHelper Methods MVC Pin
KGr2825-Jun-19 7:52
KGr2825-Jun-19 7:52 
GeneralRe: Helper Methods MVC Pin
Richard Deeming25-Jun-19 9:00
mveRichard Deeming25-Jun-19 9:00 
GeneralRe: Helper Methods MVC Pin
KGr2825-Jun-19 9:21
KGr2825-Jun-19 9:21 
GeneralRe: Helper Methods MVC Pin
Richard Deeming25-Jun-19 9:35
mveRichard Deeming25-Jun-19 9:35 
Javascript doesn't create global variables for elements in your page. If you want to refer to an element by ID, you have to use the document.getElementById method[^].
@Html.CheckBox("IncludeClosed", false, new { onChange = "document.getElementById('IncludeClosed').submit()"})

But if your checkbox is outside of your form, it's not going to be sent back to the server. Only the input elements within the form will be submitted with the form.

You might be able to use the form attribute[^] to work around that. But it's not supported in any version of Internet Explorer or Microsoft Edge. If you need to support either of those browsers, you'll have to move the checkbox inside the form - at which point, your original code will start working.



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

GeneralRe: Helper Methods MVC Pin
KGr2825-Jun-19 9:58
KGr2825-Jun-19 9:58 
GeneralRe: Helper Methods MVC Pin
KGr2825-Jun-19 10:37
KGr2825-Jun-19 10:37 
QuestionMSBUILD warning MSB3245 and MSB3243 Pin
#realJSOP25-Jun-19 5:33
mve#realJSOP25-Jun-19 5:33 
QuestionTest Driven Dev in MVC5 Pin
#realJSOP24-Jun-19 4:37
mve#realJSOP24-Jun-19 4:37 
AnswerRe: Test Driven Dev in MVC5 Pin
Afzaal Ahmad Zeeshan26-Jun-19 0:05
professionalAfzaal Ahmad Zeeshan26-Jun-19 0:05 
GeneralRe: Test Driven Dev in MVC5 Pin
#realJSOP26-Jun-19 0:50
mve#realJSOP26-Jun-19 0:50 
GeneralRe: Test Driven Dev in MVC5 Pin
Afzaal Ahmad Zeeshan26-Jun-19 3:20
professionalAfzaal Ahmad Zeeshan26-Jun-19 3:20 
GeneralRe: Test Driven Dev in MVC5 Pin
#realJSOP26-Jun-19 5:08
mve#realJSOP26-Jun-19 5:08 
GeneralRe: Test Driven Dev in MVC5 Pin
F-ES Sitecore27-Jun-19 5:44
professionalF-ES Sitecore27-Jun-19 5:44 
GeneralRe: Test Driven Dev in MVC5 Pin
#realJSOP27-Jun-19 6:12
mve#realJSOP27-Jun-19 6:12 
QuestionOutlook Current User Context Pin
Member 1106951823-Jun-19 22:08
Member 1106951823-Jun-19 22:08 
AnswerRe: Outlook Current User Context Pin
Richard MacCutchan23-Jun-19 22:47
mveRichard MacCutchan23-Jun-19 22:47 
QuestionASP.Net Web API2 in IIS Pin
Kevin Marois18-Jun-19 8:10
professionalKevin Marois18-Jun-19 8:10 
AnswerRe: ASP.Net Web API2 in IIS Pin
Richard Deeming18-Jun-19 8:44
mveRichard Deeming18-Jun-19 8:44 
GeneralRe: ASP.Net Web API2 in IIS Pin
Kevin Marois18-Jun-19 8:53
professionalKevin Marois18-Jun-19 8:53 
GeneralRe: ASP.Net Web API2 in IIS Pin
Richard Deeming18-Jun-19 10:52
mveRichard Deeming18-Jun-19 10:52 
GeneralRe: ASP.Net Web API2 in IIS Pin
Kevin Marois18-Jun-19 10:54
professionalKevin Marois18-Jun-19 10:54 

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.