4
Hello, I have an object that I need to pass by parameter to another Controller through the RedirectToAction
, used the TempData
but after any page change it loses the reference, know of any solution so that it does not lose the reference? Or unless it’s done otherwise?
Does Redirecttoaction accept another parameter? I need it for a controller from another area in this Redirecttoaction I forgot to mention.
– Luiz Negrini
@Luiznegrini Atualizei.
– Leonel Sanches da Silva
Perfect! Fighting Again!
– Luiz Negrini
@Luiznegrini Did it work? Could you accept the answer, for the benefit of the community?
– Leonel Sanches da Silva
@Dude, I don’t know why it didn’t work for me. It’s all right, action, parameters and so on... when I make the request he sends one
SiteTeste.Models.Checkout.CheckoutResultModel
which is the name of my object which I am passing as a string, strange not ? Then when I receive the parameter in Action creates an Exception null, did it fall into disuse ? use ASP.NET MVC5– Leonardo Bonetti
@Leonardobonetti has a signature method that needs to pass
htmlAttributes
asnull
to work. Try this.– Leonel Sanches da Silva