This is a migrated thread and some comments may be shown as answers.

[Solved] Using hidden field as input for Ajax binding

0 Answers 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerry Beers
Top achievements
Rank 1
Jerry Beers asked on 23 Mar 2010, 08:59 PM
I'm trying to use Ajax binding for my grid like this:

.DataBinding(dataBinding => dataBinding 
                .Ajax().Select("_Binding", "MyController", new { companyId = ViewData["CompanyId"] }) 
            ) 

But instead of using ViewData, I would like to use the contents of a hidden field.  How can I pass that field to the Select method?

Thanks!
Jerry
Tags
Grid
Asked by
Jerry Beers
Top achievements
Rank 1
Share this question
or