I need to create a control that puts a box around any content i desire. I've done this with 2 usercontrols in the past (1 to open a table, 2nd to close the table around the content).
I thought masterpages would be a better solution...but i can't use masterpagefile=Box.master within a control directive...
This: <%@ Control MasterPageFile="~/MasterPages/Box1.master" %>
produces: Error parsing attribute 'masterpagefile': Type 'System.Web.UI.UserControl' does not have a public property named 'masterpagefile'.
Any ideas on what approach i should be taking? Or if there is another way to impliment masterpages in a usercontrol?