Dear all,
button control is not working in IIS. It is working in the visual studio. I do not know where I am doing wrong. Can somebody give inputs.
protected void Button1_Click(object sender, EventArgs e) { string cs = ConfigurationManager.ConnectionStrings["SampleConnectionString"].ConnectionString; SqlConnection con = new SqlConnection(cs) ; try { SqlCommand cmd = new SqlCommand("insert into Contacts values('" + txtFirstName.Text + "','" + txtLastName.Text + "','" + txtSubject.Text + "','" + txtEmail.Text + "', '" + txtAddress.Text + "', '" + txtCity.Text + "','" + txtPinCode.Text + "','" + txtTelephoneNumber.Text + "', '" + txtMobileNumber.Text + "')", con); con ...

Go to the complete details ...