Another problem occured in my DNN MVC development journey. I am wondering whether this is a bug/missing feature of I've made a mistake.
I will try to explain the problem and my attempts to resolve/bypass it.
What do I want to achieve?
I want to execute an action in my controller by calling an AJAX post. So far it works.
However, when I try to return some variables to my View, it doesn't only return the variables. It adds an whole HTML-source to the response.
My method returns an ActionResult (I tried JsonResult and something different: HttpResponseMessage).
The program itself is working and does return the json-message.
The View below isn't my final View, but's meant to test.
Does anybody know why it is returning an whole HTML-source instead of just the specified variables? Is this a bug, or something I am able to fix? Thank you very much for your time.