日期:2014-05-17  浏览次数:20888 次

标准表达式中数据类型不匹配
if   (Rdbmanager.Checked)
                                        {

                                                string   oledcon   =   ConfigurationManager.ConnectionStrings[ "voteadimin "].ConnectionString;
                                                                                       
                                                OleDbConnection   conn   =   new   OleDbConnection(oledcon);    
                                                conn.Open();
                                                OleDbCommand   olecmd   =   new   OleDbCommand();
                                                olecmd.CommandText   =   "select   count(*)   from   adimin   where   messager= ' "   +   userna.Text   +   " ' "   +   "and   pwdm= ' "   +   passwd.Text   +   " ' ";
                                                olecmd.Connection   =   conn;
                                                int   summ   =   Convert.ToInt32(olecmd.ExecuteScalar());
                                             
                                                conn.Close();  
                                                conn.Dispose();
                                                if   (summ> 0)
                                                {
                                                        Respons