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...

Hi all,

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


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.