C# Razor Pages - Complete Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 มิ.ย. 2024
  • 🔥 Learn RAZOR PAGES with C# and ASP.NET MVC in this 25-minute FREE video COURSE!
    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: www.udemy.com/course/master-f...
    We'll make sure to turn you into a true developer in no time!
    TIMESTAMPS
    00:00 Intro
    00:31 Setting up our Razor Pages app
    01:29 Checking out the Razor Pages app
    03:56 This one is for you!
    04:37 A few more things about Razor pages
    06:51 Let´s get started with our project! The People Model
    10:45 Let´s get our tools! Entity Framework Core and Entity Framework Core in Memory
    11:57 In-memory Database
    14:38 Dependency Injection to make everything work together
    15:34 Creating our first person
    16:48 Set up the front end
    18:27 Our project in Action! Binding and making our backend work
    21:04 Listing our People on our Razor Page
    23:36 Final Razor Page
    24:35 Thanks for watching!
    C# Razor Pages - Complete Tutorial
    So, what is C#?
    C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.
    And ASP?
    ASP.NET is an open-source, server-side web-application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, applications and services. The name stands for Active Server Pages Network Enabled Technologies
    And Razor Pages?
    Introduced as part of ASP.NET Core, and now included in . NET 5, ASP.NET Razor Pages is a server-side, page-focused framework that enables building dynamic, data-driven web sites with clean separation of concerns.
    What is MVC?
    Model-view-controller is a software architectural pattern commonly used for developing user interfaces that divide the related program logic into three interconnected elements. This is done to separate internal representations of information from the ways information is presented to and accepted from the user.
    To learn more, make sure to watch the video, and we promise you that you'll become a better developer by the end of the video! Have fun!
    #csharp #coding #tutorial #learn #microsoft #net #razor #aspnet #mvc
    TAGS
    Tutorials,Tutorial,Programming,Course,Learn,Step by step,guide,development,programmer,learn how to,how to,c#,.net,.net core,dotnet,core,code,asp,asp net,c sharp,coding,csharp,programming,asp.net,html,tutorial,razor,azure,aspnet,mvc,web,web dev,backend developer,dependency injection,framework,blazor,entity framework,pages,asp net core,entity framework core,what is mvc,razor pages,asp dot net,create website,asp.net mvc,razor page web app,asp.net core mvc
    TutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
    This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
    Stay tuned and subscribe to tutorialsEU: goo.gl/rBFh3x
    C#: / @tutorialseuc
    Facebook: / tutorialseu-1093802040...
    LinkedIn: / tutorialseu
    Discord: / discord

