R
Random
In the ASP.NET 2.0 beta, the FormView control has the ItemTemplate and
InsertItemTemplate areas (and others). All the documentation I've found
says the way to toggle between the views is to use a control with the
appropriate CommandName. But, I want to decide this when the page loads,
based on the selection made in a DropDownList on a previous page (basically
selecting between a read-only view of an item, an item edit, or a new item).
How can I set the FormView to display the appropriate Template then?
InsertItemTemplate areas (and others). All the documentation I've found
says the way to toggle between the views is to use a control with the
appropriate CommandName. But, I want to decide this when the page loads,
based on the selection made in a DropDownList on a previous page (basically
selecting between a read-only view of an item, an item edit, or a new item).
How can I set the FormView to display the appropriate Template then?