This project is read-only.

Inheriting a control from Patient Banner v 1.2

Nov 20, 2008 at 11:14 PM
Hi

We were trying to inherit a custom Patient Banner control. Since our application are developed using VS 2005 and .NET 2.0, we were using NHS CUI version 1.2.

We are still facing problems in creating an inherited custom Patient Banner control.

Please give us any links of helpful documentation in this regard.

Thanks,
Dec 9, 2008 at 3:25 PM
To customize the Patient Banner you are best to download the source code and amend it directly to support this scenario.

AJAX controls have embedded script files that are downloaded as the control is created. Although the code on the server is inherited, the client script files that do the setting of the properties on the client are not. For example, when you inherit from the patient banner during loading it tries to set the property for the collapsed image. The client side property for this has not been inherited your javascript file that backs your custom control, and the initialization fails on the client.

You might be able to get this scenario to work by amending your Javascript to amend the Patient Banner prototype, and register your class to also use this prototype, but it is not a scenario we have tested. If I were to do this, currently I would take the source code and modify it for your own needs.

-Stuart.