Author: rohansekhri | Posted on: 9/8/2009 2:41:01 AM | Views : 240

hi...
 
here is my code:
 
byte[] hash; UTF8Encoding encode = new UTF8Encoding(); MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider(); hash = md5.ComputeHash(encode.GetBytes(txtPass.Text)); string pass = Convert.ToString(hash); //------------------------------------- string qry = "Insert into ExtUSer (LoginName,Password,FName,LName,Ques,Ans,SiteID,Email)" + "values ('" +txtUID.Text +"',@Password,'"+txtFname.Text +"','"+ txtLname.Text +"','"+txtQues.Text +"','"+ txtAns.Text +"','"+DropDownList1.SelectedValue +"','"+txtemail.Text +"')"; SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["TroyDB"].Connecti ...

Go to the complete details ...