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

  Рет қаралды 262,797

CodAffection

CodAffection

Күн бұрын

How to Create a User Registration Form Or Sign Up Form in C#.
In this tutorial, we have discussed how to design and implement user registration or sign up form in the c# windows form application.
📂 GitHub Repository
► goo.gl/f3TQMh
💖 Buy me a Coffee
➤ bit.ly/3L36ut4 (PayPal)
➤ bit.ly/3VF0iPT (Razorpay)
🌀 Related Videos
goo.gl/ySUFf8 : Similar Mvc Tutorials
goo.gl/3ajHuA : Similar C# Video Tutorials
🔗 Find me in
Udemy : bit.ly/3RtyQSB
Facebook : / codaffection
GitHub : github.com/codaffection
Discord : / discord
Twitter : / codaffection
#WinForm #WindowsForm #CodAffection

Пікірлер: 160
@CodAffection
@CodAffection 7 жыл бұрын
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 6 жыл бұрын
I followed through and this video helped loads, thank you.
@thayalinimuththiah7011
@thayalinimuththiah7011 6 жыл бұрын
Thank you very much. I used This instruction to Create WPf form.
@nsanerydah
@nsanerydah 4 жыл бұрын
Great job. Very easy to understand. Keep up the good work Sir!
@type-1civilization527
@type-1civilization527 5 жыл бұрын
OMG, you really helped me, thanks!😉
@p1ntos
@p1ntos 4 жыл бұрын
VERY USEFUL VIDEO EVEN IN 2020, Thanks!
@benjamintenhove582
@benjamintenhove582 5 жыл бұрын
Verry nice video!! Thanks a lot
@truongnhutbui4835
@truongnhutbui4835 5 жыл бұрын
its wonderful, thanks very very much
@ruvim2716
@ruvim2716 4 жыл бұрын
Hey do you have a video on adding components to tool box? I tried adding but they don’t seem to show
@danairmagonzalezmachorro9763
@danairmagonzalezmachorro9763 Жыл бұрын
Thamk you so much!
@shovikanand3214
@shovikanand3214 3 жыл бұрын
Great teaching.. Thanks
@Anton-sz6ef
@Anton-sz6ef 5 жыл бұрын
Thank you so much...!
@bienvinidolibre3723
@bienvinidolibre3723 2 жыл бұрын
thank you.. for the video have a good day.. brother.
@danielsaxlind5052
@danielsaxlind5052 5 жыл бұрын
Any suggestion on what to do if u dont want to have the possiblite to add accounts with same Username ?
@Daaboo
@Daaboo 3 жыл бұрын
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?
@Hitury
@Hitury 4 жыл бұрын
Does any changes to the database apply for other people using my program?
@user-zt1nr5xh3z
@user-zt1nr5xh3z 5 жыл бұрын
pls help me i don't understand why 'txt' and 'commandType' have error
@cyberdash7883
@cyberdash7883 3 жыл бұрын
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 ?
@TIAGO543211
@TIAGO543211 5 жыл бұрын
may god bless you, you are the better one!!
@CodAffection
@CodAffection 5 жыл бұрын
thanks for your wonderful feedback.
@harikrishnants8545
@harikrishnants8545 4 жыл бұрын
ERROR Found: System.Data.SqlClient.SqlException: 'Procedure or function 'addreg' expects parameter '@id', which was not supplied.'
@rajim1480
@rajim1480 Жыл бұрын
Thanks for Your kind efforts. It's easily understandable as i am a new learner. God Bless You.
@CodAffection
@CodAffection Жыл бұрын
Glad to hear that
@shivanis3431
@shivanis3431 2 жыл бұрын
can u please tell me why you have used storeprocedure
@SATACPR22
@SATACPR22 2 жыл бұрын
thank u
@babypotatoplus5826
@babypotatoplus5826 5 жыл бұрын
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
@halilmertkartal4924
@halilmertkartal4924 2 жыл бұрын
write [Table] instead of Table
@gokulnathr8045
@gokulnathr8045 6 жыл бұрын
i want user register Form in c#windows Application using inheritance.Can you show that video?
@newabyuser
@newabyuser 5 жыл бұрын
awesome
@yusraelahi9877
@yusraelahi9877 5 жыл бұрын
best teaching method i like it very much please share more videos with simple and easy way us
@CodAffection
@CodAffection 5 жыл бұрын
thanks for your wonderful feedback.
@nurjimaradam2145
@nurjimaradam2145 6 жыл бұрын
Sir can u make a Registration form connect to MyPhp not sql
@gauravuniyal5870
@gauravuniyal5870 6 жыл бұрын
Laaable !!!! really
@levizjaperdije8499
@levizjaperdije8499 6 жыл бұрын
this error occurs System.Data.SqlClient.SqlException: 'The request for procedure '' failed because '' is a table object.'
@doguhanyangoz5743
@doguhanyangoz5743 5 жыл бұрын
you should type so dbo. [ Table Name]
@happygirl2406
@happygirl2406 3 жыл бұрын
does the code helps with users cannot register duplicate account name?
@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 : kzbin.info/www/bejne/rnO2anmDe5eBfK8
@AhmedRaza-ee7yk
@AhmedRaza-ee7yk 5 жыл бұрын
plese make a video about how to update or delete registration form or signup form
@ragulm8676
@ragulm8676 Жыл бұрын
How to Solve this problem _ executenonquery connection property has not been initialized. c# in registration form
@1234danik
@1234danik 5 жыл бұрын
Hello, how to avoid duplicate usernames in database? Please help :)
@medmahdialitaleb8209
@medmahdialitaleb8209 4 жыл бұрын
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.
@jexxgaming1
@jexxgaming1 2 жыл бұрын
Where do i download that sql?
@blaxzefl
@blaxzefl 4 жыл бұрын
System.Data.SqlClient.SqlException: 'Could not find stored procedure 'UserAdd'.'
@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 kzbin.info/www/bejne/nmisnqmPpcuWi80
@theboss4006
@theboss4006 3 жыл бұрын
connecting the different data tables for each user how????? pls help
@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 Жыл бұрын
I also ran into this issue, let me know if you found a solution.
@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
@CodAffection
@CodAffection 5 жыл бұрын
management trio ?
@euginebryansoncadiz1834
@euginebryansoncadiz1834 4 жыл бұрын
Theres an error when executing the store procedure "Msg 156, Level 15, State 1, Procedure UserAdd, Line 9 Incorrect syntax near the keyword 'AS'."
@thebenzc200
@thebenzc200 3 жыл бұрын
Got the same error too
@newzealandroadster
@newzealandroadster 3 жыл бұрын
delete the commas ( , ) on the top of 'AS'
@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?????????
@angrysunshinebandit5114
@angrysunshinebandit5114 4 жыл бұрын
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 3 жыл бұрын
Did you ever find the answer
@angrysunshinebandit5114
@angrysunshinebandit5114 3 жыл бұрын
@@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
@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 жыл бұрын
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
@ryanlesleykeyer9049
@ryanlesleykeyer9049 5 жыл бұрын
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 5 жыл бұрын
Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.
@Howto-vo2sh
@Howto-vo2sh 5 жыл бұрын
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 5 жыл бұрын
still you have the problem?
@junix199
@junix199 5 жыл бұрын
you forgot to remove @Id from the UserAdd procedure.
@shashankc21
@shashankc21 4 жыл бұрын
@@CodAffection i faced same problem
@KingofShena
@KingofShena 6 жыл бұрын
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 6 жыл бұрын
Try txtPassword.Password instead of txtPassword.Text under using (SqlConnection sqlcon = new SqlConnection(connectionstring))
@vanko2052
@vanko2052 5 жыл бұрын
Show me "could not find stored procedure UserAdd" HELP ME!!!
@rachidnait
@rachidnait 5 жыл бұрын
Delete UserAdd from database because you will not need it
@essics1462
@essics1462 3 жыл бұрын
how to fix Msg 102, Level 15, State 1, Procedure UserAdd, Line 8 [Batch Start Line 0] Incorrect syntax near ','.
@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 ?
@mubinonelove
@mubinonelove 5 жыл бұрын
Yes plz tell me als
@shekhnasim1541
@shekhnasim1541 5 жыл бұрын
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 5 жыл бұрын
try this : kzbin.info/www/bejne/jXuQdJebiayrppo
@GlitchToGaming
@GlitchToGaming 2 жыл бұрын
How do you stop users from using existing username?
@DarkShadow-oh5di
@DarkShadow-oh5di 4 жыл бұрын
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 4 жыл бұрын
your choice. you can use id or username column.
@DarkShadow-oh5di
@DarkShadow-oh5di 4 жыл бұрын
@@CodAffection oka thanks bro I appreciate that💕
@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 жыл бұрын
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.
@ZOUZOU5979
@ZOUZOU5979 4 жыл бұрын
je t'aime
@V2traveller
@V2traveller 6 жыл бұрын
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 6 жыл бұрын
with asp.net web form : kzbin.info/www/bejne/eaS3YnppiNJ7jqc with asp.net mvc : kzbin.info/www/bejne/Z3qphGZpqLV3nqc
@ginopornasdoro9183
@ginopornasdoro9183 4 жыл бұрын
do you have version in mysql workbench?
@CodAffection
@CodAffection 4 жыл бұрын
yes, kzbin.info/www/bejne/hWOam59sZbOph8U
@junix199
@junix199 5 жыл бұрын
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.
@konligjze2003
@konligjze2003 5 жыл бұрын
yea i have this problem too...
@j_merc
@j_merc 4 жыл бұрын
At 9:56 what is that connection string? Where did it come from?
@bluesilhouette6748
@bluesilhouette6748 4 жыл бұрын
kzbin.info/www/bejne/sKTSo6Rng9iViqM watch this
@bluesilhouette6748
@bluesilhouette6748 4 жыл бұрын
The setup may be different based on what database you r using like MySQL or access
@TomMaczka
@TomMaczka 5 жыл бұрын
Please could you do a video on how to create a role based login ? RBAC style login
@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 4 жыл бұрын
@@ralstinejaneigne3098 bro you must delete , next to password :)
@angusmcalister593
@angusmcalister593 6 жыл бұрын
Hi, if I wanted to use 'Email' instead of userid, what would it be on the Data Type? -Regards
@CodAffection
@CodAffection 6 жыл бұрын
nvarchar or varchar would be enough.
@sbzalz4611
@sbzalz4611 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@joshuaratcliff8554 Thank You ;)
@georgenze1956
@georgenze1956 6 жыл бұрын
you did not show how you get the connection string
@CodAffection
@CodAffection 6 жыл бұрын
Detailed explanation on SQL Server connection string : kzbin.info/www/bejne/jXuQdJebiayrppo
@user-nr9fx9fk4o
@user-nr9fx9fk4o 4 жыл бұрын
👍👍👍👍
@AbdullahAhmed-ts7zc
@AbdullahAhmed-ts7zc 3 жыл бұрын
Sql.con gives me error :(
@AlexMcTurk
@AlexMcTurk 4 жыл бұрын
where do you get the connection string
@CodAffection
@CodAffection 4 жыл бұрын
explained here: kzbin.info/www/bejne/jXuQdJebiayrppo
@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.
@santhoshk4196
@santhoshk4196 5 жыл бұрын
please do one video security based application using asp.net membership Registration, login and logout
@junix199
@junix199 5 жыл бұрын
Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.
@animeguy1511
@animeguy1511 4 жыл бұрын
Where and how to get that connection string?
@CodAffection
@CodAffection 4 жыл бұрын
explained here: kzbin.info/www/bejne/jXuQdJebiayrppo
@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 > ...)
@kou5479
@kou5479 5 жыл бұрын
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 : kzbin.info/www/bejne/jXuQdJebiayrppo
@inzaiqbal1743
@inzaiqbal1743 3 жыл бұрын
Please try to make your videos in urdu/hindi.. in that manner that would be so valuable....
@abdullahiaminu4840
@abdullahiaminu4840 4 жыл бұрын
Hi, every one I wish u .................................................... best in all aspect of life.
@bgrcomputersltd
@bgrcomputersltd 7 ай бұрын
Error 26: Error Locating Server/Instace Specified Fix
@aniruddhasoni6491
@aniruddhasoni6491 5 жыл бұрын
How to take connection string?
@CodAffection
@CodAffection 5 жыл бұрын
detail video is here : kzbin.info/www/bejne/jXuQdJebiayrppo
@CodAffection
@CodAffection 5 жыл бұрын
detail video is here : kzbin.info/www/bejne/jXuQdJebiayrppo
@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 жыл бұрын
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 3 жыл бұрын
It is tough to speak for you otherwise it is good overall but try to make it in urdu...
@FlexZone100
@FlexZone100 3 жыл бұрын
Mic!
@erenkaleli6861
@erenkaleli6861 Жыл бұрын
DOND DELL ME WHAD DO DO
@faridamammadova7707
@faridamammadova7707 5 жыл бұрын
Hu
@user-xq7gu2pq4d
@user-xq7gu2pq4d 4 жыл бұрын
咖喱味英语
@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'.'
C# Asp.Net - User Registration Or Sign Up With SQL Server
33:22
CodAffection
Рет қаралды 199 М.
Create Login Window in C# Using Sql Server
19:20
CodAffection
Рет қаралды 552 М.
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 57 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 14 МЛН
C#  Insert Update Delete View and Search
49:38
CodAffection
Рет қаралды 284 М.
How to Become a Highly Employable C# Developer in 2024
17:47
Gavin Lon
Рет қаралды 15 М.