Create Login Page in Asp.net (MVC 5 & SQL Server)

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

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

  • @CSharpCodeAcademy
    @CSharpCodeAcademy  4 ปีที่แล้ว +6

    New Tutorial Out on Asp .Net Core (MVC): th-cam.com/video/s3o8iuoDMyI/w-d-xo.html

  • @RagePower2000
    @RagePower2000 5 ปีที่แล้ว +36

    For people following step by step, know that this is prone to sql injection.

    • @dingoDogMan
      @dingoDogMan 4 ปีที่แล้ว +4

      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.

    • @benjaminasracas4525
      @benjaminasracas4525 4 ปีที่แล้ว +12

      @@dingoDogMan bruuuuh, it's not a tutorial how to encrypt password :D

    • @michailantipov6914
      @michailantipov6914 3 ปีที่แล้ว

      @@benjaminasracas4525 it's not a tutorial at all. But a tutorial how to write a Hindu code

    • @kennethvenzonmusic_
      @kennethvenzonmusic_ 3 ปีที่แล้ว

      Well, then make a better video for us.

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

      @@kennethvenzonmusic_ I do not have the time, just look up how to use sql parameters.

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

    I actually had fun watching this video and didn't skip any part. thanks!

    •  3 ปีที่แล้ว +1

      A

  • @JorgeVargas-zd1mn
    @JorgeVargas-zd1mn 4 ปีที่แล้ว +5

    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

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

      thanks for your feedback, this is basic stuff for absolute beginners

    • @mangeshsodnar8426
      @mangeshsodnar8426 3 ปีที่แล้ว

      @@CSharpCodeAcademy I was looking for exactly this type of Api.....thanks bro

  • @justinlemuel12
    @justinlemuel12 3 ปีที่แล้ว +6

    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"

    • @christosskartsaris19
      @christosskartsaris19 2 ปีที่แล้ว

      I have the exact same problem. after submitting the page it says /Verify page is not found. Can anyone help?

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

      @@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.

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

      @@justinlemuel12 the problem was the path of controller and view. I added asp-controller and asp-action in the form tag and it worked.

  • @kittygina348
    @kittygina348 5 ปีที่แล้ว +10

    Glad this worked out for me. Quite straightforward video also very helpful. Amazing keep it up.

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

      do you mind sharing the login template please

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

    It was very helpful. thanks for creating video

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

    Helal Kardeşim, gurur duydum. (En iyi Motivasyon Müzikleri'nden yakaladım:))

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

    What an amazing video. Thank you

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

    Very nice tutorial

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

    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_
    @hakanakcil_ 4 ปีที่แล้ว +10

    0:55 en iyi motivasyon müzikleri :)

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

    Felt like it would be soo nice if there were an explaination given as a voice.

  • @qtedurepe
    @qtedurepe 4 ปีที่แล้ว

    THANKS IT WORKED hope i can add more based on this project

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

    Can you show how to actually make the database? Otherwise great video!

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

    Great Thanks. But why tik tok background music 😭

  • @trungpvq8181
    @trungpvq8181 5 ปีที่แล้ว

    Thank you so much. But i think instead of creating new view (create and error) we can use something like javascript tho?

  • @afrahmarouane1121
    @afrahmarouane1121 2 ปีที่แล้ว

    i did not find the mvc5 layout page razor in my project?

  • @CSharpCodeAcademy
    @CSharpCodeAcademy  3 ปีที่แล้ว

    @Tuğçe Beyhan try this => com.CommandText = "select from tbl_login where username = '"+acc.Name+"' and password = '"+acc.Password+"'";

  • @mads_girl_vlog
    @mads_girl_vlog 2 ปีที่แล้ว

    Can u pls explain how to change the bg image ...becoz I don't need that

  • @jonthamastersmooth
    @jonthamastersmooth 2 ปีที่แล้ว

    How do I get my login form to route to my Dashboard when the user logs in? I am having issues with that.

  • @moodplaymusic
    @moodplaymusic 5 ปีที่แล้ว +3

    Amazing video! helped me a lot, Can you do a video for a registration form using postgresql ?!

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

      Hi! Did you manage to do it with postgresql? If so, can you please share? It's urgent!

  • @rotichke
    @rotichke 2 ปีที่แล้ว

    Great, I enjoyed every bit of this!

  • @martinporras3154
    @martinporras3154 5 ปีที่แล้ว

    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

  • @spyrex3988
    @spyrex3988 2 ปีที่แล้ว

    backgrounc music a bop

  • @farehaalnaz9840
    @farehaalnaz9840 2 ปีที่แล้ว

    Hey i tried to dowload that template but it was giving me thre pictures in part.

  • @Jhunter1ish
    @Jhunter1ish 4 ปีที่แล้ว

    Is there anything here that stops the user just changing the URL themselves? Not exactly secure...

  • @snawzay.7780
    @snawzay.7780 3 ปีที่แล้ว

    I'm watching full tutorial code with shoulder dance..

  • @zayahanhasanshah1337
    @zayahanhasanshah1337 2 ปีที่แล้ว

    can you tell me what does integrated security do?

  • @yesindia8447
    @yesindia8447 5 ปีที่แล้ว

    Thank you so much guys
    From India🇮🇳

  • @benjaminasgo
    @benjaminasgo 4 ปีที่แล้ว

    Where is your login button written at??? I don't see it in your Login.cshtml

  • @sulemanali4006
    @sulemanali4006 4 ปีที่แล้ว

    Great work bro awesome video can you please do delete and update as well

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

    what to do when using MySQl

  • @sarthakpatelia9888
    @sarthakpatelia9888 3 ปีที่แล้ว

    Sir i need to learn how to build E-commerce website using bootstrap in mvc, i need your help please bring tutotrial on this

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

    Great Tutorial

  • @0422LAUREL
    @0422LAUREL 5 ปีที่แล้ว

    thank you soo much for your help!! continue with this chanel please .... :)

    • @0422LAUREL
      @0422LAUREL 5 ปีที่แล้ว

      sabir ali fine thanks! How about you?

    • @0422LAUREL
      @0422LAUREL 5 ปีที่แล้ว +1

      sabir ali no , im from México 🇲🇽 jeje sorry

  • @TheTakenKing999
    @TheTakenKing999 3 ปีที่แล้ว

    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?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      you're missing something and that is after POST request the controller generates Get request call, there are two requests one after another.

  • @fofagen8188
    @fofagen8188 2 ปีที่แล้ว

    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!

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

    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?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว

      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.

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว

      Here is Solution to get Subfolders using absolution path.
      stackoverflow.com/questions/10668481/listing-only-subfolders-in-c/10668520

    • @JustGameAcadamy
      @JustGameAcadamy 4 ปีที่แล้ว

      @@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.

    • @JustGameAcadamy
      @JustGameAcadamy 4 ปีที่แล้ว

      @@CSharpCodeAcademy Ah nevermind, I think I figured that out too, and to make the table as well. Thanks for the help, nonetheless!

  • @joydas1685
    @joydas1685 5 ปีที่แล้ว

    Nice

  • @fidelrebolledo5382
    @fidelrebolledo5382 5 ปีที่แล้ว

    How can I redirect from login to an index? after the user accepts?

  • @gabrielralfcaceresgabriell319
    @gabrielralfcaceresgabriell319 3 ปีที่แล้ว

    Thank you so much!
    Muchas gracias saludos desde El Salvador!

  • @awaismughal882
    @awaismughal882 3 ปีที่แล้ว

    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..

  • @King-Merlin
    @King-Merlin 3 ปีที่แล้ว

    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

  • @michaelg4334
    @michaelg4334 5 ปีที่แล้ว

    I can't get my SQL to connect to this project. When I open up SQL Studio, I don't have WPF under databases

    • @Cascascap
      @Cascascap 5 ปีที่แล้ว

      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.

  • @ngonichigariro1162
    @ngonichigariro1162 2 ปีที่แล้ว

    can i please have the files for the template cause im struggling to get it from w3layouts thank you

  • @veenasrilakshmi.t2979
    @veenasrilakshmi.t2979 2 ปีที่แล้ว

    Please give the route config part for giving controller name and action. For a reference.

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  2 ปีที่แล้ว

      Here you go
      docs.microsoft.com/en-us/aspnet/core/mvc/views/working-with-forms?view=aspnetcore-6.0

  • @siwarmendessi8863
    @siwarmendessi8863 4 ปีที่แล้ว

    i'm still stuck in the dr.comconnection that part, where my dr is higlighted in red...wonder whats the problem?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว

      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.

    • @dhiyaahadan1191
      @dhiyaahadan1191 4 ปีที่แล้ว

      @@CSharpCodeAcademy it's on AccountController dr=com.ExecuteReader. It say System.Data.SqlClient.SqlException: "Incorrect syntax near the keyword User"

  • @sadenlav
    @sadenlav 5 ปีที่แล้ว

    How to create direction session home page?

  • @subhashinie6793
    @subhashinie6793 2 ปีที่แล้ว

    How to connect database..i created database in sql but if i login its showing error..can u please help

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

      here you can find how to setup connection string 04:39

  • @kick3020
    @kick3020 4 ปีที่แล้ว

    thank you very much for your beautiful video

  • @jean-woodlyndorsinvilbertr6673
    @jean-woodlyndorsinvilbertr6673 4 ปีที่แล้ว

    I want you to give us the link of files in the video description...

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว

      i'll update the links for new videos in the description.

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

    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.

  • @ganenayepurane90s
    @ganenayepurane90s 5 ปีที่แล้ว

    nice

  • @vungoxuan9007
    @vungoxuan9007 4 ปีที่แล้ว

    do u make video about register form?

  • @ArturoLopez-kl1uw
    @ArturoLopez-kl1uw 5 ปีที่แล้ว

    Wao me sirvió mucho gracias !
    That really fix my problems, thanks so mich! From México

  • @MANISHKUMAR-kr5wj
    @MANISHKUMAR-kr5wj 3 ปีที่แล้ว

    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.

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      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.

  • @eljona2085
    @eljona2085 5 ปีที่แล้ว

    thank so much you video help me with my proyect

  • @2048-cupcakes
    @2048-cupcakes 3 ปีที่แล้ว

    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

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      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"

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

    Can you give me background music name please :)

  • @satishvibes8757
    @satishvibes8757 3 ปีที่แล้ว

    i am unable download template please guide me

  • @yi-tinglee553
    @yi-tinglee553 5 ปีที่แล้ว

    Hey nice work ! from Taiwan

  • @crazy-nk8vf
    @crazy-nk8vf 5 ปีที่แล้ว

    goooooood daaaaaamn thaaaaank you sooooooooooo much

  • @putinninovacuna8976
    @putinninovacuna8976 4 ปีที่แล้ว

    im absolute beginner can I use entity framework code first to make the queries?

  • @stiveroncal2735
    @stiveroncal2735 5 ปีที่แล้ว

    Greetings from Peru

  • @aamirsarfaraz3004
    @aamirsarfaraz3004 5 ปีที่แล้ว

    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

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

      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 }
      );

      }
      }
      }

    • @saharali4531
      @saharali4531 5 ปีที่แล้ว

      @@aamirsarfaraz3004 after doing theses changes i'm still facing this error.

  • @georgiana-larisagaspar6905
    @georgiana-larisagaspar6905 ปีที่แล้ว

    Nice tutorial. Great job! Can you please send me the code?

  • @erinyadel2315
    @erinyadel2315 3 ปีที่แล้ว

    Excuse me, my server name has (\) and it occur error in ConnectionString. what should i do?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      it can't be an issue.

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

      try @"connection string" instead " ", use @ sign before " "

    • @erinyadel2315
      @erinyadel2315 3 ปีที่แล้ว

      @@CSharpCodeAcademy
      Thank u so much

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

    How can you for example go from /Account/Login to for example /Dashboard?
    Nice video btw!

  • @pandybear4256
    @pandybear4256 4 ปีที่แล้ว

    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

  • @fernandocabrera6397
    @fernandocabrera6397 5 ปีที่แล้ว

    Great Video!!!

  • @themylkking8345
    @themylkking8345 3 ปีที่แล้ว

    tks for this tutorial video :D It saves my day!

  • @davidhurtado47
    @davidhurtado47 4 ปีที่แล้ว

    I did it and it was working properlly but now its says Unable to cast object of type 'System.Int32' to type 'System.String'. :/

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว

      Make sure you are using the correct Datatype.

  • @onopvallund9488
    @onopvallund9488 5 ปีที่แล้ว

    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?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  5 ปีที่แล้ว

      send me screenshots including error + C# code + front-end, then i'll able to assist you.

    • @aamirsarfaraz3004
      @aamirsarfaraz3004 5 ปีที่แล้ว +3

      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 }
      );

      }
      }
      }

  • @GeekyNiksVlogs
    @GeekyNiksVlogs 5 ปีที่แล้ว

    need help in implementing the same for signup page.

  • @kalyanikadam2953
    @kalyanikadam2953 3 ปีที่แล้ว

    I got the server error in / application . how to fix it ? Plz help me to fix this

  • @tripletechnology9535
    @tripletechnology9535 3 ปีที่แล้ว

    Thank you so much

  • @hugomarcovasquez5044
    @hugomarcovasquez5044 3 ปีที่แล้ว

    help me... Error de servidor en la aplicación '/'.
    No se encuentra el recurso.

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      intente agregar atributos a su formulario =>

  • @valentina_cosplayer
    @valentina_cosplayer 4 ปีที่แล้ว

    help me do not connect the database urgently!!!!!!!!!!!!! thanks

  • @mjosedss
    @mjosedss 4 ปีที่แล้ว

    Thanks

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

    Can you give the code, please?!

  • @nguyentrungthanhaptechhcm3214
    @nguyentrungthanhaptechhcm3214 3 ปีที่แล้ว

    Server Error in '/' Application.
    The resource cannot be found.
    Requested URL: /Verify
    please help me

  • @marioroberto1141
    @marioroberto1141 3 ปีที่แล้ว

    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

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

      please make sure the namespace and controller class names must be different,

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

      You'll get more details there => check out the link: docs.microsoft.com/en-us/dotnet/csharp/misc/cs0118

  • @_KirubaharanA
    @_KirubaharanA 2 ปีที่แล้ว

    Bro can you please a layout template link that you used in this video

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  2 ปีที่แล้ว

      w3layouts.com/template/spin-login-form-flat-responsive-widget-template/

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

    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.

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

      I've opened contribution for you so you can add subtitles by yourself. so other Spanish can easily understand.

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

      suiiii

  • @vijendramishra729
    @vijendramishra729 3 ปีที่แล้ว

    This is token based authentication ?

  • @hamzaalitaj708
    @hamzaalitaj708 4 ปีที่แล้ว

    please share the code of html,css used in this

  • @mohamadbokloch1238
    @mohamadbokloch1238 2 ปีที่แล้ว

    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

  • @tugcebeyhan6069
    @tugcebeyhan6069 3 ปีที่แล้ว

    Merhaba ben login sayfasını oluşturdum şimdi session işlemi yapmak istiyorum yönlendirebilir misiniz?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      Microsoft belgelerindeki bu makaleye göz atın => docs.microsoft.com/en-us/aspnet/core/fundamentals/app-state?view=aspnetcore-5.0

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

    Hey nice work btw! Can I have the Code please?

  • @raheelahmed603
    @raheelahmed603 4 ปีที่แล้ว

    Thankyou Soo much

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

    DataBase????

  • @salamshah774
    @salamshah774 4 ปีที่แล้ว

    Nice video. But cant download the login template!!!

  • @ygirijareddy4199
    @ygirijareddy4199 4 ปีที่แล้ว

    hi i have one doudt for create alogin page

  • @ROLANDOBONA10
    @ROLANDOBONA10 4 ปีที่แล้ว

    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

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว

      Make sure your connection string is correct.
      Error will be resolved automatically.

    • @ROLANDOBONA10
      @ROLANDOBONA10 4 ปีที่แล้ว

      @@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?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว

      understand & follow MVC structure.

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

      @@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?

  • @harithak144
    @harithak144 2 ปีที่แล้ว

    If i enter username and password,it shows 1error in con.Open().how to clear that error

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  2 ปีที่แล้ว

      try this code snippet
      if(con.ConnectionState == ConnectionState.Open){
      con.Close();
      }
      con.Open();

  • @vocals33
    @vocals33 3 ปีที่แล้ว

    hey its not taking images...

  • @vasga_floze
    @vasga_floze 4 ปีที่แล้ว

    I'm using mvc with entity framework, but I can't apply de css to all the views.
    Someone can help me?

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

      you need to link the css file to _Layout.cshtml file [ inside the shared folder ]

    • @vasga_floze
      @vasga_floze 4 ปีที่แล้ว

      @@CSharpCodeAcademy Thank u so much! that worked for me!

  • @onestopmusic265
    @onestopmusic265 2 ปีที่แล้ว

    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

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  2 ปีที่แล้ว

      It seems either the user is invalid or you entered the wrong credentials.

  • @dprogrammar8144
    @dprogrammar8144 3 ปีที่แล้ว

    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

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      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.