I have the following controller:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MvcApplication1.Controllers
{
public class TestController : Controller
{
public ActionResult Test()
{
return View();
}
public string AjaxTest()
{
return "Some random text";
}
}
}
I have the following View:
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<html>
<head runat="server">
<title>Test</title>
<script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
</head>
<body>
<%= Ajax.ActionLink("Ajax Test", "AjaxTest", new AjaxOptions{UpdateTargetId="testtarget" }) %>
<div id="testtarget">Test Div</div>
</body>
</html>
When I click the action link in IE the controller code runs but the div is NOT updated. Do it in ANY other browser and it works just fine. Is this (yet another) known problem/bug with IE?? Or am I doing something wrong?