Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //The below code DOES NOT work.
- function LoadTabContents(applicationID)
- {
- $("#currentTab").load('@Url.Action("TabMethod", "MyController", new { @id = applicationID })')
- }
- //The below code works fine.
- function LoadTabContents(applicationID)
- {
- $("#currentTab").load('@Url.Action("TabMethod", "MyController", new { @id = 123})')
- }
- function LoadTabContents(applicationID) {
- $("#currentTab").load('@Url.Action("TabMethod", "MyController")' + '/'+ applicationID);
- }
- public ActionResult Index()
- {
- if (Request.IsAjaxRequest())
- return PartialView("partialView");
- else
- return View();
- }
- $("#currentTab").load('@Url.Action("TabMethod", "MyController", new { @id = "[APPLICATION_ID]"}).replace("[APPLICATION_ID]",applicationID)')
Add Comment
Please, Sign In to add comment