protected async void Button1_Click(object sender, EventArgs e) { string text = TextBox1.Text; //var forASPOnly = new ASPModifier(text); //Session["Important"] = await forASPOnly.ModifyText(); //text = await forASPOnly.ModifyText(); //System.Diagnostics.Debug.WriteLine("\nResult" + Session["Important"]); //System.Diagnostics.Debug.WriteLine("\nResult" + text); Session["sb"] = new StringBuilder(text + " "); //Session["ImportantValue"] = await HelperMethods.EMReplace(Session["sb"] as StringBuilder); Session["ImportantValue"] = await HelperMethods.ParagraphReplace(Session["ImportantValue"] as StringBuilder); Session["ImportantValue"] = await HelperMethods.Adres_Replace(Session["ImportantValue"] as StringBuilder); Session["ImportantValue"] = await HelperMethods.QReplace(Session["ImportantValue"] as StringBuilder); Session["ImportantValue"] = await HelperMethods.StrongReplace(Session["ImportantValue"] as StringBuilder); Session["ImportantValue"] = await HelperMethods.EMReplace(Session["ImportantValue"] as StringBuilder); Session["ImportantValue"] = await HelperMethods.Replace_(Session["ImportantValue"] as StringBuilder); Session["ImportantValue"] = await HelperMethods._Replace(Session["ImportantValue"] as StringBuilder); Session["ImportantValue"] = await HelperMethods.Replace3(Session["ImportantValue"] as StringBuilder); Session["ImportantValue"] = await HelperMethods.LineReplace(Session["ImportantValue"] as StringBuilder); System.Diagnostics.Debug.WriteLine("Result" + Session["ImportantValue"]); //text = Session["ImportantValue"].ToString(); //Label1.Text = Session["Important"].ToString(); Label1.Text = Session["ImportantValue"].ToString(); }