Пример #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string getConCfg = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;

            StoreProcClass spc = new StoreProcClass();

            spc.storeInsertParams("@name", TextBox1.Text);
            spc.storeInsertParams("@email", TextBox2.Text);
            spc.storeInsertParams("@username", TextBox3.Text);
            spc.storeInsertParams("@pass", TextBox4.Text);
            spc.storeInsertParams("@pic", "~/images/" + TextBox2.Text);

            spc.InsertData(getConCfg);

            Response.Redirect("~/StoredProcedure.aspx");
        }