Web浏览器用户名密码错误..我输错了代码 [英] web browser user name password error.. I put incorrect code

查看:271
本文介绍了Web浏览器用户名密码错误..我输错了代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Web浏览器,键入密码并且用户名不正确表单关闭错误。

表单上的输入按钮是不是我应该怎么写错误代码?



web browser, type the password and user name is incorrect error of the form closes.
input button on the form are not how I should write an error code?

Dim Username, Password As String
       Username = TextBox3.Text
       Password = TextBox4.Text
       Form2.WebBrowser2.Document.GetElementById("email").SetAttribute("Value", Username)
       Form2.WebBrowser2.Document.GetElementById("pass").SetAttribute("Value", Password)
       Form2.WebBrowser2.Document.GetElementById("loginbutton").InvokeMember("click")
       If
          not Form2.WebBrowser2.Document.All.Item("Button3") Is Nothing) then
           MsgBox("Incorrect Username/password , ", 0, "Login error!")</pre>



if。失败

失败文章发出警告。请帮助


if. fails down
fails missing article gives warning. please help

推荐答案

当出现错误时,您可以制作/托管错误的HTML页面并重定向(导航)到那里。
You could make/host an error HTML page and redirect (Navigate) to there when there's an error.


这篇关于Web浏览器用户名密码错误..我输错了代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