When instantiating the control via C#, I have tried the following code in order to activate the license key that we purchased.
FileVistaControl fileVistaControl = (FileVistaControl)LoadControl("~/FileVistaControl/filevista.ascx");
fileVistaControl.LicenseKey = "key provided";
However the control still displays the Trial Version message. I have tried this both in our application and the examples provided.
If this the expected method for activating C# instantiated controls?
Paul Blain
4/9/2008 10:05 PM
Yes, you are setting the license key correctly, however the application should be restarted, you may be using a web site project and thus a change to one page did not cause a restart. Please restart the application manually by opening and saving the web.config file.
Then you will see that the control will recognize the license key.
Cem Alacayir
4/10/2008 12:32 PM
OK - problem was that Microsoft Outlook had kindly removed additional line breaks and as a result, changed the license key string.
All is working fine now - many thanks
Paul Blain
4/10/2008 10:46 PM