如何在Internet Explorer中打开aspx页面

时间:2013-08-20 09:08:06

标签: asp.net

我正在使用devexpress reportviever和报告工具栏。查找按钮无法跨浏览器工作,因为它使用activex所以只有它可以工作Internet Explorer.My questons是如何aspx页面打开Internet Explorer?例如在Internet Explorer中打开重定向页面后。 谢谢所有成员

2 个答案:

答案 0 :(得分:0)

您无法在无法控制的页面导航之间切换浏览器。服务器只提供内容,浏览是客户端,通常仅限于同一浏览器。

如果您必须使用Internet Explorer,则必须在用户登陆您的网站/页面时向其发出警告。

答案 1 :(得分:0)

所有aspx页面的默认浏览器:

If you right click on any page other than default.aspx you will not get the "browse with" option.

您需要在默认浏览器中设置Internet Explorer。如果您打开新窗口,则会在新的IE浏览器窗口中自动打开您的页面

使用下面的javascript方法打开窗口

function openWindow(url)
    {
        window.open(url, 'windowname', 'scrollbars=0,resizable=0,status=0,toolbar=0,menubar=0');
        return false;
    }

在页面上放置一个链接按钮

<asp:LinkButton ID="lnkOpenWindow" Text="Attach" runat="server" OnClientClick="openWindow('X01.aspx?ID=5')"></asp:LinkButton>