Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can i change registry entry using ASP and create a client.CreateObjec

Status
Not open for further replies.

MisterMo

Programmer
Mar 18, 2002
564
GB
before I get started whit this idea, does anyone knows if is possible to create client side objects to edit the registry.

Probably is just a bad idea, but you never know unless you ask

thank for your help

Mo Life is like a box of Chocolates..... So is Microsoft
 
Yeah, you can probably do it with an OCX but the client will need to accept it so you won't be able to do anything without them knowing.
 
found it!!!!

I don't know if this works on the internet but it surely works on our intranet

the code is very simple

First you set the registry when you load the page.
********************************************************
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub window_onload
Dim WshShell
Set WshShell = CreateObject(&quot;WScript.Shell&quot;)
WshShell.RegWrite &quot;HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Print_background&quot;, &quot;Yes&quot;, &quot;REG_SZ&quot;
End Sub
'***********************************************************
'then you put everything back as it was and nobody is hurt
'***********************************************************
Sub window_onunload
Dim WshShell
Set WshShell = CreateObject(&quot;WScript.Shell&quot;)
WshShell.RegWrite &quot;HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Print_background&quot;, &quot;No&quot;, &quot;REG_SZ&quot;
End Sub

-->
</SCRIPT>

Hope this my help others as well.

Mo Life is like a box of Chocolates..... So is Microsoft
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top