I want to compare the (dt.Rows[1].ItemArray[1].ToString()) with 1,2,3,4 : but does not Work?? show me error
<pre><code>void check_User()
{
       string username = WindowsIdentity.GetCurrent().Name.Split('\\')[1].ToString();
       MessageBox.Show(username);

       SqlCommand cmd = new SqlCommand("select User_Name,FK_RoleID from SO_User_Table where User_Name='" + username + "'", cn);
      SqlDataAdapter da = new SqlDataAdapter();
      DataTable dt = new DataTable();
       try
       {
           da.SelectCommand = cmd;
           da.Fill(dt);
           if (dt.Rows.Count == 0)
           {
               MessageBox.Show("You are not allowed , Please Contact Your Administrator");
           }
           else if (dt.Rows.Count &gt; 1)
           {
               MessageBox.Show("You are not allowed , Please Contact Your Administrator");
           }
           else if

            (dt.Rows.Count == 1)
               if (dt.Rows[1].ItemArray[1].ToString() == 1)
               {
                   MessageBox.Show("Your Are Admin");
               }
               else if (dt.Rows[1].ItemArray[1].ToString() ==2)
               {
                   MessageBox.Show("You are SM");

               }
               else if (dt.Rows[1].ItemArray[1].ToString() ==3)
               {
                   MessageBox.Show("You are Sales");
               }
               else if (dt.Rows[1].ItemArray[1].ToString() ==4)
               {
                   MessageBox.Show("You are SalesMgr or Director");
               }

       }
       catch (Exception ex)
       {
           // lblInfo.Visible = true; 
           //lblInfo.Text = "There is an Error!!! please contact administrator. (" + ex.Message + ")"; 
       }
       finally
       {
           dt.Clear(); da.Dispose(); dt.Dispose(); cn.Close();
       }
   }
</code></pre>
