Advertisement
Guest User

Untitled

a guest
Oct 6th, 2013
108
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None
  1. <asp:DetailsView ID="grd_empDetails" runat="server" DataSourceID="empDataSource" DataKeyNames="EmployeeID" DefaultMode="Insert" AutoGenerateRows="false">
  2. <Fields>
  3. <asp:BoundField HeaderText="First Name" DataField="FirstName" />
  4. <asp:TemplateField HeaderText="Type of Employee">
  5. <ItemTemplate>
  6. <asp:DropDownList ID="empType" runat="server" DataValueField="empType" AppendDataBoundItems="true">
  7. <asp:ListItem Text="Full Time" Value="1" />
  8. <asp:ListItem Text="Part Time" Value="2" />
  9. <asp:ListItem Text="Subcontractor or 1099" Value="3" />
  10. <asp:ListItem Text="Intern" Value="4" />
  11. </asp:DropDownList>
  12. </ItemTemplate>
  13. </asp:TemplateField>
  14. <asp:CommandField ShowInsertButton="true" ShowCancelButton="true" />
  15. </Fields>
  16. </asp:DetailsView>
  17.  
  18. <asp:TemplateField HeaderText="Type of Employee">
  19. <ItemTemplate>
  20. <asp:DropDownList ID="empType" runat="server" DataValueField="empType" SelectedValue='<%#Bind("empType") %>'>
  21. <asp:ListItem Text="Full Time" Value="1" />
  22. <asp:ListItem Text="Part Time" Value="2" />
  23. <asp:ListItem Text="Subcontractor or 1099" Value="3" />
  24. <asp:ListItem Text="Intern" Value="4" />
  25. </asp:DropDownList>
  26. </ItemTemplate>
  27. </asp:TemplateField>
Advertisement
RAW Paste Data Copied
Advertisement