ASP.NET MVC Ajax.ActionLink's weird behavior

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-03-20T02:38:44Z Indexed on 2010/03/20 2:41 UTC
Read the original article Hit count: 482

Filed under:
|
|

I'm doing the simplest ajax request possible:

public ActionResult SayHello()
    {
        return Content("YYAAAY");
    }

//////////

<div id="Div1">
    <%= Ajax.ActionLink("SAY HELLO", "SayHello", new AjaxOptions { UpdateTargetId = "Div1" })%>
    </div>

It works when I start an empty ASP.NET MVC project, but when I use it in my current project, it displays the whole page recursively instead of YYAAAY phrase only.

Where might be the problem?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc