Posted on: 5/21/2014 8:24:25 PM | Views : 409

Hi,
I have made a registration page, everything thing works fine data is inserting in the database. But what is happenning is it doesn't check the username if it's exist or not and show the message that username already exisit.   It is accepting same username again and again and inserting in the database. Please help in this.
Here is the C# 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 registration : 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 checkuser = "sel ...

Go to the complete details ...