c# sql server 2000 login code
-
:laugh: can some one tell me how to compare textbox value if the same with database value..
textbox1.text == dr1["password"].tostring();
dr1 is datarow.. everytime i run the program even if the value of the are the same it still exits... for example if textbox1.text = "password" and dr1["password"] value is also "password" the program says there not the same thanks ginji
-
:laugh: can some one tell me how to compare textbox value if the same with database value..
textbox1.text == dr1["password"].tostring();
dr1 is datarow.. everytime i run the program even if the value of the are the same it still exits... for example if textbox1.text = "password" and dr1["password"] value is also "password" the program says there not the same thanks ginji
1. Make Sure There is no space in the text , means infront and in the end. some times its makes a big issue. 2. try it
if(textbox1.text.equals(dr1["password"]) { //Do some thing }
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
-
1. Make Sure There is no space in the text , means infront and in the end. some times its makes a big issue. 2. try it
if(textbox1.text.equals(dr1["password"]) { //Do some thing }
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
-
could you please put the code block over here, which will be helpful for us to give some solluation.
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
-
:laugh: can some one tell me how to compare textbox value if the same with database value..
textbox1.text == dr1["password"].tostring();
dr1 is datarow.. everytime i run the program even if the value of the are the same it still exits... for example if textbox1.text = "password" and dr1["password"] value is also "password" the program says there not the same thanks ginji
if(string.Compare(textbox1.text.Trim(),dr1["password"].tostring().Trim()) == 0)
// Your strings are equal.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
if(string.Compare(textbox1.text.Trim(),dr1["password"].tostring().Trim()) == 0)
// Your strings are equal.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
Hi navaneeth, is there any thuig wrong with this
if(textbox1.text.equals(dr1["password"]) { //Do some thing }
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
-
if(string.Compare(textbox1.text.Trim(),dr1["password"].tostring().Trim()) == 0)
// Your strings are equal.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Hi navaneeth, is there any thuig wrong with this
if(textbox1.text.equals(dr1["password"]) { //Do some thing }
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
I don't think so. Check this[^]
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions