当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 有谁知道pb6.5中的o73 oracle 7.3能连上oracle817吗? 怎么提示说用户名密码不正确,很正确啊? 用pb7或pb8的oracle8以上的驱动 连接都很正常的! 迷惑?? ......
 ·两个简单的问题    »显示摘要«
    摘要: 向各位高手请教: 1、在vc中vector如何使用?我加了include <vector>也没用,编译时不认识vector。我程序中的语句是:vector <int> masksvector; 2、  int width,height; ......//各变量初始化 maskvalueelement *resultbuffer;    for(int i=0;i&......


请看看我的代码什么地方有错

Private   Sub   ImageButton1_Click(ByVal   sender   As   System.Object,   ByVal   e   As   System.Web.UI.ImageClickEventArgs)   Handles   ImageButton1.Click  
                  If   TextBox3.Text   <>   TextBox5.Text   Then  
                          Label1.Text   =   "两次输入的密码不相同,请重新输入"  
                  Else  
                          OleDbSelectCommand1.CommandText   =   "SELECT   UserID,Password   FROM   Center_User   WHERE     UserID   =   "   &   Session("UserID")   &   "   and     Password="   &   Session("Password")   &   ""  
                          DataSet11.Tables("Center_User").Clear()  
                          OleDbDataAdapter1.Fill(DataSet11,   "Center_User")  
                          Try  
                                  DataSet11.Tables("Center_User").Rows(0).Item("UserID")   =   TextBox4.Text  
                                  DataSet11.Tables("Center_User").Rows(0).Item("Password")   =   TextBox3.Text  
                                  OleDbDataAdapter1.Update(DataSet11,   "Center_User")  
   
                          Catch  
                                  Label1.Text   =   "用户名重复,请重新输入"  
                                  Exit   Sub  
                          Finally  
                          End   Try  
                          Label1.Text   =   "您已经成功修改"  
                  End   If  
   
          End   Sub  
  问题是一直显示用户名重复,请重新输入,提交不到数据库

NO.1   作者: saucer

1.   can   you   catch   the   error   to   see   what   is   wrong?  
  ....  
  Catch   ex   as   Exception  
  Label1.Text   =   ex.Message  
   
   
  2.   try   to   change   Password   to   [Password]  
   
  3.   or   just   try  
   
  OleDbSelectCommand1.CommandText   =   "Update   Center_User   Set   UserID="   &   TextBox4.Text   &   ",[Password]   =   "   &   TextBox3.Text   &   "   WHERE     UserID   =   "   &   Session("UserID")   &   "   and     [Password]="   &   Session("Password")   &   ""  
  Conn.Open()  
  dim   n   as   Integer   =   OleDbSelectCommand1.ExecuteNonQuery()  
  if   n   =   0   then  
      Label1.Text   =   "something   is   wrong"  
  else  
      Session("UserID")   =   TextBox4.Text    
      Session("Password")   =   TextBox3.Text  
      Label1.Text   =   "您已经成功修改"  
  end   if  
 


    摘要: 另外一张好的软盘上的确可以看见原来盘里有多少个文件,文件名,可是就是打不开,于是我想到把东西copy出来,却提示文件目录损坏且无法读取,我百思不得其解? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE