C# - Create User Registration Or Sign Up Form With SQL Server

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

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

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

    goo.gl/RFY5C2 : Subscribe to CodAffection
    goo.gl/SUi4bg : Login Window in C# Using SQL Server
    goo.gl/zV892S : C# CRUD Operations With SQL Server
    goo.gl/NhNQeZ : Export Excel in C# Applications
    :

  • @OriginalTubester
    @OriginalTubester 7 лет назад +5

    I followed through and this video helped loads, thank you.

  • @p1ntos
    @p1ntos 4 года назад +4

    VERY USEFUL VIDEO EVEN IN 2020, Thanks!

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

    Great job. Very easy to understand. Keep up the good work Sir!

  • @type-1civilization527
    @type-1civilization527 5 лет назад +3

    OMG, you really helped me, thanks!😉

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

    Thanks for Your kind efforts. It's easily understandable as i am a new learner. God Bless You.

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

    thank you.. for the video have a good day.. brother.

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

    Thank you very much. I used This instruction to Create WPf form.

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

    Verry nice video!! Thanks a lot

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

    Great teaching.. Thanks

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

    best teaching method i like it very much please share more videos with simple and easy way us

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

      thanks for your wonderful feedback.

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

    may god bless you, you are the better one!!

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

      thanks for your wonderful feedback.

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

    Who has an error with ALTER, so, Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.

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

    its wonderful, thanks very very much

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

    Any suggestion on what to do if u dont want to have the possiblite to add accounts with same Username ?

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

    ERROR Found:
    System.Data.SqlClient.SqlException: 'Procedure or function 'addreg' expects parameter '@id', which was not supplied.'

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

    Thamk you so much!

  • @Anton-sz6ef
    @Anton-sz6ef 5 лет назад

    Thank you so much...!

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

    That's nice , i like but what if i want to add a sign in windows to this registration system ? ( i mean related to it and db ) how to do that ? could you please teach us ?

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

    At 9:56 what is that connection string? Where did it come from?

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

      ruclips.net/video/zsorq1NsbTA/видео.html watch this

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

      The setup may be different based on what database you r using like MySQL or access

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

    can u please tell me why you have used storeprocedure

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

    Does any changes to the database apply for other people using my program?

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

    from where i can get the right side of the variable of connectionString please i need a help?

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

      EN-Select the data in the Server Explorer or right click on it and select Properties. In the Properties Window, the Connection String property to your database appears.
      SP-Seleccionas la de datos en el Explorador de Servidores o click derecho sobre ella y seleccionas Propiedades. En la Ventana de Propiedades aparece la propiedad Cadena de Conexión a su base de datos.

  • @euginebryansoncadiz1834
    @euginebryansoncadiz1834 4 года назад +2

    Theres an error when executing the store procedure "Msg 156, Level 15, State 1, Procedure UserAdd, Line 9
    Incorrect syntax near the keyword 'AS'."

  • @levizjaperdije8499
    @levizjaperdije8499 6 лет назад +5

    this error occurs
    System.Data.SqlClient.SqlException: 'The request for procedure '' failed because '' is a table object.'

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

    need urgent help as need this done for a university deadline 17th april 11:30pm
    how to i fix this issue
    sqlCon.Open();
    and the lines below are generating a instance failure error, but i cant see how to fix it
    please help

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

      Did you ever find the answer

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

      @@bobmichell4088 in the end yeah, but i had to rely on C++ as the arrays were giving me trouble and connecting to my database was easier that way
      Looking forward to future videos on this channel

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

    Hey do you have a video on adding components to tool box? I tried adding but they don’t seem to show

  • @AhmedRaza-ee7yk
    @AhmedRaza-ee7yk 6 лет назад +1

    plese make a video about how to update or delete registration form or signup form

  • @DarkShadow-oh5di
    @DarkShadow-oh5di 5 лет назад

    In my scenario the username have to be unique...so Can I make it primary key or its possible with userID as primary key??

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

      your choice. you can use id or username column.

    • @DarkShadow-oh5di
      @DarkShadow-oh5di 5 лет назад

      @@CodAffection oka thanks bro I appreciate that💕

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

    where the hell that connection string came from??! 9:55

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

      go to your sql database, under properties look for connection string, you should find it there, just copy and paste it ;)

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

      this video will help you to find out your db connection string : ruclips.net/video/WJ-CdeTGxp8/видео.html

  • @Howto-vo2sh
    @Howto-vo2sh 6 лет назад +1

    Hello!
    So thanks for your video. You did it very well but I have a problem. When I'm starting programme It's writing:
    System.Data.SqlClient.SqlException: 'Procedure or function 'UserAdd' expects parameter '@Id', which was not supplied
    If you answer I'll be happy!

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

      still you have the problem?

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

      you forgot to remove @Id from the UserAdd procedure.

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

      @@CodAffection i faced same problem

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

    I have a questions after i have done doing those whole registration sign up from where is that next management trio you are saying? Is that another application or i remain in c#? Please answer the question thanks

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

    i want user register Form in c#windows Application using inheritance.Can you show that video?

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

    Thank you once again for the lesson.
    I do have one issue in my program. How can I autofill the Primary and foreign keys in the registration form?
    I have the customer data going to the customer table and the user name and password going to the user login table.
    The Customer table is Customer_ID (Primary key), User_ID( Foreign key
    User Login table has User_ID (Primary key)
    Everything worked except I did not fill the ID columns on both tables and got a null error for the key columns
    Any suggestions?

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

      I also ran into this issue, let me know if you found a solution.

  • @vanko2052
    @vanko2052 5 лет назад +3

    Show me "could not find stored procedure UserAdd"
    HELP ME!!!

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

      Delete UserAdd from database because you will not need it

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

    when i wanna see my data base with "Select * from UserAdd" + Execute in SQL i get "Msg 208, Level 16, State 3, Line 12
    Invalid object name 'UserAdd'." after you removed UserID and changed 'create' to 'Alter'
    any ideas why?

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

    good day I have Q: I want to do a login form and register form do I do separate database or do separate table ?

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

      Login form would verify username/password is in the user table in a database, and register form would add a new user to the user table in the same database. Unless they are for two different systems, they would be associated with the same table in the same database.

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

      @@joshuaratcliff8554 Thank You
      ;)

  • @georgenze1956
    @georgenze1956 7 лет назад +4

    you did not show how you get the connection string

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

      Detailed explanation on SQL Server connection string : ruclips.net/video/WJ-CdeTGxp8/видео.html

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

    I am getting an error saying something along the lines of "Incorrect syntax near the word Table" in my query string. It did not let me name the table so it kept it as Table instead of tbl_Login

  • @กัณฑ์พงษ์ศรีสุธาภัทร์

    pls help me
    i don't understand why 'txt' and 'commandType' have error

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

    does the code helps with users cannot register duplicate account name?

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

    connecting the different data tables for each user how????? pls help

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

    where do you get the connection string

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

      explained here: ruclips.net/video/WJ-CdeTGxp8/видео.html

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

    please do one video security based application using asp.net membership Registration, login and logout

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

      Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.

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

    How to Solve this problem _ executenonquery connection property has not been initialized. c# in registration form

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

    awesome

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

    System.Data.SqlClient.SqlException: 'Could not find stored procedure 'UserAdd'.'

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

    Sir can u make a Registration form connect to MyPhp not sql

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

    Hi, every one I wish u .................................................... best in all aspect of life.

  • @AbdullahAhmed-ts7zc
    @AbdullahAhmed-ts7zc 3 года назад +1

    Sql.con gives me error :(

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

    Thank you for your help. When I try to run the app, there's an error for @name_item in the line: sqlCmd.Parameters.AddWithValue(@name_item, stichwortTB.Text.Trim()); It says "the name 'name_item' doesn't exist in this context. It is however the parameter I used in the sql procedure. What can I do about it? Thank you for your help.

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

      Have you gotten any reply on this perhaps ?
      or answers..

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

      @@de_Kazz Unfortunately, nothing until now. I will have a closer look in the weeks to come, if I find out more.

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

    after that if we want to create user Log In, how to do that?????????

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

    Please try to make your videos in urdu/hindi.. in that manner that would be so valuable....

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

    I created the form on visual studio 2017, but I've never worked with Microsoft SQL sever management studio 17 and when I open the program, it asks me for a server type, server name and authentication.....Can you please help me?

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

      try this ruclips.net/video/h7ImvYpfcUk/видео.html

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

    Where do i download that sql?

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

    After building this page how do I login to a certain page using this database ? can U please give the code for that ?

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

    how to fix Msg 102, Level 15, State 1, Procedure UserAdd, Line 8 [Batch Start Line 0]
    Incorrect syntax near ','.

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

    do you have version in mysql workbench?

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

      yes, ruclips.net/video/O27jl60NvQc/видео.html

  • @1234danik
    @1234danik 5 лет назад

    Hello, how to avoid duplicate usernames in database? Please help :)

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

    How do you stop users from using existing username?

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

    i tried to do it but i can't change the Create Proc to Alter Proc SQL70001:This statement is not recognized in this context.

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

      Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.

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

    I use the process as you show in your video. but my User registration is not working. I think its because my sql server is not windows authentication its SQL server authentication. please help what should i do in that case?

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

      try this : ruclips.net/video/WJ-CdeTGxp8/видео.html

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

    Thanks for this video...Can u make ...one .net web page and show database connectivity using C# only.....and perform operation in database with sql server

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

      with asp.net web form : ruclips.net/video/CsT1G3SmHXE/видео.html
      with asp.net mvc : ruclips.net/video/1IFS33sPDhE/видео.html

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

    Hey DotnetMOB, Thank you for great guide! PLease can you show us how to make DAL/CONTROLLER. I want do make diz project with MVC

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

      User Registration With MVC : ruclips.net/video/xBS9FMF2NFM/видео.html

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

    I cant change the name of my table and I have an error saying incorrect syntax near AS. Expecting VARIABLE.

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

      still having this problem.

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

      @@CodAffection nah... i used other codes..thanks for the info though

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

      @@ralstinejaneigne3098 bro you must delete , next to password :)

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

    Hey! Could you please help me out?
    When trying to set parameters in sqlcmd.Parameters.AddWithValue("@FirstName",txtFirstName.Text.Trim());
    I get an error that says txtFirstName does not exist in the current context. How can I solve this? I would appreciate help from anyone!

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

      make sure your writing this in code behind code of the same form where we have the first name text box. or you can download the demo source code from the download link and compare with yours.

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

      Make sure your text boxes are named txtFirstName and txtLastName etc etc

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

    ive tried your code but the thing here is that.
    The password textbox cant read varchar password. so can you tell me what can i do about it.
    it always displays nvarchar can not be converted to int

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

      Try txtPassword.Password instead of txtPassword.Text under using (SqlConnection sqlcon = new SqlConnection(connectionstring))

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

    Where I can find Microsoft SQL server Management Studio?

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

      learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16
      select the same version as that of your sql server from left top menu. ( > SQL Server > ...)

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

    Where and how to get that connection string?

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

      explained here: ruclips.net/video/WJ-CdeTGxp8/видео.html

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

    For some reason when i Run my program it cant find the stored procedure, any tips? (I followed guide closely)

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

      please verify the stored procedure name.
      you can download project source code along with db description and then compare with your project.

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

      I figured it out, the problem was that the database that I was configuring was not the same one that was connected to my client. Thank you

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

      thanks for commenting your solution it'll help others to fix their problem.

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

    Hi, if I wanted to use 'Email' instead of userid, what would it be on the Data Type?
    -Regards

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

      nvarchar or varchar would be enough.

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

    How to take connection string?

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

      detail video is here : ruclips.net/video/WJ-CdeTGxp8/видео.html

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

      detail video is here : ruclips.net/video/WJ-CdeTGxp8/видео.html

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

    How can I resolve "System.Data.SqlClient.SqlException"?

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

      Make sure you had added "using System.Data.SqlClient" with the other libraries.

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

    thank u

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

    Error 26: Error Locating Server/Instace Specified Fix

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

    Please could you do a video on how to create a role based login ? RBAC style login

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

    Laaable !!!! really

  • @Ghoulz--
    @Ghoulz-- 7 лет назад

    how if we we want to register the username that already created, and we want to make a warn that username already taken? ty

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

      Sorry for the late reply,
      You can warm user about duplicate user name inside btnSubmit Button Click Event
      1) Create StoredProcedure : CheckDuplicateUsername
      Input : username
      Output : 0 - No Duplicate 1 - Duplicate Found
      2) Call the StoredProcedure before saving the record - if result 1 show 'duplicate username' in a message box.

    • @Ghoulz--
      @Ghoulz-- 7 лет назад

      thanks for the reply. im still dont get how to make input output using data that in sql table. ty

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

      1) Create a storeprocedure : CheckDuplicateUsername
      CREATE PROC CheckDuplicateUsername
      @UserName VARCHAR(100)
      AS
      IF EXISTS (SELECT * FROM tblUser where FirstName+' '+LastName = @UserName)
      SELECT 1
      ELSE
      SELECT 0
      2) Call this storeprocedure before save operation
      Pass FirstName+' +LastName to @UserName Parameter
      If it return 1 then there is a duplicate record - show warning message.

    • @Ghoulz--
      @Ghoulz-- 7 лет назад

      well thanks for the reply :)) goodluck, dotnet mob :) im c# beginner here hehe xd

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

      you are welcome :)

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

    It is tough to speak for you otherwise it is good overall but try to make it in urdu...

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

    je t'aime

  • @АлексейБулай-и6л
    @АлексейБулай-и6л 4 года назад

    👍👍👍👍

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

    Mic!

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

    DOND DELL ME WHAD DO DO

  • @度空-u5r
    @度空-u5r 4 года назад

    咖喱味英语

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

    Hu

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

    Don't acting like amarican accent use your natural .

  • @metea.890
    @metea.890 4 года назад

    System.Data.SqlClient.SqlException: 'Could not find stored procedure 'UserAdd'.'