using System.Web.Security; protected void Button1_Click(object sender, EventArgs e) { lblSifrelenmis.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text, "MD5"); }