0

Hi all,

can we passe data from view to contoller. I think viewdata and viewbag can use to send data from cotroler.
In my case i use telerik grid contolers with razor.

 .DataBinding(dataBinding => dataBinding.Ajax()
        .Select("_OrdersForEmployeeHierarchyAjax", "Home", new { Id = "<#= Id #>" }))

I tried to pase data from view to contoller from this code. but didnt work.
I dont know the meaning of this part

new { Id = "<#= Id #>" }

thx in advance...

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by menukadevinda
0

Hi all,

above code works fine, problem was there was not data in the database.
that's y I thought code doesnt work.

cheerss

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.