Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Team,
Below are the code :

Footer page:
<pre>           <div data-role="navbar" data-iconpos="top">
           <ul>
               <li class="tab">@Html.ActionLink("Home", "Index", "Home", null, new { @class = "ui-btn ui-corner-all ui-shadow ui-mini ui-btn-icon-top ui-icon-home" })</li>
               <li class="tab">@Html.ActionLink("Usage", "Index", "Usage", null, new { @class = "ui-btn ui-corner-all ui-shadow ui-mini ui-btn-icon-top ui-icon-grid" })</li>

           </ul>
       </div>




ControllerAction:
public ActionResult Index()
      {
          ViewBag.CurrentLinkedEvse = base.CurrentLinkedEvse;
          return View();
      }


What I have tried:

I tried different different thought but did not get solution.

It is working but sometimes Usage Action is not calling
Posted
Updated 5-Jun-23 2:45am
v2
Comments
jekin77 5-Jun-23 8:57am    
i guess that you missed the "Route value" param in ActionLink() call
see for help under
https://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/ajax-actionlink-and-html-actionlink-in-mvc/
Shahin Khorshidnia 5-Jun-23 19:16pm    
It seems the Index action method in your controller is simply returning the view without passing any data to it. It is possible that the issue you are experiencing with the Usage action not being called could be related to a caching issue, or it could be related to the view rendering incorrectly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900