How to avoid cc1 prefix when dragging server controls

Continuing with my exploration in server controls, i discovered a small nuisance when i you drag your custom controls from the toolbox onto the designer. For some reason visual studio would automatically prefix the server control with cc1 tagprefix as shown in the example below.

image

image

If you don't like the default cc1 tag prefix, you can declare the following prefix in the assmeblyInfo.cs file and when you drag the control next it will use the tag prefix specified in the custom control. Here is an example of assemblyInfo.cs

image

image

As you can see from the screen shot above after specifying the default tag prefix when i drag the address control visual studio automatically uses custom tag prefix.

No Comments