none
ASP.NET Core - Simpler ASP.NET MVC Apps with Razor Pages RRS feed

  • General discussion

  • Steve Smith explains why you shouldn’t write off Razor Pages as just a “training wheels” feature meant for hobbyist programmers. Learn how Razor Pages (alone or in combination with traditional controller-and-view pages) can improve the design of your ASP.NET Core applications.

    Read this article in the September 2017 issue of MSDN Magazine

    Friday, September 1, 2017 5:56 PM
    Owner

All replies

  • Fig.7 should start with @page directive as stated earlier for first line ??

    Sunday, September 24, 2017 7:38 AM
  • Good writeup of core Razor Page functionality. One question is there an example of making an AJAX call back to a Razor Page? Or do have to write a Web API controller and call that?
    Monday, September 25, 2017 8:40 PM
  • Just before Figure 8 there's a sentence that says "The [BindProperty] attribute also works on Controllers."  Based on what I found at this bug it appears the correct attribute name should be [BindProperties].

    https://github.com/aspnet/Mvc/issues/7686

    Thursday, August 23, 2018 3:51 PM
  • It seems like there's a copy/paste issue in the article as clicking on the byline redirects to https://msdn.microsoft.com/en-us/magazine/mt149362?author=carlos+quintero instead of https://msdn.microsoft.com/en-us/magazine/mt149362?author=Steve+Smith
    Friday, October 5, 2018 7:47 PM
  • Hi,

    I have a full-blown MVC app that is working well to display my online portfolio and client management.  I wanted to add a Payment portal to it and I found a nice sample for SQUARE on GitHub that is built with RAZOR pages.  I was able to get the sample app to work and wanted to integrate the Pages and cs code from the razor app.  Is it possible to simply add a Pages folder with all the existing files into my MVC app?  And if that the case, how would I call the Payment index file from the Pages folder?  I know this is probably very simple, but I do not have enough experience to pull it off.  I need some help with the consolidation, as you so gracefully explained in your article.


    JohnnySandaire

    Friday, November 2, 2018 1:34 AM