问题描述
Hiii每个人
我正在使用VS 2008和.NET Compact Framework开发Windows Mobile应用程序.
在表单上,我正在使用WebBrowser控件.在页面加载时,我正在动态构造html并显示如下.
Hiii Every one
I''m developing a Windows Mobile Application using VS 2008 and .NET Compact Framework.
On a Form I''m using a WebBrowser control. On load of the page I''m dynamically constructing html and displaying it as below.
WebBrowser1.DocumentText = "Some HTML text"
我在html代码中有一个Anchor元素,并且在单击该Anchor元素时,我需要调用以该Form编写的方法.
但是我无法从以这种形式编写的webbrowser控件中调用方法.
我尝试了 ObjectForScripting 和 window.external.fnTest ,但它似乎在Compact Framework中不起作用.
有人可以给我提供解决此问题的方法.
对我来说非常紧急.请帮帮我.
I have a Anchor element in the html code , and on clicking of that anchor element I need to call a method written in that Form.
But I''m unable to call the methods from webbrowser control written in that form.
I tried ObjectForScripting and window.external.fnTest but it looks it doesnot work in Compact framework.
Could someone please provide me a solution to this problem.
Its very urgent for me . please help me out.
推荐答案
这篇关于在.NETCF中的Webbrowser控件中处理HTML事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!