Jul 17, 2013, 10:47 AM
[CLOSED] Access hidden field in code behind
Hi
I have a hidden field declared in my MVC view as follows:
Any suggestion whats wrong or missng
Thanks
I have a hidden field declared in my MVC view as follows:
@(X.Hidden().ID("hdn").Value(22))
and i try to access it in my controller using following code: var hdn= this.GetCmp<Hidden>("hdn");
but when I try to get is value using hdn.Value it gives me undefined.Any suggestion whats wrong or missng
Thanks
Last edited by Daniil; Jul 23, 2013 at 12:57 PM.
Reason: [CLOSED]