如何在C#中获取所有打开的浏览器选项 [英] How get all open browser tab in C#

查看:286
本文介绍了如何在C#中获取所有打开的浏览器选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

请在下面的情景中帮助我

1.我打开多个标签说 http:// localhost:8450 / Login.aspx [ FireFox中的^ ]



现在,我想知道在同一浏览器中打开了多少个具有相同URL的标签。



请帮我这个,



我试过用



DdeClient dde = new DdeClient(Firefox,WWW_GetWindowInfo);

dde.Connect();

string url = dde.Request(URL,int.MaxValue );

dde.Disconnect();



但是网址总是得到关于银行

Dear All,
please help me in in following scenario
1.I have open multiple tab says http://localhost:8450/Login.aspx[^] in FireFox

Now, i want to know how many tabs open in same Browser with same URL.

Please help me on this ,

I have tried with

DdeClient dde = new DdeClient("Firefox", "WWW_GetWindowInfo");
dde.Connect();
string url = dde.Request("URL", int.MaxValue);
dde.Disconnect();

But url always getting "About Bank"

推荐答案

在codebehind中?这是一个ASP.NET应用程序,你将这些代码放入?



如果是这样,你就无法做你正在尝试的事情。服务器根本没有客户端浏览器的权限,也无法连接它以获得打开的标签数量。



你真的有没有从服务器查找此信息的方法。
In codebehind? Is this an ASP.NET app you're putting this code into?

If so, you cannot do what you're attempting. The server will not have permissions to the client browser at all and will not be able to "connect" to it to get the number of open tabs.

You really have no method of finding this information from the server.


这篇关于如何在C#中获取所有打开的浏览器选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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