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

[Solved] Problem with databinding variables <#= InvoiceId #>

1 Answer 47 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.
Alan Mosley
Top achievements
Rank 1
Alan Mosley asked on 07 Feb 2012, 05:16 PM
When using a varable in databinding such as is done in the demo like this
.Select("_OrdersForEmployeeHierarchyAjax", "Grid", new { employeeID = "<#= EmployeeID #>" }))

my url comes out like
 /franchisees/order/GetJournals/%3C%23%3dInvoiceId%23%3E
               

The <#= InvoiceId #> varable is not rendering correctly?
Anyone know why this would happen?

1 Answer, 1 is accepted

Sort by
0
Alan Mosley
Top achievements
Rank 1
answered on 14 Feb 2012, 07:08 AM
Had a fesh look at the problem today and solved it straight away.i was using
id = <# =EmployeeID #> of cause this was being picked up by the defaut route
changed to
EmployeeID = <# =EmployeeID #>
and all is working
Tags
Grid
Asked by
Alan Mosley
Top achievements
Rank 1
Answers by
Alan Mosley
Top achievements
Rank 1
Share this question
or