Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have this in my View (Administration/FixturesAdmin):

HTML
...
@using (Html.BeginForm("FixtureList", "Administration", FormMethod.Get))
{
					 
<th>Fixtures</th>
<td>@Html.DropDownList("Id", @compList, "--select a comp--")/td><td>@Html.DropDownList("TeamId", @teamList, "--select a team--")</td>
<td><input type="submit" value="GO"/></td>

}


Note I am trying to Call another ActionResult on the Administration controller named Administration/FixtureList and passing in the Id and TeamId parameters.

I am getting the error:

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Administration/FixtureList


Is there another way to do this?
Posted
Updated 4-May-13 1:07am
v2

1 solution

Ok, so I figured it out, I had to remove the [HttpPost] attribute :doh:
(that i didn't show in my OP :doh::doh:)
 
Share this answer
 

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