注册 登录
编程论坛 C# 论坛

遇到webBrowserC#困难!自学!请各位老师指点指点

肖伟 发布于 2014-03-29 11:40, 670 次点击
<form method="post" id="loginForm" name="loginForm" action="/login2.action"
                            onsubmit="return validateForm(this, '/main.jsp')" autocomplete="off">
                            <table width="264" border=0>
                                <tr>
                                    <td width="70" height="100">&nbsp;</td>
                                    <td width="190">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td height="25" align="right">用户类型</td>
                                    <td align="left"><input type="radio" name="j_usertype" id="j_usertype_0"
                                        value="0" checked="checked" onClick="$('#usertype').val(0);" />
                                        集团 <input type="radio"
                                        name="j_usertype" id="j_usertype_1" value="1"
                                        onclick="$('#usertype').val(1);" /> 个人 <input type="hidden"
                                        name="userType" id="usertype" value="0">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" align="right">用户名</td>
                                    <td align="left">
                                        <input type="text" name="username" id="j_username"
                                        tabindex="1" style="width: 160px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" align="right">密码</td>
                                    <td align="left"><input type="password" name="password" id="j_password"
                                        tabindex="2" style="width: 160px;" /></td>
                                </tr>
                                <tr>
                                    <td height="25" align="right">验证码</td>
                                    <td align="left"><input autocomplete="off" type="text" name="randomCode" id="j_randomCode"
                                        tabindex="3" size="6" /><img id="pic_random_code"
                                        name="pic_random_code" onClick="changeValidateCode(this)"
                                        alt="看不清图片,点击图片换一张"
                                        title="看不清图片,点击图片换一张" /></td>
                                </tr>
                                <tr>

                                    <td height="51" colspan="2"><input
                                        type="image"
                                        src="images/login.jpg"
                                        onClick="login();" /> <a href="#"><img
                                            src="images/cancel.jpg"
                                            width="65" height="26" style="cursor: hand; border: none;"
                                            onclick="cancel();" /> </a>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20">&nbsp;</td>
                                    <td height="20">&nbsp;</td>
                                </tr>
                            </table>
                        </form>
   我用vs2010做,from提交数据时候需要点击登录(登录是一张图片images/login.jpg") 我增加了webBrowser与button控件!我怎么将点击button控件然后from就自动登录跳转
4 回复
#2
肖伟2014-03-29 18:43
等了 一下午都没有人吗?自己顶起
#3
肖伟2014-03-31 05:04
继续顶起来!!!!!
#4
wangnannan2014-03-31 08:22
这个百度太多了 太多成型的例子了 就不给你提供了
#5
肖伟2014-04-01 04:01
百度我我也去找了!但最近是不是电脑问题!一搜索就卡住!手机找到一些!但还是不能解决问题!
1