Author: tl01621 | Posted on: 2/4/2009 6:22:53 AM | Views : 298


Hi

On my c# intranet app I have a properties page in which I want to save settings to the registry
The option saves the name of a server to a reg_multi_sz registry value

On the properties page there is an asp:textbox which allows the user to enter the server name and underneath that is an asp:listbox which shows the entries that have been added before (currently I can only get the list box to show the last entry added).
They then click on the save button which saves the server name to the registry using the below method 'addserverreg'. This also calls another method called 'showservers()' which refreshes the view of the asp:listbox by re-reading the multi_sz value

The method does add (whatever the user enters in the textbox) to the registry but removes the previous entry (so I always only have one entry just like a usual reg_sz string). I need to keep all previous entries because t ...

Go to the complete details ...