textt = Session["filepath"].ToString(); // conn.Open(); string path = textt; int i = 0; foreach (string line in File.ReadAllLines(textt)) { string[] parts = line.Split('.'); foreach (string part in parts) { string Text = Encrypt(part); TextBox1.Text = Text; SqlCommand cmd = new SqlCommand("Insert into split values('" + Session["count"].ToString() + "','" +TextBox1.Text +"')",conn); int iCount = cmd.ExecuteNonQuery(); // conn.Close(); Response.Write(part); } i++; // For demo only }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)