c# - RedirectToAction with a parameter not working -
I am trying to redirect any other action within the same controller action which is called the index This is an index action Am I missing something? You are trying to redirect an action that is searching for a matching action but There is no action in this situation, so you have to get a method to accept the redirect. If you want, you can see this public functioning index (string cityname) {} east> [httpPAGT] Public Action Result Search (String City) {Redirect Reaction ("Index", "Rent", New {Cityname = City}); }
[HTTP post] Public ActionResult Index (string cityname) {}
Comments
Post a Comment