Click here to Skip to main content
15,884,388 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 10:34
KGr288-Jul-19 10:34 
QuestionDeply Web API to IIS Pin
Kevin Marois2-Jul-19 4:22
professionalKevin Marois2-Jul-19 4:22 
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 
Is your checkbox definitely inside a <form> tag? If not, then this.form will return null.

The extra hidden input is perfectly normal. The ASP.NET forums have an explanation:
When you submit a form with a checkbox, the value is only posted if the checkbox is checked. So, if you leave the checkbox unchecked then nothing will be sent to the server when in many situations you would want false to be sent instead. As the hidden input has the same name as the checkbox, then if the checkbox is unchecked you'll still get a 'false' sent to the server.

When the checkbox is checked, the ModelBinder will automatically take care of extracting the 'true' from the 'true,false'

If you absolutely want to avoid the extra hidden input you can create your own helper method, as discussed in this StackOverflow thread[^].



"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:21
KGr2825-Jun-19 9:21 
GeneralRe: Helper Methods MVC Pin
Richard Deeming25-Jun-19 9:35
mveRichard Deeming25-Jun-19 9:35 
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 

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.