1
I’m having a problem adding the attribute [HttpPost]
on my controller. I mean, I can add the attribute without problems, but when I compile and go to the registration form I just can’t access.
I get the following error:
Server Error in Application '/'.
Unable to find resource.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could not be removed, its name has been changed or is temporarily unavailable. Scan the URL and make sure it’s typed correctly.
Requested URL: /user/add
Version Information: Microsoft . NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440
Also, when I remove the attribute httppost
, I can see the registration form, but I can’t do the insert in the bank.
public Actionresult Add() { } ?
– Ryan Santos
I got it. That’s right, thank you!
– Ryan Santos