I have an asp:FormView like this:
<asp:FormView ID="foo" runat="server" >
<ItemTemplate>
... lots of code
</ItemTemplate>
<EditItemTemplate>
... lots more code
</EditItemTemplate>
<asp:FormView>
I would like to move the templates out to separate files, if possible. How can I do this?
Extract the code you have in the templates and add them to separate
.ascx
files. Then you can do this:ASPX
Code behind