Posted on: 12/19/2014 8:03:50 PM | Views : 520

Help. I have this checker if the username match that is typed in textboxun in database should respond,write that it exist in my code page_load. But it dosen't it add the username into the database even with at the end some free spaces i noticed. I i am using a regularexpression that don't allow empty spaced and that expression works. Please tell me the problem in the code. Here is the code:

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Configuration; public partial class NewUsers : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["RegistrationConnectionString"].ConnectionString); conn.Open(); string ...

Go to the complete details ...