Author: Unhandled Exception : ASP.NET | Posted on: 3/16/2009 11:25:00 PM | Views : 829

Ever wish you could declare a template outside of the control you were defining the template for? We always get requests to have FormView's InsertItem template fall back on the EditItemTemplate and vice versa. That would be easy if we could do what was mentioned above. Consider: < asp : FormView ID ="myFormView" runat ="server" DefaultMode ="Edit" EditItemTemplate ="editTemplate" InsertItemTemplate ="editTemplate"> </ asp : FormView > < asp : Template runat ="server" ID ="editTemplate"> Name : < asp : TextBox runat ="server" Text =' <% # Bind("Name") %> '></ asp : TextBox > Age : < asp : TextBox runat Read...(read more) ...

Go to the complete details ...