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
🚀 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
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
That’s exactly what I dislike about C# development-environment… too much to remember.
This is exactly what I've been looking for, short and just what is needed 💯 Thanks! ✨🙌
great video, precise and well explained. Love it!
Really helpful. I'll check out the rest for sure thanks.
Short and Simple , very good
Great video man!
Splendid explanation, very concise
thanks this helps a lot!
The video ended : 25:19 - you lied to me
but hey.. great stuff.. i learned a lot .. thank you so much
Thank you my amigo!
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.
Great video! Thank you very much.
What if I would like to use SQL database in my project, how should I connect it?
Connect String
Thanks
How to add multiple functions of filters and search in razor pages. I mean in Index page
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?
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?
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
@@tutorialsEUC Thank you, keep up the good work! :)
Razing nice!'
I appreciate you, please can you assist with video to upload Excel files in with the Razor Pages frame work
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?
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
i created the file the same way, but for some reason Program.cs came very different, no public class Program; no includes; no constructors.
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.
does this still work in 8.0 using VS 2022 Preview?
It works with .NET 8.0. I was using Rider tho.
Why using Razor Pages nowadays for business web applications?
Sometime it is not you who decides what to use :) Razor Pages still gets used pretty often - you'd be suprised
Are you getting confused with Web Forms?
@@StarsManny No of course, but still understand why Razor Pages should be better than WebForms.
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.
*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*
@ min 15, couldn't watch it anymore. clearly this isn't about razor pages
Total BS
rly bad