Click here to Skip to main content
11,928,919 members (44,073 online)
Rate this:
Please Sign up or sign in to vote.
See more: MVC
Hi, Problem I am facing is that when controller is called using href script for the page is loaded fine but if I load it using Html.ActionLink page doesn't loads script until I refresh the page.

Html.ActionLink("Add Info", "DriverDtlAdd", new { id = Order.ID })

         public ActionResult DriverDtlAdd(int id = -1)
             if (Session["Driver"] != null)
                 List<DriverDtl> driverDtls = new DriverDtlDAL().GetDriverDtls(id);
                 DriverDtl obj;
                 if (driverDtls.Count > 0)
                     obj = driverDtls[0];
                     obj = new DriverDtl();
                 return View(obj);
                 return RedirectToAction("DriverLogin");
Posted 3-Oct-12 23:10pm
Dhanamanikandan 15-Oct-12 3:35am
Share ur script code plz

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100