Jump to content

IsPost does not exist in asp.net Razor


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...