Posted on: 5/17/2014 1:11:06 AM | Views : 288

Hi friends
I want to know ho to add an image in this following scenario
I have to check if the user is already exist a massege displays with like warning image when the condition true displays rite (sign) image
I hope you got my point
protected void txtBoxAddNewUser_TextChanged(object sender, EventArgs e) { string conStr = "Data Source=localhost;Initial Catalog=My_DB;Integrated Security=True"; SqlConnection con = new SqlConnection(conStr); con.Open(); string query = "Select * From User where User_Name=@User_Name"; SqlCommand cmd = new SqlCommand(query, con); cmd.Parameters.AddWithValue("@User_Name", txtBoxAddNewUser.Text); SqlDataReader dr = cmd.ExecuteReader(); if (dr != null && dr.HasRows) { lblmsg.Visible = true; lblmsg.Text = "User is already Exist"; ...

Go to the complete details ...