Html.hiddenfor does not return value

Posted by jackma1210 on Stack Overflow See other posts from Stack Overflow or by jackma1210
Published on 2010-05-24T09:39:11Z Indexed on 2010/05/24 9:41 UTC
Read the original article Hit count: 2303

Hi I have a template partial view, which used to render a model named VerificationCode, this model has a element 'CaptchaGeneratedText' which is hidden in the view and set value by Html.HiddenFor(m=>m.CaptchaGeneratedText, captchaText), the problem is when view post, in the model validation the value of element 'CaptchaGeneratedText' is null, but it should not be as varant 'captchaText' has some value. meanwhile, the other element 'CaptchaUserInput' of this model does have value. Anybody have experienced similiar problem?

Sorry I was unable to submit script file.

© Stack Overflow or respective owner

Related posts about mvc

Related posts about templates