Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript is not working with Response.RedirectToRoute();
When I redirect with Response.Redirect() my JavaScript code works.

Any suggestion for me please.
Posted
Updated 27-Dec-13 7:49am
v2
Comments
Nelek 27-Dec-13 14:31pm    
Don't think we can read minds or do astral projections to see your monitor. If you need help, the least you could do is to add some relevant code to your question or to explain your problem in such a way, that the users of CP can understand it. Otherwise, nobody will be able to help you.

Please use the "improve question" and add relevant information or a piece of code envolved. There are thousands of ways to screw things up, how are we supposed to know which one did you choose?

I recommend you to read:
What have you tried?[^]
How to ask a question?[^]

1 solution

RedirectToRoute() looks into the Route table that is is defined in global.asax
according to given definition in Map.Route, then redirect to that controller/action defined in that route. This also make a new request like RedirectToAction().

For more clear understanding refer following link

http://www.dotnet-tricks.com/Tutorial/mvc/4XDc110313-return-View()-vs-return-RedirectToAction()-vs-return-Redirect()-vs-return-RedirectToRoute().html[^]

Hope This Helps!!!

do not forget to mark as answer and to upvote also
 
Share this answer
 
v2
Comments
Er. Tushar Srivastava 27-Dec-13 16:32pm    
Nice pointers :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900