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

    摘要: 我的系统是winxp,想要安装一个modem的驱动,可惜没xp的驱动,只有2k的,我安装时提示:   安装的驱动程序会带来系统的稳定性问题。该驱动程序将会被禁用。请与驱动程序的供应商联系,获得与此版本 windows 兼容的更新版本。[只有取消,无法安装]   但之前我在组策略禁用一个策略后就可以安装了,但忘了是那个了。谁知道呢?不胜感谢! ......
 ·配置cvsnt和wincvs    »显示摘要«
    摘要: wincvs可以不同用户登录到cvsnt,可以checkin,但是chenckout时总是出错 cvs -d :pserver:flywithmoon@127.0.0.1:/cvsroot checkout -l -p tir (in directory c:\documents and settings\user\desktop\程式更新\tir) cvs [checkout abort......


关于web下修改http密码的问题

问一下,我想写一个web修改http密码的表单,包括下面四个域userName:文本    
  oldPassword:口令    
  newPassword:口令    
  newPasswordAgain:口令    
  在提交时运行下面的代理:  
  Sub   Initialize    
  Dim   ss   As   New   NotesSession    
  Dim   db   As   NotesDatabase    
  Set   db   =   ss.CurrentDatabase    
  Dim   doc   As   NotesDocument    
  Set   doc   =   ss.DocumentConText    
  Dim   mydb   As   NotesDatabase    
  Dim   myView   As   NotesView    
  Dim   mydoc   As   NotesDocument    
  Set   mydb   =   New   NotesDatabase(db.Server,"names.nsf")    
  Set   myView   =   mydb.GetView("People")    
  get   the   users   information   from   the   form    
  filled   by   the   user   that   change   his   own   password    
  userName   =   doc.userName(0)    
  oldpass   =   doc.oldPassword(0)    
  newpass   =   doc.newPassword(0)    
  If   newpass   <>   doc.newPasswordAgain(0)   Then    
  Print   "<a   href=javascript:history.go(-1)   target=_self>your   two   new   password   is   not   same!</a>"    
  Exit   Sub    
  End   If    
  Set   mydoc   =   myView.GetDocumentByKey(userName)    
  If   mydoc   Is   Nothing   Then    
  Print   "<a   href=javascript:history.go(-1)   target=_self>the   user   is   not   exit!</a>"    
  Exit   Sub    
  Else    
  macro$   =   "@password("+oldpass+")"    
  result   =   Evaluate(macro$)    
  If   result(0)   <>   mydoc.HTTPPassword(0)   Then    
  Print   "<a   href=javascript:history.go(-1)   target=_self>your   old   password   error!</a>"    
  Exit   Sub    
  End   If    
  macro$   =   "@password("+newpass+")"    
  result   =   Evaluate(macro$)    
  mydoc.HTTPPassword   =   result(0)    
  Call   mydoc.Save(True,True)    
  Print   "<META   HTTP-EQUIV=""Expires""   CONTENT=""0"">"    
  Print   "<title>system</title>"    
  Print   "</head>"    
  Print   "<body>"    
  Print   "<br>"    
  Print   "<br>"    
  Print   "<form>"    
  Print   "<p   align=""center""><font   size=""2"">the   change   of   password   is   ended,please   logon   again!</p>"    
  Print   "<p   align=""center""><input   type=""button""   value=""Longon   Again""   name=""OK""   onclick=""okclick()"">   </p>"    
  Print   "</form>"    
  Print   "</body>"    
  Print   "<SCRIPT   LANGUAGE   =   JavaScript>"    
  Print   "function   okclick()"    
  Print   "{"    
  Print   "window.close()"    
  Print   "}"    
  Print   "</SCRIPT>"    
  Print   "</html>"    
  End   If    
  End   Sub    
  为什么总是说     HTTP   Web   Server:   Lotus   Notes   Exception   -   Unsupported   trigger   and   search   in   the   background   or   embedded   agent   [/GroupManger.nsf/Changepasswo  
  rd?OpenForm&Seq=1]

NO.1   作者: goldpiece

你这个问题可能是代理属性设置得不对。  
  你试试改改看。  
  Runtime属性的Trigger改为on   event,另外"Agent   list   selection",目标none  
  还有,你那个提交按钮的公式代码里的代理名称前后可以加一对小括号试试  
 


    摘要: starget:=c:\abcd\imsmanifest.xml; starget:=leftstr(starget,pos(\imsmanifest.xml,starget)-1); starget结果是: c:\abcd starget:=c:\新建文件夹\imsmanifest.xml; starget:=leftstr(starget,pos(\imsmanifest.xml,st......
» 本期热门文章:

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