No video

How to Create Login Page in ASP.NET Core MVC with Database

  Рет қаралды 71,032

Csharp Space

Csharp Space

Күн бұрын

Here I will explain how to create custom login page in ASP.NET Core MVC with database. Razor pages is used for display view and ADO.NET for database operations. In this example I have used stored procedure for validation the user.

Пікірлер: 40
@CsharpSpace
@CsharpSpace 4 жыл бұрын
For Source Code and Step to Step Tutorials visit: www.voidgeeks.com/tutorial/How-to-Create-Simple-Login-page-in-ASPNET-Core-MVC-with-Database/10
@shaakirahcornelius565
@shaakirahcornelius565 3 жыл бұрын
this was so helpful ! Busy with my third year project and this video made it easy to understand
@fitnesssecrets4046
@fitnesssecrets4046 11 ай бұрын
Really thanks to you sir... Please make more videos on ASP. Net Core MVC or Razor pages
@CsharpSpace
@CsharpSpace 11 ай бұрын
Sure will make a video on this topic
@rehankhan-fp1rm
@rehankhan-fp1rm 4 жыл бұрын
Nice work...keep it up..
@FarazAzhar
@FarazAzhar 2 жыл бұрын
Nicely explained. Why was it necessary to use a stored procedure ? Could have queried it directly from the table.
@CsharpSpace
@CsharpSpace 2 жыл бұрын
Yes you can use query directly here, I am just use stranded way to code
@softsysdev9985
@softsysdev9985 4 жыл бұрын
Thaks just i was looking for
@rebecaparedes6903
@rebecaparedes6903 4 жыл бұрын
Hi there! I have a problem I wrote all the code but it gives me an error in com.ExecuteNonQuery(); Error: System.Data.SqlClient.SqlException: 'Could not find stored procedure 'Sp_Login'.' This exception was originally thrown at this call stack: [External Code] WebRepublicaDominicana.Models.db.LoginCheck(WebRepublicaDominicana.Models.Ad_login) in db.cs WebRepublicaDominicana.Controllers.HomeController.Index(WebRepublicaDominicana.Models.Ad_login) in HomeController.cs Please help
@CsharpSpace
@CsharpSpace 4 жыл бұрын
Create stored procedure sp_login in database, you have not created procedure in database
@AmarjeetKumar-vm9xb
@AmarjeetKumar-vm9xb 4 жыл бұрын
Thank you Sir
@rakeshchandraul764
@rakeshchandraul764 3 жыл бұрын
Thanks sir
@matiasdieguez8634
@matiasdieguez8634 Жыл бұрын
Hi I am getting the login page but when I try to sign in nothing happens. I am getting no erros either any ideas of where I should check. Cheers.
@CsharpSpace
@CsharpSpace Жыл бұрын
Try to debug application and set break point for actual error
@developersyard2805
@developersyard2805 2 жыл бұрын
make a vedio on same this process using Entity Framework
@enriqueestrada4204
@enriqueestrada4204 2 жыл бұрын
i have a problem, always TempData say "Admin id or Password is wrong"
@isaacrabin375
@isaacrabin375 3 жыл бұрын
Is that OK to use the the "PASSWORD" as password in a login mechanism in the era of .Net Core (+ .Net 5, 6) ? 😕
@aminebessalah909
@aminebessalah909 3 жыл бұрын
Bro you can use Microsoft AspNet.Core Identity
@shruti8827
@shruti8827 3 жыл бұрын
Sir itz showing error like dis procedure sp_login expects parameter @Admin_id even after properly passed values also...how i resolve it?
@CsharpSpace
@CsharpSpace 3 жыл бұрын
Debug your application and check your value for this parameter, I think this value is null.
@danielmaria7965
@danielmaria7965 2 жыл бұрын
can you do the same exact code with EFW?
@k-popworldwide3282
@k-popworldwide3282 2 жыл бұрын
My view page is showing the form but no validation from the TempData is popping up. Can anyone tell why ?
@CsharpSpace
@CsharpSpace 2 жыл бұрын
I think you will not add tempdata on view page.
@jovan9811
@jovan9811 4 жыл бұрын
hi sir, i have this error SqlException: The EXECUTE permission was denied on the object 'Sp_Login', database 'starbucks', schema 'dbo'. pls help
@pjthunder
@pjthunder 2 жыл бұрын
i had the same issue. need to add EXECUTE SP permission on database
@luisitoelpillopalomon8768
@luisitoelpillopalomon8768 4 жыл бұрын
How do you connect the SQL server with ASP.NET CORE mvc?
@CsharpSpace
@CsharpSpace 4 жыл бұрын
Check my video for Connection string: kzbin.info/www/bejne/moWseZqMirSfl80 Article: voidgeeks.com/tutorial/How-to-read-Connection-string-from-Appsettingjson-in-ASPNET-Core/6
@pradhityabayu5937
@pradhityabayu5937 4 жыл бұрын
2.0 and 2.2 version are same? or not much difference?
@CsharpSpace
@CsharpSpace 4 жыл бұрын
For difference you can can check this article: docs.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-2.2?view=aspnetcore-3.1
@kumaravelk9829
@kumaravelk9829 4 жыл бұрын
Hi bro, can we do authorization in this login form
@omamam.alnajjar4367
@omamam.alnajjar4367 Жыл бұрын
Git heb code?
@MadhuNepal4u
@MadhuNepal4u 4 жыл бұрын
how can we store hassed password rather same password in database?
@CsharpSpace
@CsharpSpace 4 жыл бұрын
You can use encryption and decryption for this
@putinninovacuna8976
@putinninovacuna8976 4 жыл бұрын
why don't you use entity framework core code first ? can I use EF core ?
@CsharpSpace
@CsharpSpace 4 жыл бұрын
Yes you can use it
@madalinsoare8769
@madalinsoare8769 3 жыл бұрын
He already had the database so he could of used EF database first aproach which is older but still very widely used. It is an interesting way to send data like that betwen client and sever. I used the old way so far with ajax calls from javascript, but I am not sure yeh what's the best aproch regarding security issues. I think this is better though but I am not sure. My question is how do you make a page that once you have registered you can't come back to the frost page. That would be intereting to do
@aishwaryarh5274
@aishwaryarh5274 4 жыл бұрын
Can we do the same with asp.net web application with .net framework
@CsharpSpace
@CsharpSpace 4 жыл бұрын
Yes you can do.
@rushikeshkarde134
@rushikeshkarde134 2 жыл бұрын
I have a core login not found error
@CsharpSpace
@CsharpSpace 2 жыл бұрын
In which line you found error?
ASP.NET Identity - User Registration, Login and Log-out
37:16
Digital TechJoint
Рет қаралды 108 М.
Intro to ASP.NET Core Razor Pages - From Start to Published
1:16:44
IAmTimCorey
Рет қаралды 352 М.
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН
Yum 😋 cotton candy 🍭
00:18
Nadir Show
Рет қаралды 7 МЛН
When you discover a family secret
00:59
im_siowei
Рет қаралды 15 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 54 МЛН
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,5 МЛН
Authentication in ASP.NET MVC | Login & Signup Page | From Scratch
19:00
The Amazing Codeverse
Рет қаралды 27 М.
CRUD without Entity Framework in ASP.NET Core MVC
44:30
CodAffection
Рет қаралды 104 М.
ASP NET Core 3.0 User Registration Form Example MVC Web Application VS2019
35:47
Haritha Computers & Technology
Рет қаралды 17 М.
Introduction to ASP.NET Core MVC in C# plus LOTS of Tips
1:03:56
IAmTimCorey
Рет қаралды 331 М.
Implementing login functionality in asp net core
14:11
kudvenkat
Рет қаралды 170 М.
mvc custom user login page asp net without entity framework
15:13
Haritha Computers & Technology
Рет қаралды 40 М.
How to create a login page using asp.net mvc 4
26:27
sourav mondal
Рет қаралды 455 М.
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН