Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: manage clients Pin
Dave Kreskowiak9-Mar-13 7:58
mveDave Kreskowiak9-Mar-13 7:58 
GeneralRe: manage clients Pin
karimi55559-Mar-13 8:48
karimi55559-Mar-13 8:48 
QuestionMake richTextBox non-editable in Silverlight Pin
vijendra589-Mar-13 0:29
vijendra589-Mar-13 0:29 
AnswerRe: Make richTextBox non-editable in Silverlight Pin
Eddy Vluggen9-Mar-13 1:32
professionalEddy Vluggen9-Mar-13 1:32 
QuestionTreeView-based custom control Pin
alex__b8-Mar-13 18:52
professionalalex__b8-Mar-13 18:52 
AnswerRe: TreeView-based custom control Pin
Richard MacCutchan8-Mar-13 22:01
mveRichard MacCutchan8-Mar-13 22:01 
GeneralRe: TreeView-based custom control Pin
alex__b9-Mar-13 5:18
professionalalex__b9-Mar-13 5:18 
Questionhow update password for a user in access using c# Pin
User34908-Mar-13 14:06
User34908-Mar-13 14:06 
I have 3 textboxes (txtoldpassword,txtnewpassword,txtconfirmpassword)
and i want to take the data that dives a user and if a user password exists in access then i can update the user password.

i try this but it doesn't work.

private void btnSave_Click(object sender, EventArgs e)
{


if (txtOldPassword.Text.Length == 0 || txtNewPassword.Text.Length == 0 || txtConfPassword.Text.Length == 0)
{

MessageBox.Show("Please Fill all the fields.");
}
else if (txtNewPassword.Text != txtConfPassword.Text )
{

MessageBox.Show(" Please insert again your new password.");

}


else
{
OleDbConnection connect = new OleDbConnection();

connect.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\user\Desktop\Laiki_Trapeza_Questionnaires.accdb;Persist Security Info=False;";


connect.Open();
OleDbCommand command = new OleDbCommand();
command.Connection = connect;
command.CommandText = (@"UPDATE Users_Table SET Password= '" + txtNewPassword.Text.ToString() + "' WHERE (Password='"+txtOldPassword.Text + "')");
MessageBox.Show(" Succesfull update password!");


connect.Close();

}
}
AnswerRe: how update password for a user in access using c# Pin
Jibesh8-Mar-13 15:01
professionalJibesh8-Mar-13 15:01 
AnswerRe: how update password for a user in access using c# Pin
OriginalGriff9-Mar-13 4:01
mveOriginalGriff9-Mar-13 4:01 
GeneralMessage Closed Pin
10-Mar-13 12:35
User349010-Mar-13 12:35 
GeneralRe: how update password for a user in access using c# Pin
OriginalGriff10-Mar-13 22:32
mveOriginalGriff10-Mar-13 22:32 
GeneralMessage Closed Pin
11-Mar-13 4:36
User349011-Mar-13 4:36 
GeneralRe: how update password for a user in access using c# Pin
OriginalGriff11-Mar-13 5:54
mveOriginalGriff11-Mar-13 5:54 
AnswerRe: how update password for a user in access using c# Pin
PIEBALDconsult9-Mar-13 8:05
mvePIEBALDconsult9-Mar-13 8:05 
QuestionCan't launch URL from desktop app? Pin
SledgeHammer018-Mar-13 7:47
SledgeHammer018-Mar-13 7:47 
AnswerRe: Can't launch URL from desktop app? Pin
Eddy Vluggen8-Mar-13 7:56
professionalEddy Vluggen8-Mar-13 7:56 
GeneralRe: Can't launch URL from desktop app? Pin
SledgeHammer018-Mar-13 8:07
SledgeHammer018-Mar-13 8:07 
GeneralRe: Can't launch URL from desktop app? Pin
Eddy Vluggen8-Mar-13 9:15
professionalEddy Vluggen8-Mar-13 9:15 
GeneralRe: Can't launch URL from desktop app? Pin
SledgeHammer018-Mar-13 11:08
SledgeHammer018-Mar-13 11:08 
GeneralRe: Can't launch URL from desktop app? Pin
Richard MacCutchan8-Mar-13 21:58
mveRichard MacCutchan8-Mar-13 21:58 
GeneralRe: Can't launch URL from desktop app? Pin
Eddy Vluggen8-Mar-13 22:00
professionalEddy Vluggen8-Mar-13 22:00 
GeneralRe: Can't launch URL from desktop app? Pin
Richard MacCutchan8-Mar-13 22:54
mveRichard MacCutchan8-Mar-13 22:54 
GeneralRe: Can't launch URL from desktop app? Pin
Eddy Vluggen8-Mar-13 22:58
professionalEddy Vluggen8-Mar-13 22:58 
GeneralRe: Can't launch URL from desktop app? Pin
Richard MacCutchan8-Mar-13 23:20
mveRichard MacCutchan8-Mar-13 23:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.