SF Developer
SF Developer

Reputation: 5384

MVC4 naming Partial View "_XXPartial" ..what's the expected controller name?

I have the following Ajax.Actionlink

@Ajax.ActionLink("Register", "_RegisterPartial", "Home", null, new AjaxOptions { UpdateTargetId = "userLogon"})

Is the expected Controller function "_RegisterPartial" ??
If so, what's the real need to have the word Partial and the Underscore ??

Upvotes: 2

Views: 88

Answers (1)

Mike Perrenoud
Mike Perrenoud

Reputation: 67898

You are using this overload, and so the expected controller name is Home.

Upvotes: 2

Related Questions