hi friends . i am facing a problem while updating a table in asp.net. i am creating a page for change password and i used the update query on click of a button to change the password but it doesn't work. i dont know why ..my query is update table set column='"+textbox.text+"';
Would question why your not using either the default or an alternative security/ membership provider rather than trying to create your own thing. Providing more of the code would also help. Assuming your using an SQLCommand to do the updating in an onclick event you really should have it similar to: SqlCommand.CommandText = "UPDATE tableID SET columnID = @Parameter"; SqlCommand.Parameters.Add("@Parameter", SqlDbType.VarChar).Value = Textbox1.Text; Code (markup):