Configuring - Registration Tab - Controls
From Visual WebGui Wiki
Contents |
Overview
This article is a part of articles on Configuring Visual WebGui application, Registration tab.
In the Registration tab is where you declare your Forms, Controls and Themes that will be used within your application.
Settings
| Controls | web.config |
|---|---|
| | <WebGui> <Controls> <Control Type="Gizmox.WebGui.Forms.WatermarkTextBox, Gizmox.WebGui.Forms.Extended, Version=3.0.5701.0, Culture=neutral, PublicKeyToken=85eae29607c9f5f3" /> </Controls> </WebGui> |
Using the Visual WebGui MS Visual Studio Integration, you can register a control without directly changing the Web.config.
All you need to do is to open the project properties page of the Visual WebGui Application project, go the "Registration" tab and register the control:
This image demonstrates how to register a control called "LibraryControl" that is located in a Class Library project referenced by the Visual WebGui Application project.
In the same way, the control can be located in the Visual WebGui Application project itself.
General
Every custom control used in your application must be registered in this section. This is also the case for the controls you use from Gizmox.WebGui.Forms.Extended and Gizmox.WebGui.Forms.Office. If the control is not registered when you run your app and use it, you will get a runtime error complaining about the need to register it.
You can register individual controls, and you can register all controls in a specific namespace.

