Error connecting to database ASP.NET C#
<p>I keep getting this error:
Format of the initialization string does not conform to specification starting at index 0.</p>

<p>This line of code:</p>

<pre><code>using (OleDbConnection conn = new OleDbConnection("PayrollSystem_DBConnectionString"))
</code></pre>

<p>I think I need sql statements instead of Ole, I'm not sure.</p>

<p>Here is my form html code:</p>

<pre><code>&lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="&lt;%$ ConnectionStrings:PayrollSystem_DBConnectionString %&gt;" 
    ProviderName="&lt;%$ ConnectionStrings:PayrollSystem_DBConnectionString.ProviderName %&gt;"
</code></pre>

<p>Here is my frmManageUsers code:</p>

<pre><code>public partial class frmManageUsers : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void btnAddUser_Click1(object sender, EventArgs e)
    {
                //string userName, userPassword;



        if (txtUserName.Text == "" || txtUserName.Text == null)
        {
            lblError.Text = ("User Name may not be empty");
            lblError.ForeColor = System.Drawing.Color.Red;
            return;
        }
       // else

           // userName = (txtUserName.Text);


        if (txtPassword.Text == "" || txtPassword.Text == null)
        {
            lblError.Text = ("Password may not be empty");
            lblError.ForeColor = System.Drawing.Color.Red;
            return;
        }
        //else
           // userPassword = (txtPassword.Text);

        using (OleDbConnection conn = new OleDbConnection("PayrollSystem_DBConnectionString"))
            {
                string insert = "Insert INTO tblUserLogin (UserName, UserPassword, SecurityLevel) Values (@UserName, @UserPassword, @SecurityLevel)";
                OleDbCommand cmd = new OleDbCommand(insert, conn);
                cmd.Parameters.Add("@UserName", txtUserName.Text);
                cmd.Parameters.Add("@UserPassword", txtPassword.Text);
                cmd.Parameters.Add("@SecurityLevel", drpdwnlstSecurityLevel.SelectedValue);  
                cmd.ExecuteNonQuery();      
            }

        Session["UserName"] = txtUserName.Text;
        Session["Password"] = txtPassword.Text;
        Session["SecurityLevel"] = drpdwnlstSecurityLevel.SelectedValue;
        Server.Transfer("frmManageUsers.aspx");

        //Server.Transfer("grdUserLogin"); 

    }
    protected void drpdwnlstSecurityLevel_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}
</code></pre>
