Redirecttoaction redirect my viewmodel to the action with get parameters. Since the introduction of lambda expressions within the. In this article, i would like to explain the difference among view and redirecttoaction, redirect and redirecttoroute methods. In this article, i am going to discuss redirect, redirecttoroute, and redirecttoaction in mvc application. Thanks though, because you just gave me the idea of just combining the two controllers into one to fix my issue, ill try that first thing tomorrow. How to pass multiple objects using redirecttoaction in. I am using the mobile mvc template, and i think this issue has alot to do with jquery mobile. In view controller2edit there is the form field produkt.
In controller1details xx i made a link to controller2edit this works without problems. Net framework, and its extensive use of them within asp. There are many ways for returning or rendering a view in asp. Download and execution is the same, but the sample code within the post is no longer valid. Redirecttorouteresult protected friend function redirecttoaction actionname as string, routevalues as object as redirecttorouteresult parameters. How to pass multiple objects using redirecttoaction in asp. I recently update the framework version from rc1 to last version of asp. I would like to pass multiple objects using redirecttoaction method. Mvc 4 mobile redirecttoaction and querystrings codeproject. I have an action i call from an anchor thusly, sitecontrolleractionid where id is an int. Net core, and i have an issue with redirecttoaction method, with complex object to transfer. Redirect, redirecttoroute and redirecttoaction in mvc. Redirecttorouteresult redirecttoaction string actionname, object routevalues.
1099 552 1398 1480 440 1595 1287 1355 1621 537 1148 1407 1264 903 1405 763 1391 248 694 805 338 657 891 96 173 1261 155 709 584 414 406 1139 1159 1342 911 560