Asp.Net Mvc : User Registration Form Using Entity FrameWork And Sql Server

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 119

  • @CodAffection
    @CodAffection  7 лет назад +2

    goo.gl/bPcyXW : Buy me a Coffee
    bit.ly/403lUVC : Same Topoic But Latest Version
    bit.ly/36IA1cH : AspNet Core MVC CRUD Operations
    bit.ly/3Pn2S7y : Expense Tracker App in AspNet Core MVC
    bit.ly/2yEPlpB : Convert MVC App to Single Page(jQuery Ajax)
    bit.ly/39B6xdh : Image Upload in AspNet Core MVC
    bit.ly/30fPDMg : More MVC Tutorials

    • @190rajib
      @190rajib 4 года назад +1

      It's good. Can you make the page where details of user will showing in another Page after registration is successful?

    • @muelveroctavio4666
      @muelveroctavio4666 4 года назад

      Nice... Can you also add a dashboard after successful login, where some of the details will display.. thanks

    • @saitanish6080
      @saitanish6080 3 года назад

      @@muelveroctavio4666 hey hi if you have the code for this video and also the changes which you have suggested can you send me please

  • @elmekosa
    @elmekosa 4 года назад +3

    Thanks for taking the time to create all your videos. Very much appreciate it.

  • @raymondagbunag851
    @raymondagbunag851 6 лет назад +6

    Hello Sir! I've been with other tutorials and so far your video is the best. COMPLETE and CONCISE! Please continue working you are helping a lot of people around the world. Thank you so much!

    • @CodAffection
      @CodAffection  6 лет назад +1

      thanks for your love and support.

    • @raymondagbunag851
      @raymondagbunag851 6 лет назад

      Larned a lot from you Sir. Please do more videos. Thank you so much!

    • @at494949
      @at494949 4 года назад

      @@CodAffection
      Thank you for the explanation and for the excellent and useful lesson. I hope you can do this form using php + sql

  • @Huda-qm8si
    @Huda-qm8si 4 года назад +1

    Hi, I have a question, at 12:51, you typed "Users" while there is no such thing related to the codings. I dont get it. Can you please explain to me.

  • @eshankavinda609
    @eshankavinda609 Год назад

    Thank You. Great explanation.

  • @AbhishekKumar-dn9ig
    @AbhishekKumar-dn9ig 5 лет назад +1

    Thanks sir your video tutorial helps me a lot Thank you so much

  • @DChristop
    @DChristop 5 лет назад

    Thanks a lot. Keep on this amazing job!!! Nice to be here!!!

  • @acegaming5317
    @acegaming5317 5 лет назад +1

    2:07 im using new version of visual studio . in my case generate from database i not available tell me what to do.?

  • @priyankajaiswal4682
    @priyankajaiswal4682 2 года назад

    Great tutorial! Really Helpful 👏

  • @sh-tutorial3186
    @sh-tutorial3186 3 года назад

    Helpful! Is view model in Actions is implemented? Can you tell me how ?

  • @codelord9031
    @codelord9031 2 года назад

    You just saved my life

  • @sathishchowdary8346
    @sathishchowdary8346 6 лет назад +2

    Nice Tutorial. You should have included Email and sending code for email verification.

  • @jayamalaraut273
    @jayamalaraut273 4 года назад

    Very well explained👍

  • @meenakshir5226
    @meenakshir5226 2 года назад

    Need small clarification. Are you working with database first approach? Bit confused after watched some other videos with a concept of code first and database first approach

  • @rucaskeeper666
    @rucaskeeper666 4 года назад +1

    Sir very good tutorial. I have a question: when I run it says: error en el servidor de la aplicación '/'. Resource ca not be found

  • @alicenguyen7355
    @alicenguyen7355 5 лет назад

    Your video is the best, Thank you so much. Good luck

    • @CodAffection
      @CodAffection  5 лет назад

      Glad you found the video helpful. and thanks for the support.

  • @joseantoniourbinagutierrez4223
    @joseantoniourbinagutierrez4223 6 лет назад

    Great tutorial, it's so useful and clear.

  • @Luca_040
    @Luca_040 5 лет назад +8

    In real world:
    Never save passwords in plain text

  • @pranitamore4509
    @pranitamore4509 4 года назад

    Thank you so much sir😊🤗

  • @adamhardie506
    @adamhardie506 6 лет назад +2

    Hey man, do you know why I can see the UserID on the webpage when I run it after creating the usercontroller?

  • @ziktiz4221
    @ziktiz4221 5 лет назад +1

    Good job.
    Please can you upload the script folder you used in this project?

  • @Bo-vf2lo
    @Bo-vf2lo 4 года назад

    Unable to update the EntitySet 'User' because it has a DefiningQuery and no element exists in the element to support the current operation.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Data.Entity.Core.UpdateException: Unable to update the EntitySet 'User' because it has a DefiningQuery and no element exists in the element to support the current operation.
    how can i fix it ?? pls reply me

  • @mohamadalibrahim2995
    @mohamadalibrahim2995 7 лет назад

    I like your tutorials

  • @ahamadshaik9023
    @ahamadshaik9023 4 года назад

    clarify the doubt from where u get Dbmodel() in the code

  • @thetruereality2
    @thetruereality2 2 года назад

    ADO.Net Entity Data Model missing, even after installing Framework SDK 6 and after choosing the .Net Framework instead of .Net Core. Please help

  • @atiqahazizee1592
    @atiqahazizee1592 6 лет назад

    i'm having error where my models name can't be found when i follow step at 12:40
    please help, i'm new to .Net

    • @CodAffection
      @CodAffection  6 лет назад

      it is the name of db context class which we have given during EF Model creation.

    • @ankitadongarkar2370
      @ankitadongarkar2370 4 года назад

      @@CodAffection Hii..I am still unable to find that models name..Can u plz help me in that. I need to solve this error asap.

  • @aysebeyzaunal3472
    @aysebeyzaunal3472 2 года назад

    if our database have a lot of table and the table are connected with foreign key how can ı do it?

  • @abi4949
    @abi4949 3 года назад

    sir i for got the connection name saved as entity of the data base. how can i get that?

  • @visaboxofficial
    @visaboxofficial 7 лет назад

    hey, in MVC, InternetApplication, there is a built in AccountController for login registration, Is there a way that we can mold it to save record into our SQLServer Datebase ?

  • @hrithiemenon8246
    @hrithiemenon8246 5 лет назад

    Thank you so much! Works perfectly :)

  • @niksdevatale3539
    @niksdevatale3539 2 года назад

    Thanku sir for this

  • @jspalding70
    @jspalding70 7 лет назад +1

    Another great series. I was looking for the email verification method. Do you have any suggested links?

    • @CodAffection
      @CodAffection  7 лет назад

      no,
      you can implement email verification like this :
      1. Send mail to the user with a link containing encrypted code,
      eg. format : http/www.example.com/EmailVerification.?code={generatedcode}
      2. keep a database record for the user with this code - there should be column isVerified (Initially it will be false)
      3. When user click on the link, find user record with given generated code and mark the record as verified.
      [ generated code should not repeat ]

    • @list5s
      @list5s 6 лет назад

      WHAT IS THE PROBLEM E-MAIL VERIFICATION YOU JUST EDIT PASSWORD TO EMAILADDRESS THAT'S IT

  • @bishopbeaters7976
    @bishopbeaters7976 4 года назад +1

    Brother how to merge a login and registration?

  • @nohaamr9741
    @nohaamr9741 5 лет назад

    System.InvalidOperationException: 'The entity type User is not part of the model for the current context.'
    i get this error when i click on the submit button

  • @uvaismuhamed231
    @uvaismuhamed231 6 лет назад +1

    Getting error at db.savechanges() on registration controller

  • @rakeshranjan3815
    @rakeshranjan3815 5 лет назад

    Thanks, its help me a lot.

  • @indrianids
    @indrianids 5 лет назад

    hi, thanks for the video. may I know how to add dropdown data ?

  • @Prav99999
    @Prav99999 4 года назад

    Hi sir... Not getting fields from local db while creating view.... What is the problem in that sir...

  • @shishirmathew1999
    @shishirmathew1999 6 лет назад

    Thanks but getting an error..sqlexception: cannot insert explicit value for identity column in table 'user' when identity_insert is set to off.

  • @Theindian0505
    @Theindian0505 5 лет назад +2

    sir, i have one error => (DbModels dbModel =new DbModels()) that is given error plz give me soln.

    • @yasarkhan4735
      @yasarkhan4735 4 года назад

      I was also getting the same error and I believe its the same one and the solution is we need to create an object of ADO.Net entity, not the model name.

    • @jatinmaithul2078
      @jatinmaithul2078 4 года назад

      @@yasarkhan4735 can you give me the desmonstration video link if you have any

    • @maiga4244
      @maiga4244 4 года назад

      Please, where you able to get the solution for the (DbModels dbModel =new DbModels()) problem?. Very urgent please, thank you.

  • @cihatcan9395
    @cihatcan9395 5 лет назад

    I have one problem
    DbModel.TBL_UYEs.Add((userModel));
    this block is creating problem
    DbModel.SaveChanges();
    Error:
    Severity Code Description Project File Line Suppression State
    Error CS1503 Argument 1: cannot convert from 'OdevProject.Models.Sınıflar.kayıt' to 'OdevProject.Models.EntityFramework.TBL_UYE' OdevProject C:\Users\Cihat\source
    epos\OdevProject\OdevProject\Controllers\UyeController.cs 84 Active

  • @jeffersonsalvador6893
    @jeffersonsalvador6893 7 лет назад

    I have this problem about the reference or assembly reference in DbModel. in [httppost] section. There's a red line under DbModel in DbModel dbModel= new DbModel line .
    what do you think is the problem ? thanks in advance.

    • @CodAffection
      @CodAffection  7 лет назад

      +Jefferson Salvador import model namespace

    • @jeffersonsalvador6893
      @jeffersonsalvador6893 7 лет назад

      I had fixed this problem :) I just missed one step. I didn't change the name of the entity into DbModels. Thanks a lot sir :) by the way, is it possible to create add to cart button in mvc website ? we're making a school project that enable users to buy furniture. Hope to get a reply :) Thanks again.

    • @nohaamr9741
      @nohaamr9741 5 лет назад

      @@jeffersonsalvador6893 how did you solve this error?

  • @programingkeda1328
    @programingkeda1328 2 года назад

    Sir I am gating an error in save change(); plz reply

  • @mirzaabdullah8833
    @mirzaabdullah8833 5 лет назад

    I am facing an error while running an application can you please assist me with that?

  • @ShanKhanYousafzai
    @ShanKhanYousafzai 6 лет назад +1

    bro in my template the checkbox is not show why?
    IsAdmin

    • @tayyabjatoi8644
      @tayyabjatoi8644 4 года назад

      In Sqlserver make data type of IsAdmin as bit.

  • @theodoremaepa7347
    @theodoremaepa7347 6 лет назад

    Is it possible to insert into more than one table without using stored procedure in mvc, i am a beginner. I am hoping to get a reply

    • @CodAffection
      @CodAffection  6 лет назад

      here is an example for multiple table insertion from EF. stackoverflow.com/questions/18142456/how-to-insert-data-into-two-tables-at-a-time-using-entity-framework

    • @list5s
      @list5s 6 лет назад

      Yes you can insert , just create another table and model and then make an object of model then same process you can insert data in multiple table.

  • @jaiswalchinar
    @jaiswalchinar 6 лет назад

    Not able to add multiple rows ... please help

  • @ahmetexchange
    @ahmetexchange 7 лет назад

    I get an exception like this 'System.Data.Entity.Infrastructure.DbUpdateException'
    on dbModel.SaveChanges() line.
    Please help.

    • @ahmetexchange
      @ahmetexchange 7 лет назад

      The value returned for the UserID = 0, I think the mistake could be here. Does not it have to start 1?

    • @CodAffection
      @CodAffection  7 лет назад

      Set UserID Column as IdentityColumn ?

  • @sajibdas4757
    @sajibdas4757 6 лет назад

    help
    The model item passed into the dictionary is of type 'project.Controllers.UserController', but this dictionary requires a model item of type 'project.Models.Student'.

  • @subhasismishra6619
    @subhasismishra6619 3 года назад

    in my system appdb is not visible.

  • @programmistph3393
    @programmistph3393 3 года назад

    Nice bro :)

  • @syedikramulla3693
    @syedikramulla3693 7 лет назад +1

    Very good video

  • @lipsitapriyadarshinee7280
    @lipsitapriyadarshinee7280 6 лет назад

    dbModel.SaveChanges(); issi step me ye error dikharahahe. ( An exception of type 'System.Data.Entity.Validation.DbEntityValidationException' occurred in EntityFramework.dll but was not handled in user code)

    • @papputarun
      @papputarun 6 лет назад

      U are using migration, then update database, otherwise write code in global. Asax

  • @armanamrazyan6609
    @armanamrazyan6609 7 лет назад

    6:46 in comments they said-> MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!!!!!!!!!!!!!!!!!

  • @jacobcrosby101
    @jacobcrosby101 6 лет назад

    why does MS make so dang difficult to relate another table/model to the Identity framework models.

  • @areebazafar6594
    @areebazafar6594 6 лет назад

    any one tell me plx dmodel why not working in my program ?

  • @ssirikrish6459
    @ssirikrish6459 6 лет назад

    i did same like this. but getting error ..Invalid column name 'ConfirmPassword'...how to fix this error, can u help me?
    savechanges() method, it is considering ConfirmPassword also a table column.

    • @CodAffection
      @CodAffection  6 лет назад

      please download the demo project and compare with your project.

    • @ssirikrish6459
      @ssirikrish6459 6 лет назад

      yes.i tried that one also.but its not working.
      can you please provide your mail ID..?

  • @sodiptosaha229
    @sodiptosaha229 6 лет назад

    how Isadmin =1 when data insert?

  • @taimoorsheikh5001
    @taimoorsheikh5001 7 лет назад

    Whats the difference for IsAdmin or not?

    • @CodAffection
      @CodAffection  7 лет назад

      isAdmin is an indication to show whether the use is admin or not, it is often stored in user details table to assign special permission for admin users. in the project it does not make any difference. it is up to you to add admin roles in the project.

    • @taimoorsheikh5001
      @taimoorsheikh5001 7 лет назад +1

      Dotnet Mob Yeah that's what i was thinking too can you provide a video with admin permissions and everything?

  • @muruganandhams4203
    @muruganandhams4203 3 года назад

    Thanks bro

  • @diegofonseca567
    @diegofonseca567 6 лет назад

    Very good

  • @asoryu3867
    @asoryu3867 7 лет назад

    Im Missing User.cs when im creating model can you please help me to fix it please.

    • @list5s
      @list5s 6 лет назад

      Dear select the table then click next then user user.cs will added if you are not selected you definitely miss user.cs

  • @boubasylla8072
    @boubasylla8072 7 лет назад

    it is necessary to add if you forget the password !how to get the password using code to send on the telephone .

    • @CodAffection
      @CodAffection  7 лет назад

      You may need to SMS API to send verification code from C# application

    • @boubasylla8072
      @boubasylla8072 7 лет назад

      but you have not added the code when the password is forgotten.It is necessary to add for me as I need .Please

    • @CodAffection
      @CodAffection  7 лет назад

      thanks for your video suggestion, I will include that in upcoming asp.net mvc tutorial

  • @hoangphuc3531
    @hoangphuc3531 6 лет назад

    System.Data.Entity.Validation.DbEntityValidationException: 'Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. Who can help me know what is not. thank you

  • @amnaamin8967
    @amnaamin8967 6 лет назад +1

    fantastic

  • @chittabinodansahoo4937
    @chittabinodansahoo4937 7 лет назад +1

    very good.

  • @SarahKhan-gt9bt
    @SarahKhan-gt9bt 5 лет назад

    I have an error in [DisplayName]

    • @yasarkhan4735
      @yasarkhan4735 4 года назад

      I hope you added the using System.ComponentModel.DataAnnotations.

  • @dha464
    @dha464 4 года назад

    Sir can use show us how to hash the password?

  • @sh-tutorial3186
    @sh-tutorial3186 3 года назад

    SUBSCRIBED :)

  • @kris4117
    @kris4117 7 лет назад

    Do you know what you are teaching? or how to proceed step by step?

  • @harimalla2485
    @harimalla2485 7 лет назад

    can u give the source code of this project.

  • @syrymzhakypbekov1949
    @syrymzhakypbekov1949 4 года назад

    cool!

  • @mohamadalibrahim2995
    @mohamadalibrahim2995 7 лет назад

    thanks

  • @deepeshkumar2925
    @deepeshkumar2925 Год назад

    for 2023 its a waste video.

  • @beautyIsinEverything753
    @beautyIsinEverything753 4 года назад

    Very nice

  • @mohamadalibrahim2995
    @mohamadalibrahim2995 7 лет назад

    thanks