ความคิดเห็น • 39

  • @tutorialsEUC
    @tutorialsEUC  ปีที่แล้ว +1

    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: www.udemy.com/course/master-fullstack-web-development-with-angular-and-csharp-aspnet/?referralCode=1506E05A57EE550675F0

  • @TheBigsmooth9
    @TheBigsmooth9 5 หลายเดือนก่อน +6

    You make this look so damn easy. Ive been learning C# for a year and a half now but not consistently....Every time I continue to learn I need to learn almost everything again lol

    • @nickvledder
      @nickvledder 4 หลายเดือนก่อน +1

      That’s exactly what I dislike about C# development-environment… too much to remember.

  • @navinee_
    @navinee_ 5 หลายเดือนก่อน

    This is exactly what I've been looking for, short and just what is needed 💯 Thanks! ✨🙌

  • @di.rodriguez
    @di.rodriguez 6 หลายเดือนก่อน

    great video, precise and well explained. Love it!

  • @brewzonekeeone5724
    @brewzonekeeone5724 6 หลายเดือนก่อน

    Really helpful. I'll check out the rest for sure thanks.

  • @prashantkori8245
    @prashantkori8245 4 หลายเดือนก่อน

    Short and Simple , very good

  • @pavelvitov2773
    @pavelvitov2773 3 หลายเดือนก่อน

    Great video man!

  • @GlennInkoom
    @GlennInkoom หลายเดือนก่อน

    Splendid explanation, very concise

  • @Jacob_Price
    @Jacob_Price ปีที่แล้ว

    thanks this helps a lot!

  • @akrooma
    @akrooma ปีที่แล้ว +1

    The video ended : 25:19 - you lied to me
    but hey.. great stuff.. i learned a lot .. thank you so much

  • @lewdards1127
    @lewdards1127 28 วันที่ผ่านมา

    Thank you my amigo!

  • @nickearle294
    @nickearle294 หลายเดือนก่อน

    Hi, I'm new to Razor and this tutorial has inspired me to do more. I love the use of the InMemory Db and wondered if there was an easy way to pre-populate this Db. Best option for me would be using a list in a CSV file.
    I want to use this to display our Family Recipes, so the list would not get update very often.

  • @larrycs22
    @larrycs22 ปีที่แล้ว +2

    Great video! Thank you very much.
    What if I would like to use SQL database in my project, how should I connect it?

    • @daamnola2579
      @daamnola2579 11 หลายเดือนก่อน

      Connect String

  • @VahidAmiri-fg3xj
    @VahidAmiri-fg3xj ปีที่แล้ว

    Thanks
    How to add multiple functions of filters and search in razor pages. I mean in Index page

  • @junaidywijaya6413
    @junaidywijaya6413 3 หลายเดือนก่อน

    This is good, but everytime we hit Add button it is immediately update the database as well, can we adding the data on client side and add save/upload button to save to database?

  • @darkeffect8898
    @darkeffect8898 ปีที่แล้ว +1

    Hello, i already have a web api project where I’ve created models, controllers and services. I want to create the front end with blazor but I’m not quite sure on whether i should do all those things again on the client side like you have on this tutorial?

    • @tutorialsEUC
      @tutorialsEUC  ปีที่แล้ว +1

      Hi, we will soon release a blazor video which will answer your questions :)
      If you project is quite small you could just start over with the blazor template. If not you would have to implement it from scratch :)
      Greets

    • @darkeffect8898
      @darkeffect8898 ปีที่แล้ว +1

      @@tutorialsEUC Thank you, keep up the good work! :)

  • @marcelositonio2495
    @marcelositonio2495 ปีที่แล้ว

    Razing nice!'

  • @adeniyiajani7617
    @adeniyiajani7617 9 หลายเดือนก่อน

    I appreciate you, please can you assist with video to upload Excel files in with the Razor Pages frame work

  • @mohammadeunus7087
    @mohammadeunus7087 11 หลายเดือนก่อน +1

    You are refreshing the whole page to see the updated table. Would it be possible to just refresh the table and not the entire site?

    • @junior.santana
      @junior.santana 10 หลายเดือนก่อน

      No, cause razor pages are server-side rendered, when you refresh is basically the same as pressing F5 and letting the browser request the page again. However you can mix some javascript and request only the data (or only the html for the table) and replace on th client side without refreshing the whole page.
      Of course if your pages are very dynamic a better option would be using a client-side framework (like react, angular...) and get only the data needed (from an API) to "render" the page locally

  • @nathan_falkon36
    @nathan_falkon36 8 หลายเดือนก่อน

    i created the file the same way, but for some reason Program.cs came very different, no public class Program; no includes; no constructors.

    • @fancygoat1352
      @fancygoat1352 8 หลายเดือนก่อน

      You must have forgotten to disable top-down statements. Basically in newer versions of C#, and only in the main class, you are able to negate a public main entry point. I believe you can just add said Program class and main method and will work just as well.

  • @jimmybellmon1268
    @jimmybellmon1268 8 หลายเดือนก่อน

    does this still work in 8.0 using VS 2022 Preview?

    • @flamehorizon1105
      @flamehorizon1105 6 หลายเดือนก่อน

      It works with .NET 8.0. I was using Rider tho.

  • @LuigiZambetti
    @LuigiZambetti ปีที่แล้ว

    Why using Razor Pages nowadays for business web applications?

    • @tutorialsEUC
      @tutorialsEUC  ปีที่แล้ว +1

      Sometime it is not you who decides what to use :) Razor Pages still gets used pretty often - you'd be suprised

    • @StarsManny
      @StarsManny ปีที่แล้ว

      Are you getting confused with Web Forms?

    • @LuigiZambetti
      @LuigiZambetti ปีที่แล้ว

      @@StarsManny No of course, but still understand why Razor Pages should be better than WebForms.

    • @brewzonekeeone5724
      @brewzonekeeone5724 ปีที่แล้ว +1

      I develop in Angular most times., but the company I work for has some applications that use Razor, so I want to increase my competency in that area.

  • @criticalthinker1123
    @criticalthinker1123 9 วันที่ผ่านมา

    *very bad. i'm at min 11, and so far have'nt learned much. this was supposed to to be an overview without the details of connecting to EF for example*

    • @criticalthinker1123
      @criticalthinker1123 9 วันที่ผ่านมา

      @ min 15, couldn't watch it anymore. clearly this isn't about razor pages

  • @bbrqi89
    @bbrqi89 6 หลายเดือนก่อน +1

    Total BS

  • @snapback9221
    @snapback9221 7 หลายเดือนก่อน +1

    rly bad