I’m making serious asp.net mvc ajax request using Ajax.ActionLink.
But requesting same url from server i may fill different html container (UpdateTargetId).
Everything is ok, but i need to know serverside what view should i return.
I watched fiddler and didn’t find anything about UpdateTargetId value.
Then i realized that i can add some data in OnBegin javascript method but i don’t know UpdateTargetId there too.
So now i’m using hack with different http methods (like post and get) but i’d like to find less hacky solution.
It’s not complete and still hacky but maybe the only way
in jquery.unobtrusive-ajax.js just changed
to
or add another push in asyncRequest method:
I don’t want to change unobtrusive code and changed Ajax.ActionLink to custom ActionLink that use different flag to fire ajax request (for example a[data-customajax=true]”) to separate them.
If someone have questions for these answer i would be glad to help you!