I am devloping an app using jqueyrmobile
framework in .NET MVC3. I am creating a ListView
using a loop
<ul data-role="listview">
@foreach (var item in Model)
{
<li><a href="@Url.Action("Index","Transaction",item)">
<div style="vertical-align:text-top;padding:1px;font-size:large">
@Html.DisplayFor(modeItem => item.title)
<span style="font-size:small;text-align:right">
@Html.DisplayFor(modeItem => item.balance)
[email protected](modeItem => item.currency)
</span>
</div>
</a>
</li>
}
</ul>
This works fine and I am getting object item
in Index
Action of Transaction
Controller; but for similer code for another page
<ul data-role="listview">
@foreach (var item in Model)
{
<li><a href="@Url.Action("optionDialog",item)" data-rel="dialog" >
<div>@Html.DisplayFor(modeItem => item.brTitle)</div></a></li>
}
</ul>
I am getting null item
object in optionDialog
action. Though it made call to Action, the object is null. Any one please help me.
I got the solution there is microsoft bug which dont work for some time to call to its own controller action after replacing
with
i got my result