I just posted a composite control on the serverside.net. Click here to get to it.
Most developers prefer using UserControls to aggregate other controls easily. The Visual Studio IDE allows you to drag and drop elements on the design surface. It is certainly a very productive way to work. One of the disavantages of UserControls is that they cannot be put in the global assembly cache. This is most of the time not a problem when developing real applications. However, if you are a control developer and you sell your controls to the public, you usually want to be able to put your assembly in the cache.
This code sample is quite simple but illustrates what needs to be done to programmatically assemble the pieces. Fritz Onion has a client side Tic Tac Toe example in his book "Essential ASP.Net". I thought it would be a good addition to show how to do this server side.
Saturday, October 09, 2004
Subscribe to:
Posts (Atom)