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 [httpPAGT] Public Action Result Search (String City) {Redirect Reaction ("Index", "Rent", New {Cityname = City}); }

This is an index action

  [HTTP post] Public ActionResult Index (string cityname) {}   

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>

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -