@Html.ActionLink("pSearch", "Results", null, new {target="_blank"})
doesn’t work because it doesn’t post the form data to the “Results” controller action and all that is returned is a 404 error.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you are using the default routes:
then:
will generate:
So if you expect to get anything else than 404 hopefully you have defined a
Resultsaction insideHomeController, have you?Like this:
Otherwise you can’t really expect much more than a 404 error, can you?
it’s obvious, but probably worth mentioning, that this action will expect
~/Views/Home/Results.cshtmlor~/Views/Home/Results.aspxview to be defined. You have defined it in this location, haven’t you?