Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
if (Request.Browser.Type.Contains("IE"))
       {
           try
           {
               RegistryKey ChangeSettings = Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3", true);
               ChangeSettings.SetValue("1609", "0", RegistryValueKind.DWord);
               ChangeSettings = Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2", true);
               ChangeSettings.SetValue("1609", "0", RegistryValueKind.DWord);
               ChangeSettings.Close();
           }
           catch (Exception ex) { }
       }


i tried this but it still exists...
Posted
Comments
Sreekanth Mothukuru 25-Jul-15 2:00am    
what do you mean by "Displaying Mixed content"? Also, to display content on client browser.. why are you dealing with server side registry settings?

You will never get access to client browser registry settings.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900