New Tutorial Out on Asp .Net Core (MVC): kzbin.info/www/bejne/qWTSaZyrpKmAr6s
@mohitgohel46713 жыл бұрын
code send me
@RagePower20005 жыл бұрын
For people following step by step, know that this is prone to sql injection.
@dingoDogMan4 жыл бұрын
Its crazy to me how this video has so made likes and so few dislikes when they are storing passwords as plain text. No reputable website would ever do this and you are compromising users private information.
@benjaminasracas45254 жыл бұрын
@@dingoDogMan bruuuuh, it's not a tutorial how to encrypt password :D
@michailantipov69143 жыл бұрын
@@benjaminasracas4525 it's not a tutorial at all. But a tutorial how to write a Hindu code
@kennethvenzonmusic_3 жыл бұрын
Well, then make a better video for us.
@RagePower20003 жыл бұрын
@@kennethvenzonmusic_ I do not have the time, just look up how to use sql parameters.
@yasiramer20134 жыл бұрын
I actually had fun watching this video and didn't skip any part. thanks!
3 жыл бұрын
A
@sannidhibhadarka155 Жыл бұрын
It was very helpful. thanks for creating video
@CSharpCodeAcademy Жыл бұрын
Glad it was helpful!
@justinlemuel123 жыл бұрын
I tried this and it didn't work for me. I don't know how did you get the values from the form, I tried putting the "Verify" to the form action but it just gives me the error "the resource cannot be found"
@christosskartsaris192 жыл бұрын
I have the exact same problem. after submitting the page it says /Verify page is not found. Can anyone help?
@justinlemuel122 жыл бұрын
@@christosskartsaris19You need to add [HttpPost] above the Verify Method and then on your Login View put "Verify ( or the name of your method)" in the action attritbute.
@christosskartsaris192 жыл бұрын
@@justinlemuel12 the problem was the path of controller and view. I added asp-controller and asp-action in the form tag and it worked.
@MithilaDamruwan2 ай бұрын
What an amazing video. Thank you
@resterops4 жыл бұрын
Helal Kardeşim, gurur duydum. (En iyi Motivasyon Müzikleri'nden yakaladım:))
@kittygina3485 жыл бұрын
Glad this worked out for me. Quite straightforward video also very helpful. Amazing keep it up.
@ngonichigariro11622 жыл бұрын
do you mind sharing the login template please
@JorgeVargas-zd1mn5 жыл бұрын
Nice video, but you should create a service layer for the conection. Do not put database access on the controller. Views, Controllers, Services, Bussiness, Models
@CSharpCodeAcademy4 жыл бұрын
thanks for your feedback, this is basic stuff for absolute beginners
@mangeshsodnar84263 жыл бұрын
@@CSharpCodeAcademy I was looking for exactly this type of Api.....thanks bro
@easytechtv25 жыл бұрын
Ow-some and Straight Forward Video. This helped me about to get started with MVC 5. Now I can create login Form in MVC. Thanks
@hakanakcil_4 жыл бұрын
0:55 en iyi motivasyon müzikleri :)
@qtedurepe4 жыл бұрын
THANKS IT WORKED hope i can add more based on this project
@CSharpCodeAcademy4 жыл бұрын
Glad it helped
@TheTakenKing9993 жыл бұрын
Wait how is this not throwing a 405 error on the browser when u enter credentials? Your razorview layout has a tag for form method: post (10:53), while you have a httpget modifier on your index method (the one that returns ur main view) am I missing something?
@CSharpCodeAcademy3 жыл бұрын
you're missing something and that is after POST request the controller generates Get request call, there are two requests one after another.
@Crychimou3 жыл бұрын
Very nice tutorial
@CSharpCodeAcademy3 жыл бұрын
Thank you! Cheers!
@0422LAUREL5 жыл бұрын
thank you soo much for your help!! continue with this chanel please .... :)
@0422LAUREL5 жыл бұрын
sabir ali fine thanks! How about you?
@0422LAUREL5 жыл бұрын
sabir ali no , im from México 🇲🇽 jeje sorry
@rotichke2 жыл бұрын
Great, I enjoyed every bit of this!
@CSharpCodeAcademy2 жыл бұрын
Glad you enjoyed it!
@ArturoLopez-kl1uw5 жыл бұрын
Wao me sirvió mucho gracias ! That really fix my problems, thanks so mich! From México
@TheGeardarko5 жыл бұрын
Si te funciono
@yesindia84475 жыл бұрын
Thank you so much guys From India🇮🇳
@CSharpCodeAcademy5 жыл бұрын
I appreciate it.
@sulemanali40064 жыл бұрын
Great work bro awesome video can you please do delete and update as well
@CSharpCodeAcademy4 жыл бұрын
Sure, I'll
@jordanepellerin66843 жыл бұрын
Great Thanks. But why tik tok background music 😭
@CSharpCodeAcademy3 жыл бұрын
Don't know
@codywalicek5533 жыл бұрын
Can you show how to actually make the database? Otherwise great video!
@gabrielralfcaceresgabriell3193 жыл бұрын
Thank you so much! Muchas gracias saludos desde El Salvador!
@CSharpCodeAcademy3 жыл бұрын
me alegra que lo hayas disfrutado
@rohithmp9735 Жыл бұрын
Felt like it would be soo nice if there were an explaination given as a voice.
@JustGameAcadamy4 жыл бұрын
Hi, this video has been very helpful so far. I am stuck at 3:47, however, because I can't find the "WPF" subfolder in the "Databases" subfolder. Would you be able to help?
@CSharpCodeAcademy4 жыл бұрын
you can use Directory.GetCurrentDirectory() to get the current location then you can set the path to sub-folder and you can switch the directories in the same solution.
@CSharpCodeAcademy4 жыл бұрын
Here is Solution to get Subfolders using absolution path. stackoverflow.com/questions/10668481/listing-only-subfolders-in-c/10668520
@JustGameAcadamy4 жыл бұрын
@@CSharpCodeAcademy Thanks! Yeah I figured out I would have to create the Database on my own, but I'm not sure what to put in the query window.
@JustGameAcadamy4 жыл бұрын
@@CSharpCodeAcademy Ah nevermind, I think I figured that out too, and to make the table as well. Thanks for the help, nonetheless!
@themylkking83453 жыл бұрын
tks for this tutorial video :D It saves my day!
@CSharpCodeAcademy3 жыл бұрын
Glad to hear that!
@kick30204 жыл бұрын
thank you very much for your beautiful video
@moodplaymusic5 жыл бұрын
Amazing video! helped me a lot, Can you do a video for a registration form using postgresql ?!
@Alfa01x Жыл бұрын
Hi! Did you manage to do it with postgresql? If so, can you please share? It's urgent!
@CSharpCodeAcademy3 жыл бұрын
@Tuğçe Beyhan try this => com.CommandText = "select from tbl_login where username = '"+acc.Name+"' and password = '"+acc.Password+"'";
@faisalyousfani54505 жыл бұрын
Great Tutorial
@martinporras31545 жыл бұрын
you are the fucking best ,you save my ass because i have a proyect in 1 week and i let my login for the final
@eljona20855 жыл бұрын
thank so much you video help me with my proyect
@yi-tinglee5535 жыл бұрын
Hey nice work ! from Taiwan
@crazy-nk8vf5 жыл бұрын
goooooood daaaaaamn thaaaaank you sooooooooooo much
@fernandocabrera63975 жыл бұрын
Great Video!!!
@trungpvq81815 жыл бұрын
Thank you so much. But i think instead of creating new view (create and error) we can use something like javascript tho?
@CSharpCodeAcademy5 жыл бұрын
Obviously, we can
@siwarmendessi88634 жыл бұрын
i'm still stuck in the dr.comconnection that part, where my dr is higlighted in red...wonder whats the problem?
@CSharpCodeAcademy4 жыл бұрын
can you please let me know the exact time in the video where you stuck so I can help you more. and dr.comconnection does'nt exist.
@dhiyaahadan11914 жыл бұрын
@@CSharpCodeAcademy it's on AccountController dr=com.ExecuteReader. It say System.Data.SqlClient.SqlException: "Incorrect syntax near the keyword User"
@afrahmarouane11212 жыл бұрын
i did not find the mvc5 layout page razor in my project?
@jonthamastersmooth2 жыл бұрын
How do I get my login form to route to my Dashboard when the user logs in? I am having issues with that.
@danielaragon92285 жыл бұрын
Muchas Gracias me sirvió de mucho seria bueno si lo tradujeras al español saludos desde peru Thank you very much, it would be very good if you translated it into Spanish, greetings from Peru.
@CSharpCodeAcademy5 жыл бұрын
I've opened contribution for you so you can add subtitles by yourself. so other Spanish can easily understand.
@mohammedhilal75042 жыл бұрын
suiiii
@Jhunter1ish5 жыл бұрын
Is there anything here that stops the user just changing the URL themselves? Not exactly secure...
@michaelg43345 жыл бұрын
I can't get my SQL to connect to this project. When I open up SQL Studio, I don't have WPF under databases
@Cascascap5 жыл бұрын
I hope you got the answer by yourself after 3 weeks, but just in case, you don't have it because that's his own database, you have to create your own.
@jonschld5 жыл бұрын
How can you for example go from /Account/Login to for example /Dashboard? Nice video btw!
@CSharpCodeAcademy5 жыл бұрын
use asp link to go
@priyagupta1256 Жыл бұрын
This how to make user dashboard
@sarthakpatelia98883 жыл бұрын
Sir i need to learn how to build E-commerce website using bootstrap in mvc, i need your help please bring tutotrial on this
@CSharpCodeAcademy3 жыл бұрын
I'll try my best to publish asap.
@georgiana-larisagaspar6905 Жыл бұрын
Nice tutorial. Great job! Can you please send me the code?
@stiveroncal27355 жыл бұрын
Greetings from Peru
@mads_girl_vlog2 жыл бұрын
Can u pls explain how to change the bg image ...becoz I don't need that
@erinyadel23153 жыл бұрын
Excuse me, my server name has (\) and it occur error in ConnectionString. what should i do?
@CSharpCodeAcademy3 жыл бұрын
it can't be an issue.
@CSharpCodeAcademy3 жыл бұрын
try @"connection string" instead " ", use @ sign before " "
@erinyadel23153 жыл бұрын
@@CSharpCodeAcademy Thank u so much
@MANISHKUMAR-kr5wj3 жыл бұрын
Good morning sir some problems will come with SQL server connection when we enter the user id and password and click login then it's redirect to accountcontroller.cs page .how to solve this problem.
@CSharpCodeAcademy3 жыл бұрын
did you mention the path in form attributes (asp-controller & asp-action)? if not then mention them and your page will be redirector to the correct controller and call the action method you mentioned.
@2048-cupcakes3 жыл бұрын
Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: / Any solution please
@CSharpCodeAcademy3 жыл бұрын
It seems you assign the wrong path, in the form tag use these two attributes asp-controller="YOUR Controller name" asp-action="Your Action Method Name"
@subhashinie67932 жыл бұрын
How to connect database..i created database in sql but if i login its showing error..can u please help
@CSharpCodeAcademy2 жыл бұрын
here you can find how to setup connection string 04:39
@fidelrebolledo53825 жыл бұрын
How can I redirect from login to an index? after the user accepts?
@aamirsarfaraz30045 жыл бұрын
Everything works fine if I run it from Login.cshtml, it log-in successfully. But if I run from routing and click on Sign In then it gives me below error: "Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. " Requested URL: /Verify
@aamirsarfaraz30045 жыл бұрын
Finally I rectified this issue by myself. just need to change the RouteConfig.cs as below: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace EMAM { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "SignIn", url: "Verify", defaults: new { controller = "Account", action = "Verify", id = UrlParameter.Optional } ); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional } ); } } }
@saharali45315 жыл бұрын
@@aamirsarfaraz3004 after doing theses changes i'm still facing this error.
@putinninovacuna89764 жыл бұрын
im absolute beginner can I use entity framework code first to make the queries?
@CSharpCodeAcademy4 жыл бұрын
Sure, you can use
@benjaminasgo4 жыл бұрын
Where is your login button written at??? I don't see it in your Login.cshtml
@MartinFerenec3 жыл бұрын
Rule #1... never implement your own authentication and user management system! Problems with your system: - passwords get saved in database in plain text and are not handled properly (they should ALWAYS be hashed and salted) - Vulnerability to SQL injection attacks - Brute-Force attacks - No "Forgot password" - No Email confirmation - No 2FA - ... Use ."NET Identity" to handle/manage user accounts and link the responsive form to it! Your app looks good and everything and it is okay for demonstration purposes of the responsive form. But it is not safe to be deployed in a real-world scenario.
@joydas16855 жыл бұрын
Nice
@WongLP5 жыл бұрын
Hey nice work btw! Can I have the Code please?
@farehaalnaz98402 жыл бұрын
Hey i tried to dowload that template but it was giving me thre pictures in part.
@zayahanhasanshah13372 жыл бұрын
can you tell me what does integrated security do?
@King-Merlin3 жыл бұрын
entering user name and password and after its showing on the next page cannot log into data base, i don't understand where did go wrong
@onopvallund94885 жыл бұрын
Hello, This is my first project in asp.net mvc ever. And i'm at the end of the video and i wan't to click the login button. But i get a error it can't find the /account/Verify i can't find the solution on google, maybe you guys know it?
@CSharpCodeAcademy5 жыл бұрын
send me screenshots including error + C# code + front-end, then i'll able to assist you.
@aamirsarfaraz30045 жыл бұрын
Hi, Just change RouteConfig.cs as below, and it will work fine. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace EMAM { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "SignIn", url: "Verify", defaults: new { controller = "Account", action = "Verify", id = UrlParameter.Optional } ); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional } ); } } }
@awaismughal8823 жыл бұрын
Even Done Everything As Per Video In Spite Facing Compile Error As Code No "CS1009" - "Unrecognize Escape Sequence Error" .. How To Remove It And Build It Successfully? Please Help Me..
@fofagen81882 жыл бұрын
Hi, i have a problem in the end when i try to log in, when i put my username and password it says error, can you help? Thanks!
@veenasrilakshmi.t29792 жыл бұрын
Please give the route config part for giving controller name and action. For a reference.
@CSharpCodeAcademy2 жыл бұрын
Here you go docs.microsoft.com/en-us/aspnet/core/mvc/views/working-with-forms?view=aspnetcore-6.0
@pandybear42564 жыл бұрын
it's so unhandy that you dont show the functionality of the login button. How do I connect the Verify method with the login method? please help
@CSharpCodeAcademy4 жыл бұрын
follow the instructions carefully ...
@snawzay.77803 жыл бұрын
I'm watching full tutorial code with shoulder dance..
@vungoxuan90074 жыл бұрын
do u make video about register form?
@CSharpCodeAcademy4 жыл бұрын
Sure, i'll upload it so stay tuned.
@onestopmusic2652 жыл бұрын
Can someone please help mein with this error ? System.Data.SqlClient.SqlException: 'Cannot open database "WPF" requested by the login. The login failed. Login failed for user
@CSharpCodeAcademy2 жыл бұрын
It seems either the user is invalid or you entered the wrong credentials.
@jean-woodlyndorsinvilbertr66734 жыл бұрын
I want you to give us the link of files in the video description...
@CSharpCodeAcademy4 жыл бұрын
i'll update the links for new videos in the description.
@Infanuu2 жыл бұрын
In 10:10 im unable to add image and styles to my VS please anyone help me out!!❤🩹🤧
@MGNS5 жыл бұрын
Great video. Could you link to the source code?
@CSharpCodeAcademy5 жыл бұрын
if you follow the instructions then you'll get your code. However, I'll check my dictionary and I'll upload to cloud then share the link in the description.
@MGNS5 жыл бұрын
@@CSharpCodeAcademy Thanks, I found the problem and it works now :)
@bringchanges3 жыл бұрын
Can you give me background music name please :)
@GeekyNiksVlogs5 жыл бұрын
need help in implementing the same for signup page.
@sadenlav5 жыл бұрын
How to create direction session home page?
@ganenayepurane90s5 жыл бұрын
nice
@hugomarcovasquez50443 жыл бұрын
help me... Error de servidor en la aplicación '/'. No se encuentra el recurso.
@CSharpCodeAcademy3 жыл бұрын
intente agregar atributos a su formulario =>
@davidhurtado474 жыл бұрын
I did it and it was working properlly but now its says Unable to cast object of type 'System.Int32' to type 'System.String'. :/
@CSharpCodeAcademy4 жыл бұрын
Make sure you are using the correct Datatype.
@ngonichigariro11622 жыл бұрын
can i please have the files for the template cause im struggling to get it from w3layouts thank you
@nguyentrungthanhaptechhcm32143 жыл бұрын
Server Error in '/' Application. The resource cannot be found. Requested URL: /Verify please help me
@CSharpCodeAcademy3 жыл бұрын
try to add attributes to your form =>
@nguyentrungthanhaptechhcm32143 жыл бұрын
@@CSharpCodeAcademy great! thank you so much :)
@vasga_floze4 жыл бұрын
I'm using mvc with entity framework, but I can't apply de css to all the views. Someone can help me?
@CSharpCodeAcademy4 жыл бұрын
you need to link the css file to _Layout.cshtml file [ inside the shared folder ]
@vasga_floze4 жыл бұрын
@@CSharpCodeAcademy Thank u so much! that worked for me!
@marioroberto11413 жыл бұрын
Hello, excellent project, I have problems with public class AccountController : Controller, where ": Controller" line 11 gives me error cs0118 and I can not solve it, help please
@CSharpCodeAcademy3 жыл бұрын
please make sure the namespace and controller class names must be different,
@CSharpCodeAcademy3 жыл бұрын
You'll get more details there => check out the link: docs.microsoft.com/en-us/dotnet/csharp/misc/cs0118
@spyrex39882 жыл бұрын
backgrounc music a bop
@kalyanikadam29533 жыл бұрын
I got the server error in / application . how to fix it ? Plz help me to fix this
@CSharpCodeAcademy3 жыл бұрын
try this =>
@ROLANDOBONA104 жыл бұрын
Hello friend, I have followed exactly all your steps and everything works for me, but at the time of logging in I receive the error "Error connecting to the local database with.open () An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: An instance-specific or network-related error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: named pipes provider, error: 40 - Could not open a connection to SQL Server) " Could you help me please
@CSharpCodeAcademy4 жыл бұрын
Make sure your connection string is correct. Error will be resolved automatically.
@ROLANDOBONA104 жыл бұрын
@@CSharpCodeAcademy That's right friend, I managed to fix the problem and it was that in the CommandText I had written "tbl_" and that was something from your login table and that was my mistake, thanks for your concern, a question how can I add more windows after having already I miss my login?
@CSharpCodeAcademy4 жыл бұрын
understand & follow MVC structure.
@MyFirstHandle3 жыл бұрын
@@CSharpCodeAcademy Hey I had the same problem too. I couldn't make the server name totally correct because the code won't allow me to use backslash or I'd get an error but my server name uses a backslash. Is there any way to rename the server name or any code to accept a backslash so I can proceed?
@tugcebeyhan60693 жыл бұрын
Merhaba ben login sayfasını oluşturdum şimdi session işlemi yapmak istiyorum yönlendirebilir misiniz?
@CSharpCodeAcademy3 жыл бұрын
Microsoft belgelerindeki bu makaleye göz atın => docs.microsoft.com/en-us/aspnet/core/fundamentals/app-state?view=aspnetcore-5.0
@salamshah7744 жыл бұрын
Nice video. But cant download the login template!!!
@CSharpCodeAcademy4 жыл бұрын
you can try other templates.
@vijendramishra7293 жыл бұрын
This is token based authentication ?
@CSharpCodeAcademy3 жыл бұрын
No, it's a basic login tutorial.
@dprogrammar81443 жыл бұрын
please guys i need the sources to this please. i have tried multiple times and still didnt work. help me with the code let copy and check where am wrong
@CSharpCodeAcademy3 жыл бұрын
I appreciate you tried several times but as a matter of fact the video is 2+ years old and i don't have the source code. but I'll upload a new video with source code so stay tune.
@tripletechnology95353 жыл бұрын
Thank you so much
@CSharpCodeAcademy3 жыл бұрын
You're most welcome
@_KirubaharanA2 жыл бұрын
Bro can you please a layout template link that you used in this video
cuales son los tipos datos de duplas de la base de datos
@mohamadbokloch12382 жыл бұрын
I have an idea for an online project and I need the help of programmers and experts so help me achieve my dream and I wish you with all my heart that dreams will come true God willing
@CSharpCodeAcademy2 жыл бұрын
Ping me on channel email
@harithak1442 жыл бұрын
If i enter username and password,it shows 1error in con.Open().how to clear that error
@CSharpCodeAcademy2 жыл бұрын
try this code snippet if(con.ConnectionState == ConnectionState.Open){ con.Close(); } con.Open();
@ShoniNemavhidi5 жыл бұрын
Thanks mate
@satishvibes87573 жыл бұрын
i am unable download template please guide me
@fatihakyel55263 жыл бұрын
merhaba; Verify yazdığım parametre login.cshtml ile eşleşmiyor her seferinde hata ekranı dönüyor sql parametre string yönlendirmeden yazınca giriş başarılı dönüyor ne yapmalıyım
@CSharpCodeAcademy3 жыл бұрын
bu belgeleri okuyun, cevabınızı burada bulabilirsiniz => www.c-sharpcorner.com/UploadFile/2b481f/pass-multiple-parameter-in-url-in-web-api/