通过C#更改浏览器设置 [英] Changing Browser setting through c#

查看:86
本文介绍了通过C#更改浏览器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

通过应用程序,我正在发送邮件,并且在该邮件中,有指向Outlook日历文件的链接以进行下载.它可以在IE之外的其他环境下工作.但是在IE浏览器中,它不会下载文件.如果我更改了浏览器的安全设置,则它将下载文件.是否可以通过编码来更改用户浏览器设置.如果用户正在使用IE.如果有解决方案,请Plz帮助我.

Hello Friend,

Through aplication i am sending mail and in that mail there is link for Outlook Calender file to Download. it works in other than the IE. But in IE browser it not downloads the file. If i change the security settings for my browser then it downloads the file. Is it possible through coding to change the users browser setting. If user is using the IE. If any one has solution Plz help me.

推荐答案

简单的回答是否",则无法在客户端计算机上更改浏览器设置.这完全违反了安全性,因此没有浏览器会允许这样做.

对于您的问题,您必须找到一种解决方法,即建议客户将域放置在受信任的站点中,并在邮件系统的受信任的发件人中添加电子邮件ID.然后祈祷大多数用户会接受建议:-)

谢谢
Milind
Simple answer is NO, you can''t change the browser settings on client machine. That is gross violation of security and hence no browser will allow that.

For your problem you have to find a work-around i.e. advise client to put the domain in trusted site and add email id in trusted sender in the mail system. And then pray that majority of the user will take the advise :-)

Thanks
Milind


是的,您可以检测到浏览器,在代码中使用/引用Jquery库:
Yes, You can detect the browser, use/refer Jquery library in your code :
if (


.browser.safari) { alert(' 这是野生动物园'); } 其他 如果(
.browser.safari) { alert('this is safari'); } else if(


这篇关于通过C#更改浏览器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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