Method is not getting executed in ASP.NET Wizard
<p>I have a class that inserts a <code>TextBox</code> value and a <code>FileUpload</code> image into the SQL Server. I'm executing all the class in the <code>Wizard1_FinishButtonClick</code> event. I have 4 steps in Wizard. All the classes are getting executed and inserted other than <code>InsertCert()</code> class. 
I executed same codes in a simple .aspx page and the values are inserting into the DB.</p>

<p>Where 'm I going wrong? Following is the class and Wizard1_FinishButtonClick.</p>

<pre><code>public void Insertcert()
        {
            String KKStech = @"Data Source=USER-PC\SQLEXPRESS;Initial Catalog=KKSTech;Integrated Security=True";
            SqlConnection conn = new SqlConnection(KKStech);
            String insertstring2 = @"insert into Cert(CertName, CertLogo)
                                       values(@CertName, @CertLogo)";
            SqlCommand cmd = new SqlCommand(insertstring2, conn);
            cmd.CommandText = insertstring2;
            cmd.CommandType = CommandType.Text;
            try
            {
                if (FileUpload1.HasFile)
                {
                    byte[] productImage = FileUpload1.FileBytes;
                    conn.Open();
                    cmd.Parameters.AddWithValue("@CertName", TextBox18.Text);
                    cmd.Parameters.Add("@CertLogo", SqlDbType.VarBinary).Value = productImage;
                    cmd.ExecuteNonQuery();

                }

            }

            catch (Exception ex)
            {
                throw ex;
            }

            finally
            {
                conn.Close();
            }

        }
</code></pre>

<p>This is the final class where all the classes are inserted.</p>

<pre><code> protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {

            InsertInfo();
            Insertcert();
            Insertaddress();
            Insertskills();

        }
</code></pre>
