BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Development  General develop...  register controls in web.config
Previous Previous
 
Next Next
New Post 4/1/2007 3:54 AM
User is offline cgraefe
54 posts
No Ranking


register controls in web.config 
Hi Davin,

Until digging through your code I recognized, that you register the (User)-Controls on every single page.

I think it is easier to register them once in web.config, so changes have to be made only at a single place.
Look here
Btw. This has no performance drawbacks.

regards
Christian

Example:
<configuration>
<system.web>
...
<pages>
<controls>
<add TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" />
<add TagPrefix="it" TagName="PickComponent" Src="~/UserControls/PickComponent.ascx" />
<add TagPrefix="it" TagName="PickVersion" Src="~/UserControls/PickVersion.ascx" />
</controls>
</pages>
...
</system.web>
</configuration>
 
New Post 4/1/2007 7:41 AM
User is offline admin
658 posts
bugnetproject.com
1st Level Poster




Re: register controls in web.config 
Thanks for the great tip. I will start putting them in the web.config.

Davin Dubeau
BugNET - Core Developer

 
Previous Previous
 
Next Next
  Forum  Development  General develop...  register controls in web.config

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.