473,406 Members | 2,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to add websites into Trusted Sites list programmatically using c# ?

Hi,

I am programming for a small computer device which is running on
Windows XP. I need to disable the popup blocker and enable the "Allow
script initiated windows without size or position constraints"
options. To achieve this, I need to add my local intranet sites to
"Trusted Sites" zone. I need to do this from a startup application,
which is a c# application. Please anyone let me know, how to do this
using c#?

Thanks,

Prabu

Aug 24 '07 #1
3 20604
On Aug 24, 11:45 am, Prabu <prabu...@gmail.comwrote:
Hi,

I am programming for a small computer device which is running on
Windows XP. I need to disable the popup blocker and enable the "Allow
script initiated windows without size or position constraints"
options. To achieve this, I need to add my local intranet sites to
"Trusted Sites" zone. I need to do this from a startup application,
which is a c# application. Please anyone let me know, how to do this
using c#?
I was able to do this easily, by following the example here:

http://blogs.msdn.com/ie/archive/2005/01/26/361228.aspx

Marc
http://nomagichere.blogspot.com

Aug 24 '07 #2
On Aug 24, 10:59 am, Marc Bernard <marc.bern...@agfa.comwrote:
On Aug 24, 11:45 am, Prabu <prabu...@gmail.comwrote:
Hi,
I am programming for a small computer device which is running on
Windows XP. I need to disable the popup blocker and enable the "Allow
script initiated windows without size or position constraints"
options. To achieve this, I need to add my local intranet sites to
"Trusted Sites" zone. I need to do this from a startup application,
which is a c# application. Please anyone let me know, how to do this
using c#?

I was able to do this easily, by following the example here:

http://blogs.msdn.com/ie/archive/2005/01/26/361228.aspx

Marchttp://nomagichere.blogspot.com
Hi,

Marc, Thanks for your help. I am able to add sites in the trusted zone
using the code in the above blog. Still, unable to add the sites with
out "https", if the check box "Require server verification (https:)
for all the sites in this zone" is checked in the IE settings. May I
know how to uncheck this option from my application?

Thanks

Prabu

Aug 24 '07 #3
On Aug 24, 2:47 pm, Prabu <prabu...@gmail.comwrote:
On Aug 24, 10:59 am, Marc Bernard <marc.bern...@agfa.comwrote:
On Aug 24, 11:45 am, Prabu <prabu...@gmail.comwrote:
Hi,
I am programming for a small computer device which is running on
Windows XP. I need to disable the popup blocker and enable the "Allow
script initiated windows without size or position constraints"
options. To achieve this, I need to add my local intranet sites to
"Trusted Sites" zone. I need to do this from a startup application,
which is a c# application. Please anyone let me know, how to do this
using c#?
I was able to do this easily, by following the example here:
http://blogs.msdn.com/ie/archive/2005/01/26/361228.aspx
Marchttp://nomagichere.blogspot.com

Hi,

Marc, Thanks for your help. I am able to add sites in the trusted zone
using the code in the above blog. Still, unable to add the sites with
out "https", if the check box "Require server verification (https:)
for all the sites in this zone" is checked in the IE settings. May I
know how to uncheck this option from my application?

Good question. I didn't run into that problem, sorry.

Marc

Aug 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: RR | last post by:
The next step after Grant Wagner's simple solution to my "Get computer name" thread, is to automatically add the web application's site to the list of trusted sites in IE. Obviously, the user...
3
by: Abdulla Herzallah | last post by:
Hi every one I have tried to search for any links, hints clues on how to create a Stored Procedure programmatically using C# but came back with empty handed :-( I know it is definitly possible...
1
by: Vadim | last post by:
Our program is planing to often download generated reports in MS Word and it's hihg unlikely to bother uthers to push buttons in appearing download dialog for our corporate site. How to prevent...
1
by: petergjansen | last post by:
Hi, How can I access the trusted sites list for the currently logged in user programmatically? Is there some sort of IE API which I can call to get this information or is it stored in a file...
1
by: bijinr | last post by:
I want to add the url of my application in trusted sites.How is it possible through javascript? I have developed my application in struts and using javascript for validation. Can anyone help me on...
1
by: SofiaV | last post by:
Hello, 1.Add site toTrusted Sites List using javascript( programmatically ). Or 2.How to check it programmatically using javascript, if the specific site is included in the "Trusted Sites" ...
12
by: abhishek.gilra | last post by:
Does anyone know how to add users to the log on locally list in User Rights Management inside Local Security settings. Thanks
8
by: schlaag | last post by:
I have an asp based site which for various reasons has to go in either Trusted Sites or Intranet under security in IE7. However as soon as I place it in either of these zoneI can no longer use...
1
by: Emmkay | last post by:
Hello, I am currently working with installshield. When a package created with installshield is installed on the target machine, a particular website has to be added in the machine's trusted...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.