In my website I have an empty ASP table on a page like this:
<asp:Table ID="tblOverview" runat="server" BorderStyle="Double"
GridLines="Both" Width="927px" ForeColor="#333333"
CssClass="tblOverview">
</asp:Table>
I then run some code on page load, which essentially interacts with the table by adding rows and cells to it etc.
However now I want to use this table embedded within a gridview on another page, so I need to refactor this to be a bit more portable.
I'm not sure how to attack this though, should I change the method to return a table object? If I did that, how would I include it on the page like I do above? I'm having a slow morning, if someone can help me snap out of it I'll be very grateful! Thanks.