我的代码中的表单提交不适用于Webbrowser控件C# [英] Form Submit in my code does not work on webbrowser control C#

查看:52
本文介绍了我的代码中的表单提交不适用于Webbrowser控件C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我要使用的HTML代码在我的浏览器中:

<form method="post" name="frmWorkBookPrintTerm" action="WorkBookPrintTerm.asp" target="_blank">
<hr width="90%"></hr><input type="Hidden" value="912" name="strTermCode"></input>
<input type="Hidden" value="896325605" name="strStudentCode"></input>
<input type="Button" value="..." onclick="javascript:document.frmWorkBookPrintTerm.submit();"></input>
<hr width="90%"></hr>
</form>

但这是行不通的.当我想去".../WorkBookPrintTerm.asp"时网站直接说您做非法工作,否则Web浏览器控件无法正常工作.

But It is not working. When i want to go ".../WorkBookPrintTerm.asp" directly website says you did illegal job and otherwise web browser control is not working.

谢谢.

推荐答案

 

 

您可以简化输入按钮,因为您已经将Forms动作声明为:

You can simplify your input button as you have already declared the forms action to:

<input type="submit" value="..."></input>

这对您有帮助吗?如果没有更多有关该错误的详细信息,那么,您还可以使用哪种软件来运行此软件,网络服务器等托管经典的ASP?

Does this help?  If not more details on the error would be great, plus what software you are using to run this, web server etc hosting the classic ASP.

谢谢

约翰


这篇关于我的代码中的表单提交不适用于Webbrowser控件C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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