如何在 Silverlight 4.0 应用程序后面的 asp 页面上打开 iframe,而不使其可见
我的应用程序使用MVVM架构,需要偶尔调用一些外部asp页面来与其他一些系统交互。问题是我真的不希望用户看到这些页面,因为它们没有 UI,它们实际上只需要在后台打开,执行其功能,然后关闭,所有这些都不会被看到。我无法使用无窗口模式。我需要框架指向的 URL 是在视图模型中生成的,因此我还需要知道如何将该信息获取到框架。我对这个问题真的很困惑,因为在没有无窗口模式的情况下,网上没有太多与此相关的信息。任何帮助将不胜感激。
My application uses MVVM architecture and needs to occaisonally call some outside asp pages to interact with a few other systems. The problem is I that I really don't want the user to see these pages because they don't have a UI, they really just need to open in the background, perform their function, then close, all without ever being seen. I can not use windowless mode. The URL that I need the frame pointing to is generated in the viewmodel so I also need to know how to get that info to the frame. I'm really lost on this issue as there isn't much online related to doing this without windowless mode. Any help would be much appreicated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅这两个参考资料,了解我如何为此拼凑代码。
Silverlight,我可以访问 Webbrowser 控件中的 DOM 元素吗?
http://www.davidezordan.net/blog/?p=700
请注意,您唯一能做的就是设置该框架的 url 值(如果它位于不同的域中),因为安全原因。这可能对你来说很好。所以尝试这样的事情:
See these two for references in how I pieced the code together for this.
Silverlight, can I access DOM elements in Webbrowser control?
http://www.davidezordan.net/blog/?p=700
Note that the only thing you can do is set the value of the url for that frame if it is in a different domain because of security reasons. That may be fine for you. So try something like: