Sunix 0 Report post Posted April 17 Hi! The tutorial ASP.NET Web Pages - HTML Forms does not work in Visual Studio 2019. IsPost gets error and Request[""] too. How to solve this? Quote Share this post Link to post Share on other sites
Funce 33 Report post Posted April 17 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"]; Quote Share this post Link to post Share on other sites
Sunix 0 Report post Posted April 18 Target framework: .net core 2.1 Quote Share this post Link to post Share on other sites
Funce 33 Report post Posted April 22 Ouch, Yeah you'll need to be careful here. Make sure you check out the documentation surrounding both ASP.NET Web Pages 3.2, and ASP.NET Core 2.1 but otherwise, my quoted answer will work for you, as that was in reference to asp.net core 2.1 Quote Share this post Link to post Share on other sites