how to supply a value in redirectToAction to some other method using asp.net mvc? -


i want supply value in redirecttoaction() other method. requirement this. al registering new user.on clicking next button, have register new user redirect other page registration details.so, here have supply value in redirecttoaction registration details in new page.can me in doing this??

my form this:-

new user reg.:- email password

next 

so, on clicking next button, can register new user can't supply value. how can this?? appreciated.

in next form, have registration details.i can them can't first supply value method.

you can pass details using query string like

return this.redirecttoaction   ("actionname", new { yourvalue = "querystringvalue" });  return: /controller/actionname?value1=querystringvalue 

i assuming there's no route parameter named yourvalue.

hope understand , works you.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -