protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            ServiceReference1.Encrypt_DecryptService1Client sc = new ServiceReference1.Encrypt_DecryptService1Client("BasicHttpBinding_IEncrypt_DecryptService1");

            int         ID            = (int)e.Keys["Id"];
            TextDetails td            = new TextDetails();
            string      plainText     = (string)e.NewValues["plaintext"];
            string      encryptedText = (string)e.NewValues["encryptedtext"];
            string      decryptedText = (string)e.NewValues["decryptedtext"];

            td.ID = ID;
            string encrypt = sc.Encryption(plainText);
            string decrypt = sc.Decryption(encrypt);

            td.Plaintext     = plainText;
            td.Encryptedtext = encrypt;
            td.Decryptedtext = decrypt;
            sc.UpdateTextDetail(td);
            Label1.Text         = "Data Updated Successfully!!!";
            GridView1.EditIndex = -1;
            BindData();
        }
 protected void Decryption_Click(object sender, EventArgs e)
 {
     ServiceReference1.Encrypt_DecryptService1Client sc = new ServiceReference1.Encrypt_DecryptService1Client();
     Label5.Text = sc.Decryption(Label3.Text);
     Label6.Text = "";
 }