How to compare password from notepad with in the textbox
-
Question 1form1) How to compare my default password that i save in notepad. How to compare with the password that user input in text box.How to call the password that have key in the notepad. Question 2: In another form I make to textbox one for user input old password and another textbox for user input new password.The new old password will be replace by the new password in the notepad.After this it will compare with the new password in the form1 Tq.Help Needed
-
Question 1form1) How to compare my default password that i save in notepad. How to compare with the password that user input in text box.How to call the password that have key in the notepad. Question 2: In another form I make to textbox one for user input old password and another textbox for user input new password.The new old password will be replace by the new password in the notepad.After this it will compare with the new password in the form1 Tq.Help Needed
notepad is a program. I assume you don't have notepad open ? File.ReadAllText will read the text in a text file, so you can compare it. Why would you store your password in a textfile ? Can you explain what you mean ? Because, notepad has nothing to do with your password, even if it can display it. And, if it can, it's so insecure that there's no point in it existing. What sort of app is it ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
notepad is a program. I assume you don't have notepad open ? File.ReadAllText will read the text in a text file, so you can compare it. Why would you store your password in a textfile ? Can you explain what you mean ? Because, notepad has nothing to do with your password, even if it can display it. And, if it can, it's so insecure that there's no point in it existing. What sort of app is it ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Hi sir... I have create login form that have one textbox and 1 ok button.How to store a password in database and retrieve it to compare with user inputed password in the text box. Another question: I have form2 that for user change password.In this form have two text box. One for user input the old password and another for user key in new password.After it compare that the old password in text box one .It will replace in database with new password. After that in form one it will compare the text box input with the new password in database. I think sir familiar with this all. Tq sir.
-
Hi sir... I have create login form that have one textbox and 1 ok button.How to store a password in database and retrieve it to compare with user inputed password in the text box. Another question: I have form2 that for user change password.In this form have two text box. One for user input the old password and another for user key in new password.After it compare that the old password in text box one .It will replace in database with new password. After that in form one it will compare the text box input with the new password in database. I think sir familiar with this all. Tq sir.
Hash the password when inserting it into the database and compare the hash values, not plain text. Can you use the built in ASP.NET 2.0 login controls? It would save a lot of work on your part.
only two letters away from being an asset
-
Hash the password when inserting it into the database and compare the hash values, not plain text. Can you use the built in ASP.NET 2.0 login controls? It would save a lot of work on your part.
only two letters away from being an asset
-
Sir this is for window form. Sir how to save password in database.How to compare when click ok button with the input in textbox.tq
krajah1984 wrote:
Sir this is for window form.
No, ASP.NET is, by definition, NOT windows forms, but web forms.
krajah1984 wrote:
Sir how to save password in database
Do you not know how to use a database ? For that sort of beginner info, you're better off buying a book.
krajah1984 wrote:
How to compare when click ok button with the input in textbox
The best way is a stored proc that takes the username/password and returns a success code. That way, the actual password never leaves the data layer.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Sir this is for window form. Sir how to save password in database.How to compare when click ok button with the input in textbox.tq
:omg::wtf:
only two letters away from being an asset
-
Sir this is for window form. Sir how to save password in database.How to compare when click ok button with the input in textbox.tq
Hello, You can use your Windows Form to get connected to your Database. There are number of choices that you have to make regarding the database server and then you can get connected to the database and have the luxury of sending and receiving data between your Windows Application and the database, such as storing Passwords, checking the login information and etc. I personaly use MySQL and it works just fine. Could you tell us what data base you are using so I can direct you to some Beginer's tutorial and get you started with simple commands to get you started? I hope I could be a help. Khoramdin -- modified at 12:00 Tuesday 27th March, 2007
-
Hello, You can use your Windows Form to get connected to your Database. There are number of choices that you have to make regarding the database server and then you can get connected to the database and have the luxury of sending and receiving data between your Windows Application and the database, such as storing Passwords, checking the login information and etc. I personaly use MySQL and it works just fine. Could you tell us what data base you are using so I can direct you to some Beginer's tutorial and get you started with simple commands to get you started? I hope I could be a help. Khoramdin -- modified at 12:00 Tuesday 27th March, 2007
Tq sir, I'm using mysql.How to connect to mysql using visual C#.How to compare the password. Can you help me sir. Before this I have create a password form that I set default password in coding of button click. I want to upgrade it so I can compare password and change password from the database.Tq sir
-
Tq sir, I'm using mysql.How to connect to mysql using visual C#.How to compare the password. Can you help me sir. Before this I have create a password form that I set default password in coding of button click. I want to upgrade it so I can compare password and change password from the database.Tq sir
Hello mate, Windows Applications were never meant to be connected to anythingelse than MS product. But you are in LUCK as there are ways to make your Windows Application work flawlessly with other technologies such as MySQL. Step 1: In order for your Windows Application written in C# to get connected to MySQL you need to have the right driver. You can get this from the good old MySQL website. Here is the link to save you the time and the headache looking for it, mate. http://dev.mysql.com/downloads/connector/odbc/3.51.html[^] Download and install the right package and then you are ready for Rock & Roll. Step 2: Add the following into your C# Windows Application:
private System.Data.Odbc.OdbcConnection OdbcCon; //open connection to server private System.Data.Odbc.OdbcCommand OdbcCom; //run a query on the database private System.Data.Odbc.OdbcDataReader OdbcDR; //read the query private System.Data.Odbc.OdbcDataAdapter OdbcAd; //Create a bridge between the Dataset and data source private string ConStr;
Step 3: Now you are ready to talk to your Database, mate. Just talk to your database using MySQL commands. What can be done is simply limited only by your imagination. Here is a few examples to set you in the right direction. Example 1: Getting Connected to MySQL database:private void btnConnect_Click(object sender, EventArgs e) { ConStr = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=" + txtIP.Text + ";PORT=" + txtPort.Text + ";DATABASE=" + txtDatabase.Text + ";UID=" + txtUsername.Text + ";PWD=" + txtPassword.Text + ";OPTION=3"; OdbcCon = new System.Data.Odbc.OdbcConnection(ConStr); btnListTables.Enabled = true; try { txtLog.AppendText("Openning connection...\r\n"); if (OdbcCon.State == ConnectionState.Closed) { OdbcCon.Open(); } txtLog.AppendText("Connection opened\r\n"); } catch (System.Data.Odbc.OdbcException Ex) { txtLog.AppendText(Ex.Message + "\r\n"); MessageBox.Show("Could not access the database.\r\nPlease make sure you completed the fields with the correct information and try again.\r\n\r\nMore details:\r\n"