Jump to content

IsPost does not exist in asp.net Razor


Sunix

Recommended Posts

Hi there, do you know which version of ASP.NET you're using?

The tutorials use a specific version, details below:

 

On 4/11/2019 at 9:19 AM, Funce said:

I just had a poke around. The tutorials use ASP.NET Web Pages 3.2 apparently.

Instead of ifPost (which looks like its erroring too) try


if (HttpMethods.IsPost(Request.Method))

In terms of the Request stuff, try something like this


var num1 = Request.Form["text1"];
var num2 = Request.Form["text2"];

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...