在窗体执行时显示错误。 [英] Showing error at the time of window form execution.

查看:110
本文介绍了在窗体执行时显示错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在Windows窗体应用程序中使用过iframe。当我执行此表单时,它显示一个错误框如下:



1.此页面上的脚本中出现错误。

2.行:0

3.字符:0

4.错误:脚本错误

5.代码:0

6.网址:href =http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js





,代码为:

Hello, I have used an iframe in windows form application. When I execute this form, it showing an error box is as below :

1. An error has accoutred in the script on this page.
2. Line: 0
3. Character: 0
4. Error: Script Error
5. Code: 0
6. Url: href="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"


and the code is :

private void Form1_Load(object sender, EventArgs e)
        {
             string _embeddedpage = @"
             <html>
                 <body>
                     <iframe width='100%' height='385'
                         src='http://dev.livestuff.com/BrowserAddon?previewmode=Y' frameborder='0'>
                     </iframe>
                 </body>
             <html>";
             webBrowser1.DocumentText = _embeddedpage;
}





请给出任何建议来解决这个问题。

谢谢。



Please give any suggestion to solve this problem.
Thanks.

推荐答案

目前它对我有用。没有任何代码中的脚本。当您在iframe页面上导航时,可能会出现唯一的问题,但此页面不是您的代码的一部分,因此在此框架内可能发生任何事情。此时,我没有遇到任何问题,但它可以随时更改。这可能是您引用的网站的问题,而不是您的。



-SA
It works for me at the moment. There is no any scripts in your code. The only problem may appear when you navigate on the iframe page, but this page is not part of your code, so anything can happen inside this frame. At this moment, I did not face any problem, but it could change anytime. It could be a problem of the site your referenced, not yours.

—SA


这篇关于在窗体执行时显示错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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